JPS6118787B2 - - Google Patents
Info
- Publication number
- JPS6118787B2 JPS6118787B2 JP9421978A JP9421978A JPS6118787B2 JP S6118787 B2 JPS6118787 B2 JP S6118787B2 JP 9421978 A JP9421978 A JP 9421978A JP 9421978 A JP9421978 A JP 9421978A JP S6118787 B2 JPS6118787 B2 JP S6118787B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- contents
- input
- cpu
- key
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 230000015654 memory Effects 0.000 claims description 142
- 230000008859 change Effects 0.000 description 21
- 238000000034 method Methods 0.000 description 21
- 230000008569 process Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 8
- 206010010071 Coma Diseases 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 101150115013 DSP1 gene Proteins 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000007595 memory recall Effects 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
Landscapes
- Calculators And Similar Devices (AREA)
Description
本発明は、四則演算の少なくともひとつを実行
できる2組の計算機部を有し、該2組の計算機部
は各々キーによつて単独に演算指示されると共
に、その演算結果が各々別個に表示されるように
構成したマルチカルキユレータに関し、特には、
上記2組の計算機部双方の表示されているデータ
を互いに転送し、該転送されたデータを更に演算
に使えるように構成したマルチカルキユレータを
提供するものである。
従来の計算機に於ては、ある計算をしている途
中で割り込み的に他の計算をさせたい時、もとの
計算を放棄せねばならなかつた。
本発明は単独に計算できる装置を2組設けるこ
とによつてそういつた欠点を除去しようとするも
のである。更に割り込み計算をして得たデータ
を、もとの計算に関連するデータとしてそのまま
転送させて活用するようにしており、わざわざ割
り込み計算結果を見ながら置数していくという繁
雑さも解消できる。
割り込み計算は例えば複雑な数式を簡単にさせ
る場合に適している。つまり、従来は数式を組み
換えて乗除算を先にするような形で演算を進めて
いく。この組み換えはやつかいである。例えばA
×B+C×D=を計算する時、A×Bを行つてメ
モリに力を入れ、次にC×Dを行う。その後加算
キー□+を押して、メモリリコールキー
The present invention has two sets of computer units capable of executing at least one of the four arithmetic operations, and each of the two sets of calculator units is individually instructed to perform an operation by a key, and the results of the calculations are individually displayed. Regarding multicalculators configured to
The present invention provides a multicalculator configured to mutually transfer data displayed on both of the above-mentioned two sets of computer units and to use the transferred data for further calculations. With conventional computers, if you wanted to perform another calculation in the middle of one calculation, you had to abandon the original calculation. The present invention seeks to eliminate these drawbacks by providing two sets of independently calculating devices. Furthermore, the data obtained through interrupt calculations is transferred as is and used as data related to the original calculation, which eliminates the hassle of having to take the trouble of entering numbers while looking at the interrupt calculation results. Interrupt calculations are suitable, for example, for simplifying complex mathematical expressions. In other words, conventionally, calculations are performed by rearranging mathematical formulas and performing multiplication and division first. This recombination is tricky. For example, A
When calculating xB+CxD=, do AxB to load memory, then do CxD. Then press the addition key □+ and press the memory recall key.
【式】を押し
て、更に□=キーを押圧する。メモリ内容は表示さ
れないので扱いにくいし、キー操作もやつかいで
ある。
本発明のマルチカルキユレータであれば、A×
Bの計算を例えば左側の計算機部で行い、C×D
を右側で行い、双方を□+キーの押圧で加算し、答
を左右のどちら側に入れるかの指示キーを押すだ
けでよくあまり難しく考えないでできる。もちろ
ん単なるメモリとしそても利用でき、左側の計算
機部の演算結果を右側に転送し、他の計算を行つ
た後に再び呼び戻したり、メモリしておいたデー
タと他の計算結果とを再び相互計算できる。ま
た、表示が常に見えていて見やすい。
また、これらの制御は同一種類の1マツプマイ
クロプロセツサを2個用い、キーの部分を除き、
相互配線を対応させているので、配線ミスもきわ
めて少ないという利点がある。もちろん同一マイ
クロプロセツサでよいのでコストダウンにもな
る。
以下本発明の実施例を説明する。
第1図は本発明の一実施例の外観を示す斜視図
である。
第1図に於て、キヤビネツトCAに第1のキー
群K1とそれに対応する表示部DSP1をもつ。右側
には第2のキー群K2とそれに対応する表示部
DSP2がある。K0は左右の計算機部間の相互転送
あるいは相互演算を指示するキー群である。該キ
ー群K0に含まれる各キーの機能を以下に示す。
左側の計算機部のデータをX、右側の計算機部
のデータをYとし、同じくメモリをM1,M2とす
ると、
□←キーは、Y→M1の実行を指示するキー、
□→キーは、X→M2の実行を指示するキー、
□×キーは、X×Yの実行を指示するキー、
□÷キーは、X÷Yの実行を指示するキー、
□+キーは、X+Yの実行を指示するキー、
□−キーは、X−Yの実行を指示するキーであ
る。
□×,□÷,□+,□−キーの押圧に続いて□←キー
を押
せば答はM1に入り、□→キーを押せば答はM2に入
る。Press [Formula] and then press the □= key. It is difficult to use because the memory contents are not displayed, and the key operations are cumbersome. With the multicalculator of the present invention, A×
For example, calculate B using the calculator section on the left, and calculate C×D.
You can do this on the right side, add both values by pressing the □ + key, and press the instruction key to put the answer on either the left or the right side, and you can do it without thinking too hard. Of course, it can also be used as just a memory, and the calculation results of the left side computer section can be transferred to the right side and recalled after performing other calculations, or the data stored in memory and the results of other calculations can be used for mutual calculations. can. Also, the display is always visible and easy to read. In addition, these controls use two 1-map microprocessors of the same type, except for the key part.
Since the interconnections are matched, there is an advantage that there are very few wiring errors. Of course, since the same microprocessor can be used, costs can be reduced. Examples of the present invention will be described below. FIG. 1 is a perspective view showing the appearance of an embodiment of the present invention. In FIG. 1, the cabinet CA has a first key group K1 and a corresponding display section DSP1 . On the right side is the second key group K 2 and its corresponding display.
There is DSP 2 . K 0 is a key group that instructs mutual transfer or mutual operation between the left and right computer sections. The functions of each key included in the key group K0 are shown below. Assuming that the data in the computer section on the left is X, the data in the computer section on the right is Y, and the memories are M 1 and M 2 , the □← key is the key that instructs the execution of Y→M 1 , and the □→ key is , X→M 2 The □× key instructs to execute X×Y, □÷ key instructs to execute X÷Y, □+ key instructs to execute X+Y The □- key is a key that instructs the execution of X-Y. If you press the □×, □÷, □+, □- keys and then press the □← key, the answer will be in M1 , and if you press the □→ key, the answer will be in M2 .
【式】キーは、M1とM2の内容X,Yを同時
にクリアする為のキーである。
第2図は同実施例のブロツク図である。
左側の計算部は第1の1チツプマイクロプロセ
ツサCPU1と第1キー群K1、第1表示部DSP1より
成る。右側の計算部は第2の1チツプマイクロプ
ロセツサCPU2と第2キー群K2、キー群K0、第2
表示部DSP2より成る。CGは発振器で、同じ周波
数でCPU1とCPU2とを動作させる。
第3図は第2図の具体的結線図である。
CPU1及びCPU2は同じマイクロプロセツサで内
部構成を第4図に示す。
以下CPUの内部構成の説明、該CPUを動作さ
せるROMを構成する命令コードの説明及び該
CPUの主な処理動作の説明を行う。
(CPUの回路構成)
RAMはランダム・アクセス・メモリで、入出
力は4ビツト単位に行われ、デイジツトアドレス
とフアイルアドレスを指定することによつて所望
のデイジツト内容を入出力できる。BLはメモリ
ーRAMのデイジツトアドレスカウンタ、DC1は
メモリーRAMのデイジツトアドレスデコーダ、
BMはメモリーRAMのフアイルアドレスカウン
タ、DC2はメモリーRAMのフアイルアドレスデ
コーダ、AD1は加算器で、制御命令〓が与えられ
た時は減算器として、が与えられない時は加算
器として動作する。AD2は加算器、G1は加減算器
AD1の一方の入力に数値1或いはオペランドIA
のいずれかを与えるためのゲートで、制御命令
が与えられた時はIを、の時はIAを出力す
る。G2はメモリーデイジツトアドレスカウンタ
BLの入力ゲート、の時は加減算器ADの出力
を、の時はオペランドIAを、〓の時はオペラ
ンドIBを出力する。G3は加減算器AD2の一方の
入力に数値1、或いはオペランドIAのいずれか
を与えるためのゲートで、の時は数値1を、
の時はオペランドIAを出力する。G4はメモリー
フアイルアドレスBMの入力ゲートで、の時は
加算器AD2の出力を、はオペランドIAを、
の時はアキユムレータACCの内容を出力する。
G5はメモリーRAMのフアイル選択ゲート、DC3
はオペランドIAのデコーダで、オペランドIAを
解読し、メモリーの所望ビツト指定信号をゲート
G6に入力させる。G6はメモリーRAMの入力ゲー
ト、制御命令が与えられた時はオペランドデコ
ーダDC3で指定されたメモリーの所望ビツトに2
進数1を入力させ、の時はDC3で指定されたメ
モリーの所望ビツトに2進数0を入力させる回路
を内蔵し、又でアキユムレータACCの内容を
出力する。ROMはリード・オンリー・メモリ
ー、PLはプログラム カウンタで、リード・オ
ンリー・メモリーROMの所望ステツプを指定す
る。DC4はリード・オンリー・メモリーROMの
ステツプアクセスデゴーダ、G7はリード・オン
リー・メモリーROMの出力ゲートで、ジヤツジ
フリツプフロツプ(F/F)Jがセツトされた時
は、ROMの出力のインストラクシヨンデコーダ
DC5への伝達が遮断される。DC5はインストラク
シヨンデコーダで、ROMからのインストラクシ
ヨンコードを解読するもので、ROMのインスト
ラクシヨンコードはオペコード部分I0とオペラン
ド部分IA,IBに分けられ、オペコードを解読
し、そのオペコードに対応して制御命令〜〓の
いずれかを発生させる。又オペランドをともなう
オペコードであることを判断し、その時に、オペ
ランドIA又はIBをそのまま出力させる回路を内
蔵する。AD3は加算器で、プログラムカウンタ
PLの内容に数値1を加え、カウントアツプさせ
るためのもの。G8はプログラムカウンタPLの入
力ゲートで、の時はオペランドIAを出力し、
〓の時はプログラムスタツクレジスタSPの内容
を伝達する。,〓の処理時及びゲートG39用の
〓の処理時は加算器AD3の出力は伝達されない。
,〓,〓以外はAD3出力を伝達し、自動的にプ
ログラムカウンタPLの内容に1を加える。FCは
フラツグF/F,G9はフラツグF/FFCの入力
ゲート、の時は2進数Iを、の時は2進数0
をそれぞれフラツグF/FFCに入力させるため
のものである。G10はキー信号発生ゲートで、フ
ラツグF/FFCがリセツト状態(0)の時はメ
モリーデイジツトアドレスデコーダDC1の所望出
力をそのまま出力させ、フラツグF/FFCがセ
ツト状態1の時はDC1出力の如何にかかわらずI1
〜Ioの出力を一斉に1にする回路を内蔵する。
ACCは4ビツトで構成されるアキユムレータ、
Xは4ビツトで構成されるテンポラリー(一時記
憶)レジスタ、G11はテンポラリーレジスタXの
入力ゲートで、〓の時はアキユムレータACCの
内容を伝達し、〓の時はスタツクレジスタSXの
内容を伝達する。AD4は加算器で、アキユムレー
タACCの内容と他のデータを2進加算するため
に用いられる。2進加算の際、第4ビツトの加算
でキヤリーが出ればC4出力を1にする。Cはキ
ヤリーF/F,G12はキヤリーF/Fの入力ゲー
ト制御命令の発生時に、もし第4ビツトキヤリ
ーC4が1であればキヤリーF/FCに1を入力
し、C4が0であればCに0を入力する回路を内
蔵する。の時はCに1を、の時はCに0を入
力するためのものである。G13はキヤリーを含め
た2進加算を加算器AD4で行わせるためのキヤリ
ーC入力ゲートで、〓の時にキヤリーF/FCの
出力を加算器AD4に伝達する。G14は加算器AD4
の入力ゲートで、〓の時はメモリーRAMの出力
を、の時はオペランドIAを伝達する。Fは4
ビツトで構成される出力バツフアレジスタ、G15
は出力バツフアレジスタFの入力ゲートで、の
時にアキユムレータACCの内容を伝達し、Fに
入力するもの。SDは出力デコーダで、出力バツ
フアレジスタFの内容を解読し、表示体セグメン
ト信号SS1〜SSoに変換するためのもの。Wは出
力バツフアレジスタ、SHCは出力バツフアレジ
スタWの全ビツト内容を一斉に1ビツト右シフト
するためのもので又はが発生しした時に動作
する。出力バツフアレジスタWのシフト回路であ
る。G16は出力バツフアレジスタWの入力ゲート
で、の時にはWの第1ビツトに1を入力し、
の時にはWの第1ビツトに0を入力させるための
ものであり、なおWの第1ビツトに1又は0を入
力する直前で出力バツフアシフト回路SHCが動
作し、シフトした後に入力される様にされている
ものとする。Npは出力コントロールフラツグ
F/F,G17は出力コントロールフラツグF/
FNpの入力ゲートで、〓の時に1を入力し、〓の
時は0を入力する。G18はバツフアレジスタWの
出力コントロールゲートで、フラツグF/FNpが
セツト(1)になつている時のみ、Wの各ビツトの出
力を一斉に出力させるためのものである。Jはジ
ヤツジF/F,IV1〜IV4はインバータ回路、G19
はジヤツジF/FJの入力ゲートで、〓の時に入
力KN1の状態をJに伝達するためのものである。
ただし、インバータIV1を介しているのでKN1=
0の時にJ=1となる。G20はジヤツジF/FJの
入力ゲートで、〓の時に入力KN2の状態をJに伝
達する。ただし、インバータIV2を介しているの
でKN2=0の時にJ=1となる。G21はジヤツジ
F/FJの入力ゲートで、〓の時に入力KF1の状
態をJに伝達するためのもの。ただしインバータ
IV3を介しているのでKF1=0の時にJ=1とな
る。G22はジヤツジF/FJの入力ゲートで、〓の
時に入力KF2の状態をJに伝達するためのもの。
ただしインバータIV4を介しているのでKF2の時
にJ=1となる。G23はジヤツジF/FJの入力ゲ
ートで、〓の時に入力AKの状態をJに伝達する
ためのもの。AK=1の時J=1となる。G24はジ
ヤツジF/FJの入力ゲートで、〓の時に入力
TABの状態をJに伝達するためのもの。TAB=
1の時J=1となる。G25はジヤツジF/FJのセ
ツト用ゲートで、〓の時にIをJに入力するため
のものV1は比較回路で、メモリーデイジツトア
ドレスカウンタBLの内容と予め定められたデー
タとを比較し、一致していれば出力1を発生する
もので、〓又は〓が発生された時に回路が動作す
る。比較すべきデータはゲートG26より出力され
る。G26は比較回路V1への比較値入力ゲートで、
比較値n1とはメモリーRAMの制御上よく利用さ
れる高い側の特定アドレス値に対応する。〓の時
はn1を比較値にするために出力させ、〓の時はn2
を比較値にするために出力させる。G27はジヤツ
ジF/FJの入力ゲートで、〓の時キヤリーF/
FCの内容が1の時、Jに1を入力する。DC6は
オペランドIAの解読器で、オペランドIAを解読
し、メモリーRAMの所望ビツトの内容が1かど
うかのジヤツジに用いる。G28はメモリーRAMの
オペランド解読器DC6で指定されたビツト内容を
ジヤツジF/Fに伝達するゲートで、〓の時に動
作する。RAMの指定ビツトが1の時J=1とな
る様にする。V2は比較回路で、アキユムレータ
ACCの内容とオペランドIAの内容が等しいかど
うかをジヤツジし、等しい時出力1を発生する。
〓の時に動作する。V3は比較回路で、メモリー
デイジツトアドレスカウンタBLの内容とオペラ
ンドIAの内容が等しいかどうかをジヤツジし、
等しい時出力1を発生する。〓の時に動作する。
V4は比較回路で、アキユムレータACCの内容と
メモリーRAMの内容が等しいかどうかをジヤツ
ジし、等しい時に出力1を発生する。G29は加算
第4ビツトキヤリーC4のジヤツジF/FJへの伝
達ゲートで、〓の時C4をF/FJに伝達する。C4
の時にJ=1となる。FAはフラツグフリツプフ
ロツプ、G31はフラツグF/FFAの入力ゲート
で、〓の時1を出力、〓の時0を出力する。G32
はジヤツジF/FJの入力ゲートで、フラツグ
F/FFAが1のときF/FJをセツト(1)する。FB
はフラツグF/F,G33はフラツグF/FFBの入
力ゲートで、〓の時、1を出力、〓の時0を出力
する。G34はジヤツジF/FJの入力ゲートでフラ
ツグF/FFBの内容をF/FJに伝達するもの。
〓の時動作する。G35はジヤツジF/FJの入力ゲ
ートで、入力Bの内容を伝達するものでによつ
て動作する。B=1の時J=1となる。G36はア
キユムレータACCの入力ゲートで、〓の時は加
算器AD4の出力を伝達し、〓の時はインバータ
IV5いてアキユムレータACCの内容を反転し伝達
する。〓の時はメモリーRAMの内容を伝達し、
の時はオペランドIAの内容を伝達する。の
時は入力k1〜k4の4ビツトの内容を伝達する。〓
の時はスタツクレジスタSAの内容を伝達する。
IV5はインバータ回路、SAはスタツクレジスタで
出力がシステム外に導出されている。SXはスタ
ツクレジスタで出力がシステム外に導出されてい
る。G37はスタツクレジスタSAの入力ゲートで、
〓の時、アサユムレータACCの内容を伝達す
る。G38はスタツクレジスタSXの入力ゲートで、
〓の時、テンポラリーレジスタXの内容を伝達す
る。SPはプログラムスタツクレジスタ、G39はプ
ログラムスタツクレジスタSPの入力ゲートで、
〓の時、プログラムカウンタPLの内容に加算器
AD3にて1を加えたものをプログラムスタツクレ
ジスタに導入するためのものである。
次に前記CPU装置の記憶部ROMに記載される
インストラクシヨンコードと、そのインストラク
シヨンコード名、動作内容及びインストラクシヨ
ンコードに基づき発生する制御命令の一例を下表
に示す。
表に於て、A:インストラクシヨンコード、
B:インストラクシヨン名、C:内容、D:
CPU制御命令を示す。The [Formula] key is used to simultaneously clear the contents X and Y of M1 and M2 . FIG. 2 is a block diagram of the same embodiment. The calculation section on the left side consists of a first one-chip microprocessor CPU 1 , a first key group K 1 and a first display section DSP 1 . The calculation section on the right side has a second one-chip microprocessor CPU 2 , a second key group K 2 , a key group K 0 , a second
Consists of display section DSP 2 . CG is an oscillator that operates CPU 1 and CPU 2 at the same frequency. FIG. 3 is a specific wiring diagram of FIG. 2. CPU 1 and CPU 2 are the same microprocessor, and the internal configuration is shown in FIG. Below is an explanation of the internal configuration of the CPU, an explanation of the instruction codes that make up the ROM that operates the CPU, and
The main processing operations of the CPU will be explained. (Circuit configuration of CPU) RAM is a random access memory, and input/output is performed in units of 4 bits, and desired digit contents can be input/output by specifying the digit address and file address. BL is the memory RAM digit address counter, DC 1 is the memory RAM digit address decoder,
BM is the memory RAM file address counter, DC 2 is the memory RAM file address decoder, and AD 1 is the adder. It operates as a subtracter when the control command 〓 is given, and as an adder when it is not given. . AD 2 is an adder, G 1 is an adder/subtractor
Numeric value 1 or operand I A to one input of AD 1
This gate outputs either I when a control command is given, and I A when it is given. G 2 is a memory digit address counter
The input gate of BL outputs the output of the adder/subtractor AD when , the operand I A when , and the operand I B when . G3 is a gate for supplying either the numerical value 1 or the operand I A to one input of the adder/subtractor AD2 ;
When , operand I A is output. G 4 is the input gate of memory file address BM, when , the output of adder AD 2 is input, when is the operand I A ,
When , the contents of the accumulator ACC are output.
G 5 is the memory RAM file selection gate, DC 3
is the operand I A decoder, which decodes the operand I A and gates the signal specifying the desired bit in the memory.
Let G 6 input. G6 is the input gate of the memory RAM, and when a control command is given, the desired bit of the memory specified by the operand decoder DC3 is set to 2.
It has a built-in circuit that inputs a binary number 1 and inputs a binary number 0 to the desired bit of the memory specified by DC3 , and outputs the contents of the accumulator ACC. ROM is a read-only memory, and PL is a program counter that specifies the desired step of the read-only memory ROM. DC4 is the step access degoder of the read-only memory ROM, G7 is the output gate of the read-only memory ROM, and when the flip-flop (F/F) J is set, the ROM is Output instruction decoder
Transmission to DC 5 is cut off. DC 5 is an instruction decoder that decodes the instruction code from the ROM.The instruction code in the ROM is divided into an operation code part I 0 and operand parts I A and I B. One of the control commands ~〓 is generated corresponding to the operation code. It also has a built-in circuit that determines that the opcode is accompanied by an operand and outputs the operand I A or I B as is at that time. AD 3 is an adder and a program counter
This is to add the number 1 to the contents of PL and count up. G8 is the input gate of the program counter PL, which outputs the operand I A when .
When 〓, the contents of the program stack register SP are transmitted. , 〓 and 〓 for gate G39 , the output of adder AD 3 is not transmitted.
, 〓, 〓 transmits the AD 3 output and automatically adds 1 to the contents of the program counter PL. FC is the flag F/F, G 9 is the input gate of the flag F/FFC, when is the binary number I, when is the binary number 0
This is for inputting each into the flag F/FFC. G10 is a key signal generation gate, which outputs the desired output of the memory digital address decoder DC1 as it is when the flag F/FFC is in the reset state (0), and outputs the desired output of the memory digital address decoder DC1 as is when the flag F/FFC is in the set state ( 1 ). I 1 regardless of the output
It has a built-in circuit that sets the outputs of ~ Io to 1 all at once.
ACC is an accumulator consisting of 4 bits,
X is a temporary (temporary storage) register consisting of 4 bits, G11 is the input gate of temporary register do. AD 4 is an adder, which is used to perform binary addition of the contents of the accumulator ACC and other data. During binary addition, if a carry occurs in the addition of the 4th bit, the C4 output is set to 1. C is the carry F/F, G12 is the input gate control command of the carry F/F, and if the fourth bit C4 is 1, input 1 to the carry F/FC, and if C4 is 0, For example, a circuit for inputting 0 to C is built-in. This is to input 1 to C when , and 0 to C when . G13 is a carry C input gate for causing the adder AD4 to perform binary addition including the carry, and transmits the output of the carry F/FC to the adder AD4 at the time of 〓. G 14 is adder AD 4
The input gate transmits the output of the memory RAM when 〓 and the operand I A when . F is 4
Output buffer register consisting of bits, G 15
is the input gate of the output buffer register F, which transmits the contents of the accumulator ACC and inputs it to F when . SD is an output decoder for decoding the contents of the output buffer register F and converting it into display segment signals SS 1 to SS o . W is an output buffer register, and SHC is for shifting all bit contents of the output buffer register W by 1 bit to the right at once, and operates when or occurs. This is a shift circuit for the output buffer register W. G16 is the input gate of the output buffer register W, and when , 1 is input to the first bit of W.
When , the purpose is to input 0 to the first bit of W, and the output buffer shift circuit SHC operates immediately before inputting 1 or 0 to the first bit of W, so that it is input after shifting. It is assumed that N p is the output control flag F/F, G 17 is the output control flag F/F.
At the input gate of FN p , input 1 when 〓, and input 0 when 〓. G18 is an output control gate of the buffer register W, and is used to output the outputs of each bit of W at the same time only when the flag F/ FNp is set (1). J is a jack F/F, IV 1 to IV 4 are inverter circuits, G 19
is the input gate of the switch F/FJ, and is used to transmit the state of the input KN 1 to J when 〓.
However, since it is via inverter IV 1 , KN 1 =
When it is 0, J=1. G 20 is the input gate of the switch F/FJ, and transmits the state of the input KN 2 to J at the time of 〓. However, since it is passed through the inverter IV2 , J=1 when KN2 =0. G 21 is the input gate of the jumper F/FJ, and it is used to transmit the state of the input KF 1 to J at the time of 〓. However, inverter
Since it is via IV 3 , J=1 when KF 1 =0. G 22 is the input gate of the jumper F/FJ, and is used to transmit the state of the input KF 2 to J at the time of 〓.
However, since it is passed through the inverter IV4 , J=1 when KF2 . G 23 is the input gate of the jack F/FJ, and it is used to transmit the state of the input AK to J when it is 〓. When AK=1, J=1. G 24 is the input gate of Jersey F/FJ, input when 〓
This is for transmitting the TAB status to J. TAB=
1, J=1. G 25 is a gate for setting the jumper F/FJ, and is used to input I to J when ≦.V 1 is a comparator circuit that compares the contents of the memory digit address counter BL with predetermined data. , if they match, output 1 is generated, and the circuit operates when 〓 or 〓 is generated. The data to be compared is output from gate G26 . G 26 is a comparison value input gate to comparator circuit V 1 ,
The comparison value n 1 corresponds to a specific address value on the higher side that is often used for controlling the memory RAM. When 〓, output n 1 as a comparison value, when 〓, output n 2
Output to use as a comparison value. G 27 is the input gate of the carry F/FJ.
When the content of FC is 1, input 1 to J. DC 6 is a decoder for operand I A , which decodes operand I A and uses it to determine whether the content of a desired bit in the memory RAM is 1 or not. G28 is a gate that transmits the bit contents specified by the operand decoder DC6 of the memory RAM to the switch F/F, and operates when ≦. Make sure that J=1 when the specified bit of RAM is 1. V 2 is a comparator circuit and an accumulator
Checks whether the contents of ACC and the contents of operand I A are equal, and generates an output of 1 when they are equal.
It works when 〓. V3 is a comparison circuit that checks whether the contents of the memory digit address counter BL and the contents of the operand IA are equal.
When they are equal, output 1 is generated. It works when 〓.
V4 is a comparison circuit that judges whether the contents of the accumulator ACC and the contents of the memory RAM are equal, and generates an output of 1 when they are equal. G29 is a transmission gate for the addition fourth bit carrier C4 to the judge F/FJ, and when 〓, C4 is transmitted to F/FJ. C4
When , J=1. FA is a flag flip-flop, and G31 is the input gate of flag F/FF A , which outputs 1 when ≦, and 0 when ≦. G32
is the input gate of the switch F/FJ, and sets F/FJ to 1 when the flag F/FF A is 1. F B
is the flag F/F, G 33 is the input gate of the flag F/FF B , which outputs 1 when ≦, and 0 when ≦. G34 is the input gate of the flag F/FJ and transmits the contents of the flag F/FF B to F/FJ.
It works when 〓. G35 is the input gate of the switch F/FJ, which is operated by transmitting the contents of input B. When B=1, J=1. G36 is the input gate of the accumulator ACC.
IV 5 inverts and transmits the contents of the accumulator ACC. 〓 transmits the contents of memory RAM,
When , the contents of operand IA are transmitted. When , the 4-bit contents of inputs k 1 to k 4 are transmitted. 〓
When , the contents of stack register SA are transmitted.
IV 5 is an inverter circuit, and SA is a stack register whose output is led out of the system. The output of SX is led out of the system using a stack register. G37 is the input gate of stack register SA,
〓, transmits the contents of Asayumulator ACC. G38 is the input gate of stack register SX,
〓, the contents of temporary register X are transmitted. SP is the program stack register, G39 is the input gate of the program stack register SP,
When 〓, the adder is added to the contents of the program counter PL.
This is to introduce the value added by 1 at AD3 into the program stack register. Next, the table below shows an example of the instruction code written in the storage ROM of the CPU device, the instruction code name, operation content, and control commands generated based on the instruction code. In the table, A: Instruction code;
B: Instruction name, C: Content, D:
Indicates CPU control instructions.
【表】【table】
【表】【table】
【表】
(C)の説明
1 SKIP
次のプログラムステツプの命令を実行せず、
プログラムカウンタPLのみをアツプさせ、実
質的にスキツプする。
2 AD
アキユムレータACCの内容とメモリーRAM
の内容を2進加算し、加算結果をアキユムレー
タACCに入力する。
3 ADC
アキユムレータACC、メモリーRAM、キヤ
リーF/FCの内容を2進加算し、加算結果を
アキユムレータACCに入力する。
4 ADCSK
アキユムレータACC、メモリーRAM、キヤ
リーF/FCの内容を2進加算し、加算結果を
アキユムレータACCに入力すると共に、この
加算結果で第4ビツトキヤリイC4が発生すれ
ば次のプログラムステツプをステツプする。
5 ADI
アキユムレータACCの内容と、オペランド
IAを2進加算し、加算結果をアキユムレータ
ACCに入力すると共に、この加算結果で第4
ビツトキヤリーC4が発生すれば次のプログラ
ムステツプをスキツプする。
6 DC
オペランドIAを1010(10進数10)に定め、
ADI命令と同様にアキユムレータACCの内容
と、このオペランドIAを2進加算することに
よつて実質的にアキユムレータACCの内容に
10進数10を加算し、その結果をACCに入力す
る。
7 SC
キヤリーF/FCをセツトする。
(Cに1を入力する。)
8 RC
キヤリーF/FCをリセツトする。
(Cに0を入力する。)
9 SM
オペランドIAの内容を解読し、オペランド
で指定されたメモリーの所望ビツトをセツトす
る。(1を入力する。)
10 RM
オペランドIAの内容を解読し、オペランド
で指定されたメモリーの所望ビツトをリセツト
する。(0を入力する。)
11 COMA
アキユムレータACCの各ビツトの内容を反
転し、15の補数をとりアキユムレータACCに
入力する。
12 LDI
アキユムレータACCにオペランドIAを導入
する。
13 L
メモリーRAMの内容をアキユムレータACC
に導入すると共に、オペランドIAをフアイル
アドレスカウンタBMに入力する。
14 LI
メモリーRAMの内容をアキユムレータACC
に導入すると共に、オペランドIAをメモリー
フアイルアドレスカウンタBMに入力する。さ
らにメモリーデイジツトアドレスカウンタBL
をアツプさせる。ただしBLの内容が予め定め
た値n1に等しい時は次のプログラムステツプを
スキツプする。
15 XD
メモリーRAMの内容とアキユムレータACC
の内容を交換すると共に、オペランドIAをメ
モリーフアイルアドレスカウンタBMに入力す
る。さらにメモリーデイジツトアドレスカウン
タBLをダウンさせる。ただし、BLの内容が予
め定めた値n2に等しい時は次のプログラムステ
ツプをスキツプする。
16 X′
メモリーRAMの内容とアキユムレータACC
の内容を交換すると共に、オペランドIAをメ
モリーフアイルアドレスカウンタBMに入力す
る。
17 XI
メモリーRAMの内容とアキユムレータACC
の内容を交換すると共に、オペランドIAをメ
モリーフアイルアドレスカウンタBMに入力す
る。さらにメモリーデイジツトアドレスカウン
タBLをアツプさせる。ただし、BLの内容が予
め定めた値n1に等しい時は次のプログラムステ
ツプをスキツプする。
18 XD
メモリーRAMの内容とアキユムレータACC
の内容を交換すると共に、オペランドIAをメ
モリーフアイルアドレスカウンタBMに入力す
る。さらにメモリーデイジツトアドレスカウン
タBLをダウンさせる。ただし、BLの内容が予
め定めた値n2に等しい時は次のプログラムステ
ツプをスキツプする。
19 LBLI
オペランドIAとメモリーデイジツトアドレ
スカウンタBLに入力する。
20 LB
オペランドIAをメモリーフアイルアドレス
カウンタBMに入力すると共に、オペランドI
BをメモリーデイジツトアドレスカウンタBLに
入力する。
21 ABLI
メモリーデイジツトアドレスカウンタBLの
内容とオペランドIAを2進加算し、加算結果
をBLに入れる。ただし、BLの内容があらかじ
め定めた値n1に等しい時は次のプログラムをス
キツプする。
22 ABMI
メモリーフアイルアドレスカウンタBMの内
容とオペランドIAを2進加算し、加算結果を
BMに入れる。
23 T
オペランドIAをプログラムステツプカウン
タPLに入力する。
24 SKC
キヤリーF/FCが1ならば次のプログラム
ステツプをスキツプする。
25 SKM
オペランドIAの内容を解読し、オペランド
で指定されたメモリーの所望ビツトが1であれ
ば次のプログラムステツプをスキツプする。
26 SKBI
メモリーデイジツトアドレスカウンタBLの
内容とオペランドIAを比較し、等しい時には
次のプログラムステツプをスキツプする。
27 SKAI
アキユムレータACCの内容と、オペランド
IAを比較し、等しい時には次のプログラムス
テツプをスキツプする。
28 SKAM
アキユムレータACCの内容と、メモリー
RAMの内容を比較し、等しい時には次のプロ
グラムステツプをスキツプする。
29 SKN1
KN1入力が0の時、次のプログラムステツプ
をスキツプする。
30 SKN2
KN2入力が0の時、次のプログラムステツプ
をスキツプする。
31 SKF1
KF1入力が0の時、次のプログラムステツプ
をスキツプする。
32 SKF2
KF2入力が0の時、次のプログラムステツプ
をスキツプする。
33 SKAK
AK入力が1の時、次のプログラムステツプ
をスキツプする。
34 SKTAB
TAB入力が1の時、次のプログラムステツ
プをスキツプする。
35 SKFA
フラツグF/FFAが1の時、次のプログラム
ステツプをスキツプする。
36 SKFB
フラツグF/FFBが1の時、次のプログラム
ステツプをスキツプする。
37 WIS
出力バツフアレジスタWの内容を1ビツト右
シフトすると共に、第1ビツト(最上位ビツ
ト)に1を入力する。
38 WIR
出力バツフアレジスタWの内容を1ビツト右
シフトすると共に、第1ビツト(最上位ビツ
ト)に0を入力する。
39 NPS
バツフアレジスタW出力コントロールF/
FNpをセツトする。(1を入力する。)
40 NPR
バツフアレジスタW出力コントロールF/
FNpをリセツトする。(0を入力する。)
41 ATF
アキユムレータACCの内容を出力バツフア
レジスタFに転送する。
42 LXA
アキユムレータACCの内容をテンポラリー
レジスタXに導入する。
48 XAX
アキユムレータACCの内容とテンポラリー
レジスタXの内容を交換する。
44 SFA
フラツグF/FFAをセツトする。(1を入力
する。)
45 RFA
フラツグF/FFBをリセツトする。(0を入
力する。)
46 SFB
フラツグF/FFBをセツトする。(1を入力
する。)
47 RFB
フラツグF/FFBをリセツトする。(0を入
力する。)
48 SFC
入力テスト用フラツグF/FFcをセツトす
る。(1を入力する。)
49 RFC
入力テスト用フラツグF/FFcをリセツトす
る。(0を入力する。)
50 SKB
入力βが1の時、次のプログラムステツプを
スキツプする。
51 KTA
入力k1〜k4の内容をアキユムレータACCに
導入する。
52 STPO
アキユムレータACCの内容をスタツクレジ
スタSAに、テンポラリーレジスタXの内容を
スタツクレジスタSXに導入する。
53 EXPO
アキユムレータACCの内容とスタツクレジ
スタSAの内容を交換し、テンポラリーレジス
タXの内容とスタツクレジスタSXの内容を交
換する。
54 TML
プログラムカウンタPLの内容に1を加えた
ものをプログラムスタツクレジスタSPに転送
する。さらにオペランドIAをプログラムカウ
ンタPLに導入する。
55 RIT
プログラムスタツクレジスタSPの内容をプ
ログラムカウンタPLに転送する。
次に、CPU装置内のROM(リード・オンリ
ー・メモリー)に記憶されるオペコードとオペラ
ンドの関係を第2表に示す。[Table] Explanation of (C) 1 SKIP Do not execute the next program step command.
Only the program counter PL is incremented, essentially skipping. 2 AD Accumulator ACC contents and memory RAM
Add the contents in binary and input the addition result to the accumulator ACC. 3 Add the contents of the ADC accumulator ACC, memory RAM, and carry F/FC in binary, and input the addition result to the accumulator ACC. 4 ADCSK Performs binary addition of the contents of the accumulator ACC, memory RAM, and carry F/FC, inputs the addition result to the accumulator ACC, and if the fourth bit carry C4 occurs as a result of this addition, moves to the next program step. . 5 Add the contents of the ADI accumulator ACC and the operand I A in binary, and add the addition result to the accumulator.
In addition to inputting to ACC, the fourth
If bit carry C4 occurs, the next program step is skipped. 6 Set the DC operand I A to 1010 (decimal number 10),
As with the ADI instruction, by adding the contents of the accumulator ACC and this operand I A in binary, the contents of the accumulator ACC are essentially added.
Add the decimal number 10 and enter the result in ACC. 7 Set SC Carry F/FC. (Input 1 to C.) 8 RC Reset the carry F/FC. (Input 0 to C.) 9 SM Decodes the contents of operand I A and sets the desired bit in the memory specified by the operand. (Input 1.) 10 RM Decodes the contents of operand I A and resets the desired bit in the memory specified by the operand. (Input 0.) 11 COMA Invert the contents of each bit of the accumulator ACC, take the 15's complement, and input it to the accumulator ACC. 12 Introduce operand I A to LDI accumulator ACC. 13 L Saves the contents of memory RAM to the accumulator ACC.
At the same time, the operand I A is input to the file address counter BM. 14 LI Saves the contents of memory RAM to the accumulator ACC.
At the same time, the operand I A is input to the memory file address counter BM. Furthermore, memory digit address counter BL
to increase. However, when the content of BL is equal to the predetermined value n1 , the next program step is skipped. 15 XD Memory RAM contents and accumulator ACC
At the same time, the operand I A is input to the memory file address counter BM. Furthermore, the memory digit address counter BL is decreased. However, when the content of BL is equal to the predetermined value n2 , the next program step is skipped. 16 X′ Memory RAM contents and accumulator ACC
At the same time, the operand I A is input to the memory file address counter BM. 17 XI Memory RAM contents and accumulator ACC
At the same time, the operand I A is input to the memory file address counter BM. Furthermore, the memory digit address counter BL is increased. However, when the content of BL is equal to the predetermined value n1 , the next program step is skipped. 18 XD Memory RAM contents and accumulator ACC
At the same time, the operand I A is input to the memory file address counter BM. Furthermore, the memory digit address counter BL is decreased. However, when the content of BL is equal to the predetermined value n2 , the next program step is skipped. 19 LBLI Operand I Input to A and memory digit address counter BL. 20 LB Operand I A is input to memory file address counter BM, and operand I
Input B to memory digit address counter BL. 21 ABLI Performs binary addition of the contents of memory digit address counter BL and operand I A , and stores the addition result in BL. However, when the contents of BL are equal to the predetermined value n1 , the next program is skipped. 22 ABMI Adds the contents of memory file address counter BM and operand I A in binary, and adds the addition result.
Put it in BM. 23 T Inputs operand I A to program step counter PL. 24 SKC If carry F/FC is 1, skip the next program step. 25 SKM Deciphers the contents of operand I A , and if the desired bit in the memory specified by the operand is 1, skips the next program step. 26 SKBI Compares the contents of the memory digit address counter BL and the operand I A , and if they are equal, skips the next program step. 27 SKAI Compares the contents of accumulator ACC and operand I A , and if they are equal, skips the next program step. 28 SKAM Accumulator ACC contents and memory
Compare the contents of RAM, and if they are equal, skip the next program step. 29 SKN 1 When the KN 1 input is 0, skip the next program step. 30 SKN 2 When KN 2 input is 0, skip next program step. 31 SKF 1 When KF 1 input is 0, skip next program step. 32 SKF 2 When KF 2 input is 0, skip next program step. 33 SKAK When the AK input is 1, skips the next program step. 34 SKTAB When the TAB input is 1, skip the next program step. 35 SKFA Flag F/FF When A is 1, skips the next program step. 36 SKFB Flag F/FF When B is 1, skips the next program step. 37 WIS Shifts the contents of the output buffer register W by 1 bit to the right and inputs 1 to the first bit (most significant bit). 38 WIR Shifts the contents of the output buffer register W by 1 bit to the right and inputs 0 to the first bit (most significant bit). 39 NPS Buffer register W output control F/
Set FN p . (Input 1.) 40 NPR Buffer register W output control F/
Reset FN p . (Input 0.) 41 ATF Transfers the contents of accumulator ACC to output buffer register F. 42 LXA Loads the contents of accumulator ACC into temporary register X. 48 XAX Exchanges the contents of accumulator ACC and temporary register X. 44 SFA Set flag F/FF A. (Input 1.) 45 RFA Reset flag F/FF B. (Input 0.) 46 SFB Set flag F/FF B. (Input 1.) 47 RFB Resets flag F/FF B. (Input 0.) 48 SFC Set input test flag F/FF c . (Input 1.) 49 Reset the RFC input test flag F/FF c . (Input 0.) 50 SKB When input β is 1, skip the next program step. 51 KTA Introduce the contents of inputs k 1 to k 4 to the accumulator ACC. 52 STPO Loads the contents of accumulator ACC into stack register SA and the contents of temporary register X into stack register SX. 53 EXPO Exchanges the contents of accumulator ACC and stack register SA, and exchanges the contents of temporary register X and stack register SX. 54 TML Transfers the contents of program counter P L plus 1 to program stack register SP. Furthermore, operand I A is introduced into program counter P L . 55 RIT Transfers the contents of program stack register SP to program counter PL . Next, Table 2 shows the relationship between the opcodes and operands stored in the ROM (read-only memory) in the CPU device.
【表】【table】
【表】
ここで、例えば、リード・オンリー・メモリー
ROMの出力を10ビツトとした場合の例に採る
と、イントラクシヨンAD或いはCOMA(第1表
参照)はインストラクシヨンデコーダDC5で10ビ
ツトのコードが各々0001011000或いは0001011111
であることを解読して判断され制御命令〓,〓或
いは〓を発生する。一方SKBIは上位6ビツトが
000110であることで判断され、この時下位4ビツ
ト0010はオペランドIAとして扱われる。さらに
LBは上位2ビツトが01であることで判断され、
この時第3〜第8ビツトの001010はオペランドI
Aとして扱われ、第9、第10ビツトの11はオペラ
ンドIBとして扱われる。オペランド(oprand)
は命令語の構成部分で、データや次の命令の貯え
られているアドレスなどを示す部分で、命令のア
ドレス部と言うことができる。
次に、上述したCPU装置の主な処理動作の一
例(以下、これを処理リストと呼ぶ。)について
説明する。
(処理リスト)
(1) 同じ数値NをメモリーRAMの所望領域に導
入する。(NNN→X)
(2) 予め定められた複数の異なる数値をメモリー
の所望領域に導入する。(N1,N2,N3…→X)
(3) メモリーの所望領域の内容をメモリーの他の
所望領域に転送する。(X→Y)
(4) メモリーの所望領域の内容をメモリーの他の
所望領域の内容と交換する。(X←→Y)
(5) メモリーの所望領域に予め定められた数値N
を2進加算又は減算する。(X±N)
(6) メモリーの所望領域の内容に他の領域の内容
を10進加算する。(X±Y)
(7) 所望領域のメモリーの内容を1デイジツトシ
フトする。(X右、X左)
(8) メモリーの所望領域の1ビツトコンデイシヨ
ナルF/Fをセツト又はリセツトする。
(Fset,Freset)
(9) メモリーの所望領域の1ビツトコンデイシヨ
ナルF/Fの内容をジヤツジし、ジヤツジ結果
で次に進むプログラムアドレスを変える。
(10) メモリーの所望領域のデイジツト内容が予め
定められた数値かどうかをジヤツジし、ジヤツ
ジ結果で次に進むプログラムステツプを変え
る。
(11) メモリーの所望領域の複数デイジツトの内容
が全て予め定められた数値と等しいかどうかを
ジヤツジし、ジヤツジ結果でプログラムステツ
プを変える。
(12) メモリーの所望領域の内容が予め定めた数値
よりも小さいかどうかをジヤツジし、ジヤツジ
結果で次に進むプログラムステツプを変える。
(13) メモリーの所望領域の内容が予め定めた数
値よりも大きいかどうかをジヤツジし、ジヤツ
ジ結果で次に進むプログラムステツプを変え
る。
(14) メモリーの所望領域の内容を表示する。
(15) 押圧されたキースイツチの種類を判別す
る。
次にこれらの上記(1)〜(15)の処理をインスト
ラクシヨンコードに基づいて実行する場合の具体
例を前記処理リストに従つて以下に説明する。
(処理リストの具体例)
(1) 同じ数値Nをメモリーの所望領域に導入す
る。
(NNN→X)[Table] Here, for example, read-only memory
Taking an example where the ROM output is 10 bits, instruction AD or COMA (see Table 1) will be output by instruction decoder DC 5 and the 10 bit code will be 0001011000 or 0001011111 respectively.
It decodes and determines that it is, and generates the control command 〓, 〓, or 〓. On the other hand, in SKBI, the top 6 bits are
It is determined that it is 000110, and at this time, the lower 4 bits 0010 are treated as operand IA . moreover
LB is judged by the upper 2 bits being 01,
At this time, the 3rd to 8th bits 001010 are operand I
The 9th and 10th bits, 11, are treated as operand IB . operand
is a constituent part of an instruction word, and is a part that indicates data, the address where the next instruction is stored, etc., and can be called the address part of the instruction. Next, an example of the main processing operations of the above-mentioned CPU device (hereinafter referred to as a processing list) will be explained. (Processing list) (1) Introduce the same numerical value N to the desired area of memory RAM. (NNN→X) (2) Introduce a plurality of different predetermined numerical values into a desired area of memory. (N 1 , N 2 , N 3 ...→X) (3) Transfer the contents of the desired area of the memory to another desired area of the memory. (X→Y) (4) Exchange the contents of a desired area of memory with the contents of another desired area of memory. (X←→Y) (5) Predetermined value N in the desired area of memory
Add or subtract binary. (X±N) (6) Add the contents of another area to the contents of the desired area of memory in decimal form. (X±Y) (7) Shift the contents of the memory in the desired area by one digit. (X right, X left) (8) Set or reset the 1-bit conditional F/F in the desired area of memory.
(Fset, Freset) (9) Change the contents of the 1-bit conditional F/F in the desired area of memory, and change the next program address based on the change result. (10) Check whether the digit content in the desired area of the memory is a predetermined value, and change the next program step based on the check result. (11) Check whether the contents of a plurality of digits in a desired area of the memory are all equal to a predetermined value, and change the program step based on the check result. (12) Judge whether the contents of the desired area of memory are smaller than a predetermined value, and change the next program step based on the result of the judgment. (13) Judge whether the contents of the desired area of memory are larger than a predetermined value, and change the next program step based on the result of the judgment. (14) Display the contents of the desired area of memory. (15) Determine the type of key switch that was pressed. Next, a specific example of executing the processes (1) to (15) above based on the instruction code will be described below according to the process list. (Specific example of processing list) (1) Introduce the same numerical value N to a desired area of memory. (NNN→X)
【表】【table】
【表】【table】
【表】【table】
【表】
(2) あらかじめ定められた複数の異なる数値をメ
モリーの所望領域に導入する。(N1,N2,N3…
→X)
(Type1)4桁の数値N4N3N2N1をメモリーに導入
する例を示す。(任意桁の導入も同様)[Table] (2) Introduce a plurality of different predetermined values into a desired area of memory. (N 1 , N 2 , N 3 …
→X) (Type 1) An example of introducing a 4-digit number N 4 N 3 N 2 N 1 into memory is shown. (The same applies to the introduction of arbitrary digits)
【表】【table】
【表】【table】
【表】
(3) メモリーの所望領域の内容をメモリの他の所
望領域に転送する。(X→Y)[Table] (3) Transfer the contents of a desired area of memory to another desired area of memory. (X→Y)
【表】【table】
【表】【table】
【表】【table】
【表】
(4) メモリーの所望領域の内容とメモリーの他の
所望領域との内容とを交換する。(X←→Y)[Table] (4) Exchange the contents of the desired area of memory with the contents of another desired area of memory. (X←→Y)
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】
▽
[Table] ▽
【表】
(5) メモリーの所望領域にあらかじめ定められた
数値Nを2進加算又は減算する。[Table] (5) Add or subtract a predetermined numerical value N to or from a desired area of memory.
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】
▽
[Table] ▽
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】
▽
[Table] ▽
【表】
(6) メモリーの所望領域の内容に他の領域の内容
を10進加算又は減算する。[Table] (6) Add or subtract the contents of another area to or from the contents of the desired area of memory in decimal form.
【表】【table】
【表】【table】
【表】【table】
【表】
(7) 所望領域のメモリーの内容を1デイジツトシ
フトする。[Table] (7) Shift the memory contents of the desired area by one digit.
【表】【table】
【表】【table】
【表】【table】
【表】
(8) メモリーの所望領域の1ビツトコンデイシヨ
ナルF/Fをセツト又はリセツトする。[Table] (8) Set or reset the 1-bit conditional F/F in the desired area of memory.
【表】【table】
【表】【table】
【表】
(9) メモリーの所望領域の1ビツトコンデイシヨ
ナルF/Fの内容をジヤツジし、ジヤツジ結果
で次に進むプログラムアドレス(ステツプ)を
変える。[Table] (9) Change the contents of the 1-bit conditional F/F in the desired area of memory, and change the next program address (step) based on the change result.
【表】【table】
【表】
(10) メモリーの所望領域のデイジツト内容があら
かじめ定められた数値かどうかをジヤツジし、
ジヤツジ結果で次に進むプログラムアドレス
(ステツプ)を変える。[Table] (10) Check whether the digit content in the desired area of memory is a predetermined value,
Change the next program address (step) based on the change result.
【表】
(11) メモリーの所望領域の複数のデイジツトの
内容が全てあらかじめ定めた数値Nと等しいか
どうかをジヤツジし、ジヤツジ結果で次に進む
アドレス(ステツプ)を変える。[Table] (11) Check whether the contents of a plurality of digits in a desired area of memory are all equal to a predetermined value N, and change the next address (step) based on the check result.
【表】【table】
【表】
(12) メモリーの所望領域の内容があらかじめ定
めた数値Nよりも小さいかどうかをジヤツジ
し、ジヤツジ結果で、次に進むアドレス(ステ
ツプ)を変える。[Table] (12) Judge whether the contents of the desired area of memory are smaller than a predetermined value N, and change the next address (step) based on the judgment result.
【表】【table】
【表】
(13) メモリーの所望領域の内容があらかじめ定
めた数値Nよりも大きいかどうかをジヤツジ
し、ジヤツジ結果で、次に進むプログラムアド
レス(ステツプ)を変える。[Table] (13) Check whether the contents of the desired area of memory are larger than a predetermined value N, and change the next program address (step) based on the check result.
【表】 (14) メモリーの所望領域の内容を表示する。【table】 (14) Display the contents of the desired area of memory.
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】【table】
【表】
(15) 押圧されたキースイツチの種類を判別する
もの。(表示中にキー押圧の有無チエツク)[Table] (15) Determines the type of key switch pressed. (Checks whether a key is pressed while displaying)
【表】【table】
【表】
以上がCPU装置の主な処理動作の説明であ
る。
以下動作説明を行う。
第5図は右側の計算部(CPU2)の動作状態図で
ある。第1図の中央のキー群K0は既述の如く含
まれている。
通常の四則計算は本発明と関係なく一般的であ
るので省略する。置数値あるいは演算結果はメモ
リM2に入つているものとする。
キー群K0のいずれのキーも押されていない時
は、n4〜n8,n20,n21がNOの状態なので四則計算
キー群K2(他のキーで表現)をジヤツジし、こ
れらも押圧されていない時には、メモリM2の内
容をDSP2で表示する(n39)。
n20→n24へ進む。フラグAは後述するがキー群
K0の□→,□←以外のキーが直前で押されている時
のみセツトされているので、ここではn26に進
み、左側の計算部の内容M1をM2に受け入れる。
そして終了する。つまり、左側の表示されている
M1の内容がM2に転送され、DSP2でも表示され
る。
n21→n22と進み、Aはリセツト状態なのでn23に
進む。そして逆にM2の内容をM1に転送し□→キー
の時と逆の動作をさせる。
n4で□+キーが押されたことでn9→n10→n11と進
み、フラグF1,F2,Aをセツトする。ここでA
がセツトされたので、□→キーを押した時は、n20
→n24→n25と進む。ここのBセツトは□→キーを押
したことの記憶である。n25→n27と進み、さらに
n28,n31のジヤツジでF1,F2の状態に応じて、
F1=1,F2=1の時 加算
F1=1,F2=0の時 減算
F1=0,F2=1の時 乗算
F1=0,F2=0の時 除算
となる。
ここではF1=1,F2=1なのでn29へ進み、メ
モリーM1の内容とメモリーM2の内容を加算し、
結果をM2に入れる処理をする。この部分の具体
的処理例を第6図に示す。
m1でM2の内容をM3に転送しておく(M2の内容
は変らない)。これは、□←キーの時M2の内容をも
とのままにしておくためのものである。そして
m2でCPU1内のM1の内容をCPU2内のM2に転送す
る(この処理は後述する)。そして、m3にてメモ
リM2とM3を利用して通常の方法で演算し、答を
M2に求める。そして、m4でM2←→M3を行い、結果
として、もとの演算数をM2に、答をM3に求め
る。
そしてn34に進む。□→キーの押圧であり、B=
1であるからn35でM3→M2を行い答を再びM2に
戻す。従つて結果として、□→と□+の組合せてM1
はもとのまま、M2は新たな加算結果となる。
n21→n22→n27と進むのでBはセツトされずn34
→n36となつて答の入つているメモリM3の内容を
M1に転送する。その結果□←キーと□+キーの組合
せて、M2はもとのまま、M1には新たな加算結果
が入る。
乗算減算についても同じ考え方で処理できる。
n37,n38でAとBとをリセツトし初期状態に戻
し、一連の処理を終え、表示状態に戻る。
なお、n36のM3→M1はCPU間の処理であり、
n23の処理と統一させるために、第7図のように
具体的にはm5でM3とM2の内容を交換して、M3の
内容をM2を介して、m6でM1に転送する。その数
m7でM3に移したもとのデータをM2にもどす。
なお、M1→M2,M2→M1はCPU間の転送であ
ることから特別な処理をする。これを第8図、第
9図を参照して説明する。
第8図はCPU1の動作状態図、第9図はCPU2の
動作状態図である。
第5図のn24にてAのジヤツジをしてA≠1
(A=0)の時は、n26でM1→M2を行う。の処理
はCPU間の処理であり第9図の左側の動作状態
図がこの時のCPU2の動作である。O1,O13が対
応するM1→M2の処理である。
□→を押してA=0の時、つまり□→キーだけの押
圧時はn24→O1へ進む。O1,O2での処理はフラグ
FA,FBをセツトし、後述するがCPU1に対して
「M1→M2」の処理動作をするべく指令を出す。
ここでO3以下を説明する前にCPU1側の処理を
第8図を参照して一部説明する。
CPU1側は通常のキー群であり、クリアキー
[Table] The above is an explanation of the main processing operations of the CPU device. The operation will be explained below. FIG. 5 is an operational state diagram of the calculation unit (CPU 2 ) on the right side. The key group K 0 in the center of FIG. 1 is included as described above. The four usual arithmetic calculations are general and have no relation to the present invention, so they will be omitted. It is assumed that the input value or the operation result is stored in memory M2 . When no key in key group K 0 is pressed, n 4 to n 8 , n 20 , n 21 are in the NO state, so change the four arithmetic calculation key group K 2 (represented by other keys) and change these. When neither is pressed, the contents of memory M2 are displayed on DSP 2 (n 39 ). Proceed to n 20 → n 24 . Flag A will be explained later, but it is a key group.
Since this is set only when a key other than □→ or □← of K0 is pressed immediately before, proceed to n26 and accept the contents M1 of the calculation section on the left into M2 .
And it ends. That is, what is shown on the left
The contents of M 1 are transferred to M 2 and also displayed on DSP 2 . The process proceeds as n 21 →n 22 , and since A is in the reset state, it proceeds to n 23 . Then, conversely, the contents of M2 are transferred to M1 and the operation is reversed to that of the □→ key. Since the □+ key is pressed at n 4 , the process progresses from n 9 to n 10 to n 11 , and flags F 1 , F 2 , and A are set. Here A
is set, so when you press the □→ key, n 20
Proceed as →n 24 →n 25 . The B set here is the memory of pressing the □→ key. Proceed as n 25 →n 27 , and then
Depending on the state of F 1 and F 2 in the case of n 28 and n 31 , when F 1 = 1, F 2 = 1, addition when F 1 = 1, F 2 = 0, subtraction F 1 = 0, F 2 When = 1, it is multiplication; when F 1 = 0, F 2 = 0, it is division. Here, F 1 = 1, F 2 = 1, so proceed to n 29 , add the contents of memory M 1 and memory M 2 ,
Process the result into M2 . A specific processing example of this part is shown in FIG. Transfer the contents of M2 to M3 using m1 (the contents of M2 remain unchanged). This is to leave the contents of M2 as they were when pressing the □← key. and
m2 transfers the contents of M1 in CPU 1 to M2 in CPU 2 (this process will be described later). Then, m 3 calculates the answer using memories M 2 and M 3 in the usual way.
Ask for M 2 . Then, perform M 2 ←→M 3 with m 4 , and as a result, find the original number of operations in M 2 and the answer in M 3 . Then proceed to n 34 . □→ key press, B=
1, so do M 3 → M 2 with n 35 and return the answer to M 2 . Therefore, as a result, the combination of □→ and □+ is M 1
remains the same, and M 2 becomes the new addition result. Since the process proceeds as n 21 → n 22 → n 27 , B is not set and n 34
→n 36 and the contents of memory M3 containing the answer
Transfer to M1 . As a result, by pressing the □← key and the □+ key, the new addition result is entered into M 1 while leaving M 2 as it was. Multiplication and subtraction can also be processed using the same concept. At n37 and n38 , A and B are reset to their initial states, a series of processing is completed, and the display state is returned. In addition, M 3 → M 1 of n 36 is processing between CPUs,
In order to unify the processing with n23 , specifically, as shown in Figure 7, the contents of M3 and M2 are exchanged in m5 , and the contents of M3 are transferred to M6 in m6 via M2. Transfer to 1 . the number
Return the original data that was transferred to M3 with m7 to M2 . Note that since M 1 →M 2 and M 2 →M 1 are transfers between CPUs, special processing is performed. This will be explained with reference to FIGS. 8 and 9. FIG. 8 is an operating state diagram of CPU 1 , and FIG. 9 is an operating state diagram of CPU 2 . At n 24 in Figure 5, do the A jigsaw and A≠1.
When (A=0), perform M 1 → M 2 with n 26 . The processing is between the CPUs, and the operation state diagram on the left side of FIG. 9 is the operation of the CPU 2 at this time. This is the process of M 1 →M 2 to which O 1 and O 13 correspond. When □→ is pressed and A=0, that is, when only the □→ key is pressed, proceed to n 24 →O 1 . The processing at O 1 and O 2 sets flags F A and F B , and issues a command to CPU 1 to perform the processing operation "M 1 → M 2 ", which will be described later. Here, before explaining O3 and below, a part of the processing on the CPU 1 side will be explained with reference to FIG. CPU 1 side is a normal key group, clear key
【式】を含み、第1図K1の如きものになつてい る。n′39はクリアキーIt contains [Formula] and looks like K1 in Figure 1 . n′ 39 is the clear key
【式】を除いたキー群の処理
で、n40は各キーの押圧にともなう置数、演算等
の処理部である。n41はクリアキーIn the processing of the key group excluding [Formula], n 40 is a processing unit for setting numbers, calculations, etc. in response to pressing each key. n 41 is clear key
【式】の押圧ジ ヤツジ部で、n42はクリアキーn 42 is the clear key in the press button part of [Formula]
【式】が押されたこ
とによつて行うべき処理部である。
キーが押されていない時にはn43へ進む。n43は
CPU1の入力KF2をジヤツジするもので、KF2は
CPU2のSA1端子(SAは4ビツトであり、そのう
ちの第1ビツトを利用)に接続されているので、
CPU2のSA1端子が「1」の時はn44をスキツプし
てn42へ、SA1が「0」の時はn44からn45へジヤン
プする(n44のT命令のオペランドn45はステツプ
に対応させておく)。ここのSKF2命令は、This is the processing section that should be performed when [Formula] is pressed. If no key is pressed, proceed to n 43 . n 43 is
This is to change the input KF 2 of CPU 1 , and KF 2 is
Since it is connected to the SA 1 terminal of CPU 2 (SA is 4 bits, the first bit is used),
When the SA 1 terminal of CPU 2 is ``1'', skip n 44 and go to n 42 ; when SA 1 is ``0'', jump from n 44 to n 45 (operand n 45 of the T instruction of n 44 ). correspond to the step). The SKF 2 instructions here are:
【式】 キーが押された時の処理で後述する。【formula】 The process when a key is pressed will be described later.
【式】キー
が押されなかつた時はSKF2=0になつているの
でn43→n44→n45へと進む。n45のα=1のジヤツ
ジは、「M1→M2」又は「M2→M1」の処理をすべ
きかどうかを判断するためのものである。即ち、
CPU1のα入力端子は、CPU2のフラグフリツプフ
ロツプFAに接続されているので、FA=1の時は
n47へ、FA=0の時はn46へ進む。FAは前述のO1
でのSFA命令でセツト(1になる)される。更
に□←キーを押した時に、A≠1であつて、M2→
M1をしたい時にも後述するがO15でSFA命令が出
ているので結局A≠1で、□→キー又は□←キーを押
してM1→M2又はM2→M1の処理をするかどうか
を、このn45でジヤツジしていることになる。
α≠1の時はn46でレジスタM1の内容をそのま
ま表示する。従つて特にキーが押されていない時
は、n′39→n41→n43→n44→n45→n46→n′39→…を繰
り返し、M1の内容の表示を行う。
□→キーを押してO1でフラグフリツプフロツプ
FAがセツトされると、n45のα=1が満足される
のでn47へ進む。n47のβ=1のジヤツジは、M1→
M2をすべきかM2→M1をすべきかを判断している
もので、□→キー押圧時はO2でSFB命令を出して
いるのでフラグフリツプフロツプFBもセツトさ
れているのでn47からn48へ進む。n48はフラグフリ
ツプフロツプFEのリセツトで、これも後述する
が、n58で一連の処理を終了したという指令をFE
をセツトすることで行うので、この時にセツトし
たFEをn48でリセツトしておくものである。n49
でメモリM1の第1デイジツトを指定し、n50のLI
命令で指定されたメモリの内容をアキユムレータ
AACに導入する。n51でこのアキユムレータACC
の内容を出力レジスタFに転送する。
一方CPU2側ではO1,O2でFAとFBをセツト
し、O3で受け入れるメモリM2の第1デイジツト
を指定しておく。O4のRFD命令は、フラグフリ
ツプフロツプFDをリセツトするもので、後述す
るO9のSFD命令でセツトしたFDをもとにもどす
ためのものである。O5は入力AKが「1」かどう
かのジヤツジである。即ち、O3で受け入れ状態
を整えておいたので、CPU2のAK端子に接続さ
れたCPU1のフラグフリツプフロツプFDがセツト
されない限りO5からO6へ進み、O6のT命令のオ
ペランドをO5のステツプにしておくことによつ
てO5→O6→O5→…をくり返す。そして、CPU1側
のn52でFDがセツトされると、CPU2のAK入力が
「1」となるのでO5からO6をスキツプしてO7に進
み、KTA命令に基いてCPU1の出力レジスタFに
接続されているK入力の内容をアキユムレータ
ACCに転送する。そして、O8でのXI命令でメモ
リM2とアキユムレータACCの内容を交換し、
ACCに入力したメモリM1第1のデイジツト内容
をメモリM2の第1デイジツトに転送する。そし
てO9でフラグフリツプフロツプFDをセツトす
る。
一方CPU1側はn52でFDをセツトした後n53へ進
んで入力AKのジヤツジをする。CPU1のAK端子
はCPU2のFD出力に接続されているのでFDが
「1」になるまではn53→n54→n53→…を繰り返
す。つまりここの処理はM1→M2の1デイジツト
分の転送を終えたかどうかを確認しているのであ
る。O8で転送を行い、O9でFDがセツトされるの
で、n53ではこれを受け、n54をスキツプしてn55へ
進む。
一方CPU2側はO9でFDをセツトした後O10で
TAB入力をジヤツジする。TAB入力はCPU1のF
E出力に接続されている。FEは後述するがM1→
M2の転送を全て終えたときにセツトされるの
で、ここではO11へ進み、O4へジヤンプして、O9
でセツトしたFDをリセツトし、再びO5でAK入
力のジヤツジをする。
CPU1側はn55でFDをリセツトし、n56でのLI命
令でメモリM1の内容をアキユムレータACCに転
送する。n50でのLI命令の処理でメモリーの指定
デイジツトアドレスが自動的にアツプされていの
で、このn56の処理ではメモリM1は第2デイジツ
トが指定されていので第2デイジツト内容が
ACCに入る。LI命令はメモリの指定デイジツト
アドレスが特定値n1(ここではデータの最上位桁
位より1桁上位)になつた時n57をスキツプして
n58へ進ませるが、それ以外はn57へ進みT命令で
n51に戻る。ここで今ACCに入つたメモリM1の第
2デイジツトの内容をレジスタFに転送する。そ
してn52でFDをセツトする。
CDU2側では前述の如くO5でAKをジヤツジし
ているので、n52のFDセツトによつてAK=1と
なり、O6をスキツプしてO7へ進み、O7,O8でメ
モリM1の第2デイジツト内容をメモリM2の第2
デイジツトに転送する(なおメモリM2の指定デ
イジツトアドレスは第1デイジツトの処理時の
O8でのXI命令で自動的にアツプされているの
で、この時は第2デイジツトアドレスが指定され
ている)。
以上のことをくり返すことによつて順次メモリ
M1の内容をM2に転送していく。
CPU1側のn56にてデータの最終桁をアキユムレ
ータACCに導入してn51へもどり、CPU2のメモリ
M2の最終桁にこの内容を転送した後、再びn56へ
進んだ時ここでBL=V(V=n1)が満足されるの
でn57をスキツプしてn58へ進む。そして、ここで
FEをセツトする。FEセツトにてCPU2側はO10の
TAB入力ジヤツジが満足され、O12,O13へと進
み、FA,FBをリセツトし初期状態に戻る。
CPU1側もn58でFEをセツトした後もとのn′39へ戻
り一連の処理を終了する。n58でセツトしたFEは
n48でリセツトするようにしておく。
次に□←キーを押してM2→M1を行う処理の説明
をする。
この時はn22からn23へと進む。n23は第9図の右
側に具体的処理O14〜O25として表わされる。
A≠1で□←キーを押した時O14へと進み、FE
をリセツトする。これは前述のn48と同じ目的の
処理である。O15でのFAセツトはCPU1側のn45
(α=1ジヤツジ)に備えるものである。ただし
M2→M1の時はFBをセツトさせないのでn45→n47
→n59へと進む。CPU2側はO15でFAをセツトした
後O16でメモリM2の第1デイジツトを指定し、
O17でこの指定されたメモリM2の第1デイジツト
の内容をアキユムレータACCに導入する。そし
てO18でこの内容を出力レジスタFに転送する。
CPU1側はn61で後述するFDをリセツトしてn62
へ進む。n62はAK入力ジヤツジで、AK入力は
CPU2のフラグフリツプフロツプFDに接続されて
いて、CPU2のFDがセツトされるまで、n62とn63
をくり返す。
CPU2ではO18でACCの内容をFに転送した後
O19でFDをセツトし、O20へ進む。このFDセツ
トをCPU1側で受けるのでn62からn63をスキツプ
してn64へ進み、KTA命令でその時にK入力にあ
る第2メモリM2の第1デイジツト内容をアキユ
ムレータACCに転送する。そしてn65で第1メモ
リM1の第1デイジツトと交換し、実質的に、第
2メモリM2の第1デイジツト内容をM1の第1デ
イジツトに転送する。そしてn66へ進んでFDをセ
ツトする。
CPU2側ではO21でAKのジヤツジをしている。
CPU2のAK入力はCPU1のFD出力に接続されてい
るのでCPU1側のn66でFDがセツトされるまで、
O20→O20→O20→…をくり返す。n66でFDがセツ
トされるとO22へ進む。O22ではO19でセツトした
FDをリセツトしておく。そしてO23へ進む。こ
こでLI命令を出し、メモリM2の内容をアキユム
レータACCに入れる。O17で指定デイジツトアド
レスが自動的にアツプしているので、このO23で
は、メモリM2の第2デイジツトの内容ACCに入
る。このO23のLI命令は同時に、指定デイジツト
アドレスがデータの最終デイジツトより1桁上位
になつたかどうかのジヤツジBL=V(V=n1)を
行つているが、ここではまだ一致しないのでO24
のT命令でO18にもどる。そしてATF命令でACC
の第2デイジツト内容をレジスタFに転送し、
O19で再びFpをセツトする。
一方CPU1側は、n66でFDをセツトした後、n67
へ進み、TAB入力のジヤツジを行う。TAB入力
はCPU2のFE出力に接続されていて、CPU2のFE
はメモリの内容を全桁転送し終えた時にO25にて
セツトされるので、それまではn67→n68→n61と進
み、n61でFDをリセツトした後、n62で再びAK入
力のジヤツジを行う。
CPU2側のO19でFDがセツトされることによつ
てn63をスキツプしてn64へ進むので、ここのKTA
命令で、第2メモリM2の第2デイジツト内の内
容がK入力を介してCPU1のアキユムレータACC
に入り、次のn65でメモリM1の第2デイジツトに
入る。
以上のことをくり返し、最終デイジツトの処理
を終えた後CPU2側がO23にきた時今度はO24をス
キツプしてO25へ進み、ここでFEがセツトされ
るので、CPU1側もn67からn68をスキツプして切
期状態にもどる。CPU2側ももちろんO25から初期
状態にもどる。
以上のようにしてA≠1の時に□←キーを押すこ
とによつてM2→M1がなされる。
また第5図のCPU2の処理でのm6,m2の「M2
→M1」,「M1→M2」は第9図と同じ処理でよい。
[Formula] When the key is not pressed, SKF 2 = 0, so proceed to n 43 → n 44 → n 45 . The judgment of α=1 in n 45 is for determining whether to process “M 1 →M 2 ” or “M 2 →M 1 ”. That is,
The α input terminal of CPU 1 is connected to the flag flip-flop F A of CPU 2 , so when F A = 1,
Go to n 47 , and if F A = 0, go to n 46 . F A is the aforementioned O 1
It is set (becomes 1) by the SFA instruction in . Furthermore, when you press the □← key, A≠1 and M 2 →
When you want to do M 1 , as will be explained later, the SFA command is issued at O 15 , so in the end A≠1, press the □→ key or □← key to process M 1 → M 2 or M 2 → M 1 . You'll be wondering what to do with this N45 . When α≠1, n46 displays the contents of register M1 as is. Therefore, when no key is pressed, n' 39 → n 41 → n 43 → n 44 → n 45 → n 46 → n' 39 →... is repeated to display the contents of M 1 . □→Press O 1 to flip flop the flag
When FA is set, α=1 of n45 is satisfied, so proceed to n47 . For n 47 , β = 1, M 1 →
It is determining whether to perform M 2 or M 2 → M 1. When the □→ key is pressed, the SFB command is issued with O 2 , so the flag flip-flop F B is also set. Proceed from n 47 to n 48 . n48 is a reset of the flag flip-flop FE , which will also be described later, and a command indicating that a series of processing has been completed is sent to FE at n58 .
Since this is done by setting , the FE set at this time is reset at n48 . n 49
specifies the first digit of memory M 1 and LI of n 50
The contents of the memory specified by the instruction are stored in the accumulator.
Introduced into AAC. This accumulator ACC with n 51
Transfer the contents of to output register F. On the other hand, on the CPU 2 side, O 1 and O 2 set F A and F B , and O 3 specifies the first digit of memory M 2 to be accepted. The RFD instruction at O4 is for resetting the flag flip-flop FD , and is for restoring the FD set by the SFD instruction at O9 , which will be described later. O5 indicates whether the input AK is "1". That is, since the acceptance state has been prepared at O3 , unless the flag flip-flop F D of CPU 1 connected to the AK terminal of CPU 2 is set, the process proceeds from O5 to O6 , and the T instruction of O6 is executed. By setting the operand to step O 5 , repeat O 5 → O 6 → O 5 →…. Then, when FD is set in n52 on the CPU 1 side, the AK input of CPU 2 becomes "1", so skip O 5 to O 6 and proceed to O 7 , and CPU 1 is set based on the KTA instruction. The contents of the K input connected to the output register F of the accumulator
Transfer to ACC. Then exchange the contents of memory M2 and accumulator ACC with the XI instruction at O8 ,
The contents of the first digit of memory M1 input to ACC are transferred to the first digit of memory M2 . Then, set the flag flip-flop F D at O9 . On the other hand, on the CPU 1 side, after setting FD at n52 , the process advances to n53 and changes the input AK. Since the AK terminal of CPU 1 is connected to the FD output of CPU 2 , repeat n 53 → n 54 → n 53 →... until FD becomes "1". In other words, the processing here checks whether the transfer of one digit from M 1 to M 2 has been completed. Transfer is performed at O8 , and FD is set at O9 , so n53 receives this, skips n54 , and proceeds to n55 . On the other hand, on the CPU 2 side, after setting F D at O 9 , at O 10
Change TAB input. TAB input is F of CPU 1
Connected to E output. F E will be explained later, but M 1 →
It is set when all M 2 transfers are completed, so here we proceed to O 11 , jump to O 4 , and return to O 9.
Reset the FD you set with , and change the AK input again with O 5 . The CPU 1 side resets FD at n55 , and transfers the contents of memory M1 to the accumulator ACC with the LI instruction at n56 . Since the specified digit address of the memory is automatically uploaded in the processing of the LI instruction in n50 , the second digit is specified in memory M1 in the processing of n56 , so the contents of the second digit are
Enter ACC. The LI instruction skips n57 when the specified digit address in memory reaches a specific value n1 (here, one digit higher than the most significant digit of the data).
Proceed to n 58 , otherwise proceed to n 57 with T command
Return to n 51 . Here, the contents of the second digit of memory M1 , which has now entered ACC, are transferred to register F. Then, set F D at n52 . On the CDU 2 side, as mentioned above, AK is adjusted at O 5 , so AK = 1 due to the F D set of n 52 , skipping O 6 and proceeding to O 7 , and changing the memory at O 7 and O 8 . The second digit contents of M1 are stored in the second digit of memory M2 .
(Note that the specified digit address in memory M2 is the same as the one used when processing the first digit.)
Since it was automatically uploaded by the XI instruction in O8 , the second digit address is specified at this time). By repeating the above steps, memory
The contents of M1 are transferred to M2 . The last digit of the data is introduced into the accumulator ACC at n56 on the CPU 1 side, returns to n51 , and is transferred to the memory of CPU 2.
After transferring this content to the last digit of M2 , when the program goes to n56 again, BL=V (V=n 1 ) is satisfied, so it skips n57 and goes to n58 . Then, set F E here. In F E set, CPU 2 side is O10 .
When the TAB input direction is satisfied, the program proceeds to O 12 and O 13 , resets F A and F B , and returns to the initial state.
On the CPU 1 side, after setting F E at n58 , the process returns to n'39 and ends the series of processing. The F E set at n 58 is
Make sure to reset it with n48 . Next, I will explain the process of pressing the □← key to change from M 2 to M 1 . At this time, proceed from n 22 to n 23 . n23 is represented on the right side of FIG. 9 as specific processing O14 to O25 . When A≠1 and press the □← key, advance to O 14 and F E
Reset. This process has the same purpose as n 48 above. F A set at O 15 is n 45 on CPU 1 side
(α=1 shot). however
When M 2 →M 1 , F B is not set, so n 45 → n 47
→ Proceed to n 59 . On the CPU 2 side, after setting F A at O15 , specify the first digit of memory M2 at O16 ,
O17 introduces the contents of the first digit of this designated memory M2 into the accumulator ACC. This content is then transferred to output register F at O18 . On the CPU 1 side, reset F D (described later) with n 61 and n 62
Proceed to. n 62 is the AK input jack, and the AK input is
Connected to CPU 2 's flag flip-flop FD , n 62 and n 63 until CPU 2 's FD is set.
Repeat. In CPU 2 , after transferring the contents of ACC to F at O 18
Set FD at O 19 and proceed to O 20 . Since this F D set is received on the CPU 1 side, it skips n62 to n63 and proceeds to n64 , and uses the KTA instruction to transfer the first digit content of the second memory M2 , which is at the K input at that time, to the accumulator ACC. . It is then exchanged with the first digit of the first memory M1 at n65 , essentially transferring the contents of the first digit of the second memory M2 to the first digit of M1 . Then proceed to n66 and set FD . On the CPU 2 side, O 21 is running AK.
Since the AK input of CPU 2 is connected to the FD output of CPU 1 , until FD is set by n66 on the CPU 1 side,
Repeat O 20 →O 20 →O 20 →…. When F D is set at n66 , the process advances to O22 . At O22 , reset the FD set at O19 . Then proceed to O23 . Now issue the LI command and put the contents of memory M2 into the accumulator ACC. Since the designated digit address has been automatically raised at O17 , the contents ACC of the second digit in memory M2 are entered at O23 . This O23 LI instruction simultaneously checks whether the specified digit address is one digit higher than the last digit of the data, BL=V (V=n 1 ), but since they do not match yet, O twenty four
Return to O 18 with the T command. and ACC with ATF command
transfer the contents of the second digit to register F;
At O19 , F p is set again. On the other hand, on the CPU 1 side, after setting FD at n 66 , n 67
Proceed to , and perform TAB input. The TAB input is connected to the F E output of CPU 2 , and the TAB input is connected to the F E output of CPU 2.
is set at O25 when all digits of the memory contents have been transferred, so until then the process proceeds as n 67 → n 68 → n 61 , and after resetting FD at n 61 , AK is reset again at n 62 . Perform input maneuvers. Since FD is set at O19 on the CPU 2 side, n63 is skipped and the process proceeds to n64 , so this KTA
At the instruction, the contents in the second digit of the second memory M2 are transferred to the accumulator ACC of the CPU 1 via the K input.
and enters the second digit of memory M1 at the next n65 . After repeating the above, when the CPU 2 side reaches O23 after processing the final digit, it will skip O24 and proceed to O25 , where F E is set, so the CPU 1 side will also go to n. Skip steps 67 to n 68 and return to the cut-off state. Of course, the CPU 2 side also returns to its initial state from O 25 . As described above, by pressing the □← key when A≠1, M 2 →M 1 is performed. In addition , " M 2
→M 1 ” and “M 1 →M 2 ” may be processed in the same way as in FIG.
【式】キーは、CPU1とCPU2の双方を同時にク
リアするためのものである。
第5図に於てn8でこのキーの押圧の有無をジヤ
ツジしていて、The [Formula] key is used to clear both CPU 1 and CPU 2 at the same time. In Figure 5, n8 is used to check whether this key is pressed or not.
【式】キーが押されると、n18へ
進む。n18のADI命令のオペランドは「0001」に
しておく。そしてn19でSTPO命令を発生させ、
アキユムレータACCの内容をスタツクレジスタ
SAに転送する。このことによつてSAに「0001」
が入る。つまり、SAの第1ビツトSA1が「1」
になる。CPU2のSA1端子はCPU1のKF2入力端子
に接続しておく。
CPU1側は既述のように通常キーを押さない時
はn′39→n41→n43→n44→n45→n46→n′39→…となつ
ていて、n43でKF2入力のジヤツジをしている。
従つてWhen the [Formula] key is pressed, proceed to n 18 . Set the operand of n18 ADI instruction to "0001". and generate a STPO instruction at n 19 ,
The contents of the accumulator ACC are stored in the stack register.
Transfer to SA. This causes the SA to be ``0001''.
enters. In other words, the first bit of SA 1 is "1"
become. Connect the SA 1 terminal of CPU 2 to the KF 2 input terminal of CPU 1 . On the CPU 1 side, as mentioned above, when no keys are pressed, the sequence is n' 39 →n 41 →n 43 →n 44 →n 45 →n 46 →n' 39 →..., and n 43 is KF 2 I'm playing the input game.
accordingly
【式】キーを押してSA1出力が出ると、こ
のn43でのジヤツジが満足し、n44をスキツプして
n42へ進む。n42はCPU1のクリア処理で、ここで
CPU1がクリアされる。
CPU2はn19でSA1=1とさせた後n2に進んで
CPU2のクリア処理をする。そしてn2を終えた後
n3に進む(n2のクリア処理でアキユムレータ
ACCもクリアされるようにしておく)。n3で再び
STPO命令を出してSA1を「0」にする。
以上のようにしてWhen the [Formula] key is pressed and SA 1 output is output, this jump at n 43 is satisfied and n 44 is skipped.
Proceed to n 42 . n 42 is the clearing process for CPU 1 , where
CPU 1 is cleared. CPU 2 sets SA 1 = 1 at n 19 and then proceeds to n 2 .
Clear processing for CPU 2 . and after finishing n 2
Proceed to n 3 (clear processing of n 2 clears the accumulator)
Make sure that ACC is also cleared). again with n 3
Issue the STPO command and set SA 1 to "0". As above
【式】キーの押圧でCPU1と
CPU2をクリアする。
尚、第5図、第6図、第7図、第8図、第9図
の各処理のうち、n1,n4,n5,n6,n7,n8,n20,
n21,n39,n′39,n41は前述した処理リストの15
を、n22,n24,n28,n31,n34,n45,n47はリスト
の9を、m1,m5,m7,n35はリスト3のタイプ1
を、m4はリスト4のタイプ1を、m3はリスト6
のタイプ1を、n46はリスト14を利用すれば実現
できる。
以上のように本発明によれば、
四則演算の少なくとも1つを実行できる第1、
第2計算機部を有し、該2組の計算機部は、
各々、第1、第2キーによつて単独に演算指示さ
れるとともに、その演算結果が、各々、第1、第
2メモリに記憶され、該記憶された演算結果を、
夫々、第1、第2表示部に別個に表示されるよう
に構成したマルチカルキユレータであつて、
上記第1、第2メモリに記憶された演算結果を
用いて四則演算の少なくとも一つを演算指示する
第3キーと、
上記第3キーの操作に応答して、指示された演
算を実行する演算実行手段と、
実行された演算の演算結果を記憶する第3メモ
リと、
上記第3メモリに記憶された演算結果を、上記
第1メモリ又は第2メモリに転送指示する転送指
示キーと、
上記転送指示キーで指示された転送を行い、該
第3メモリに記憶された演算結果を上記第1表示
部又は第2表示部に表示する表示制御手段と
を有するから、該第3キーの操作によつて、第
1、第2の計算機部が別々に有している2つの演
算結果を用いた四則演算が行え、従つて、当該四
則演算を行うに当たり、操作者は、該第1計算機
部と該第2計算機部の間でデータの転送処理を行
う手間を省け、しかも前記第1、第2の計算機部
が有する演算結果を再入力することもなく、よつ
て、当該四則演算の演算結果が迅速且つ正確に得
られる。[Formula] Clear CPU 1 and CPU 2 by pressing the key. In addition, among the processes shown in FIG. 5, FIG. 6, FIG. 7, FIG. 8, and FIG. 9, n 1 , n 4 , n 5 , n 6 , n 7 , n 8 , n 20 ,
n 21 , n 39 , n′ 39 , n 41 are 15 in the processing list mentioned above.
, n 22 , n 24 , n 28 , n 31 , n 34 , n 45 , n 47 are 9 of list, m 1 , m 5 , m 7 , n 35 are type 1 of list 3
, m 4 is type 1 of list 4, m 3 is list 6
Type 1 of n 46 can be realized by using List 14. As described above, according to the present invention, the first, which can execute at least one of the four arithmetic operations,
It has a second computer section, and the two sets of computer sections are:
Each operation is individually instructed by the first and second keys, and the operation results are stored in the first and second memories, respectively, and the stored operation results are
A multicalculator configured to be displayed separately on first and second display sections, respectively, which performs at least one of the four arithmetic operations using the operation results stored in the first and second memories. a third key for instructing a calculation; a calculation execution means for executing the commanded calculation in response to the operation of the third key; a third memory for storing the result of the executed calculation; and the third memory. a transfer instruction key for instructing transfer of the calculation result stored in the third memory to the first memory or the second memory; and a transfer instruction key for instructing transfer of the calculation result stored in the third memory to the third memory; Since the computer has a display control means for displaying on the first display section or the second display section, by operating the third key, the two calculation results separately held by the first and second computer sections can be used. Therefore, when performing the four arithmetic operations, the operator can save the trouble of transferring data between the first computer section and the second computer section, and There is no need to re-input the calculation results of the second computer unit, and therefore the calculation results of the four arithmetic operations can be obtained quickly and accurately.
第1図は斜視図、第2図、第3図、第4図はブ
ロツク図、第5図乃至第9図は動作状態図であ
る。
符号CA:キヤビネツト、K1:第1のキー群、
DSP1:第1の表示部、K2:第2のキー群、
DSP2:第2の表示部、K0:左右の計算機部間の
相互転送あるいは相互演算を指示するキー群、
CPU1:第1のマイクロプロセツサ、CPU2:第2
のマイクロプロセツサ、CG:発振器。
FIG. 1 is a perspective view, FIGS. 2, 3, and 4 are block diagrams, and FIGS. 5 to 9 are operational state diagrams. Code CA: Cabinet, K 1 : First key group,
DSP 1 : first display section, K 2 : second key group,
DSP 2 : Second display section, K 0 : Key group for instructing mutual transfer or mutual calculation between the left and right computer sections,
CPU 1 : 1st microprocessor, CPU 2 : 2nd microprocessor
microprocessor, CG: oscillator.
Claims (1)
1、第2計算機部を有し、該第2組の計算機部
は、各々、第1、第2キーによつて単独に演算指
示されるとともに、その演算結果が、各々、第
1、第2メモリに記憶され、該記憶された演算結
果を、夫々、第1、第2表示部に別個に表示され
るように構成したマルチカルキユレータであつ
て、 上記第1、第2メモリに記憶された演算結果を
用いて四則演算の少なくとも一つを演算指示する
第3キーと、 上記第3キーの操作に応答して、指示された演
算を実行する演算実行手段と、 実行された演算の演算結果を記憶する第3メモ
リと、 上記第3メモリに記憶された演算結果を、上記
第1メモリ又は第2メモリに転送指示する転送指
示キーと、 上記転送指示キーで指示された転送を行い、該
第3メモリに記憶された演算結果を上記第1表示
部又は第2表示部に表示する表示制御手段と を具備することを特徴とするマルチカルキユレ
ータ。[Claims] 1. It has first and second computer units capable of executing at least one of the four arithmetic operations, and the second set of computer units each independently performs an operation using the first and second keys. The multifunction computer is configured such that the calculation results are stored in the first and second memories, respectively, and the stored calculation results are displayed separately on the first and second display sections, respectively. a third key for instructing to perform at least one of the four arithmetic operations using the arithmetic results stored in the first and second memories; a third memory that stores the results of the executed calculations; and an instruction to transfer the calculation results stored in the third memory to the first memory or the second memory. A transfer instruction key; and display control means for performing the transfer instructed by the transfer instruction key and displaying the calculation result stored in the third memory on the first display section or the second display section. A multi-calculator with special features.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9421978A JPS5520588A (en) | 1978-08-01 | 1978-08-01 | Multi-calculator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9421978A JPS5520588A (en) | 1978-08-01 | 1978-08-01 | Multi-calculator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5520588A JPS5520588A (en) | 1980-02-14 |
| JPS6118787B2 true JPS6118787B2 (en) | 1986-05-14 |
Family
ID=14104195
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9421978A Granted JPS5520588A (en) | 1978-08-01 | 1978-08-01 | Multi-calculator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5520588A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2483657B1 (en) * | 1980-05-30 | 1986-11-21 | Bull Sa | PORTABLE MACHINE FOR CALCULATING OR PROCESSING INFORMATION |
-
1978
- 1978-08-01 JP JP9421978A patent/JPS5520588A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5520588A (en) | 1980-02-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0318957B1 (en) | Population counting in computer systems | |
| JPS5847053B2 (en) | data processing equipment | |
| JPS5890251A (en) | Parity inspector | |
| JPS6118787B2 (en) | ||
| JPS6227412B2 (en) | ||
| US4503428A (en) | Running display device implemented with a CPU | |
| US3675000A (en) | Apparatus for arithmetic operations by alerting the corresponding digits of the operands | |
| US8316067B2 (en) | Decimal computing apparatus, electronic device connectable decimal computing apparatus, arithmetic operation apparatus, arithmetic operation control apparatus, and program-recorded recording medium | |
| JPS6235111Y2 (en) | ||
| JP4997812B2 (en) | Calculation apparatus and calculation program | |
| US4366477A (en) | Dot matrix type running display panel for use in electronic calculators or the like | |
| JP3193830B2 (en) | Arithmetic circuit | |
| JPS623330A (en) | Adder | |
| JP3638218B2 (en) | Microprocessor with ALU instruction with shift function | |
| JPS6041102A (en) | Sequence control device | |
| JPS59174944A (en) | multiplication device | |
| JPS5935265A (en) | Electronic calculator | |
| JPS5853376B2 (en) | Calculation method for calculating discount premium | |
| JPS5866112A (en) | Computer system | |
| JPS6136653B2 (en) | ||
| JPH06195199A (en) | Floating point arithmetic operation unit | |
| JPH054043Y2 (en) | ||
| JPH07120258B2 (en) | Processor | |
| JPS5921068B2 (en) | Program step calculation method | |
| JPS58172749A (en) | Binary and decimal adding and subtracting device |