JPS6032228B2 - Clear control method for small electronic calculators - Google Patents

Clear control method for small electronic calculators

Info

Publication number
JPS6032228B2
JPS6032228B2 JP52134242A JP13424277A JPS6032228B2 JP S6032228 B2 JPS6032228 B2 JP S6032228B2 JP 52134242 A JP52134242 A JP 52134242A JP 13424277 A JP13424277 A JP 13424277A JP S6032228 B2 JPS6032228 B2 JP S6032228B2
Authority
JP
Japan
Prior art keywords
address
output
register
data
input
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
Application number
JP52134242A
Other languages
Japanese (ja)
Other versions
JPS5467733A (en
Inventor
知洋 清水
義信 村永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP52134242A priority Critical patent/JPS6032228B2/en
Publication of JPS5467733A publication Critical patent/JPS5467733A/en
Publication of JPS6032228B2 publication Critical patent/JPS6032228B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Description

【発明の詳細な説明】 本発明は小型電子式計算機におけるクリア制御方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a clear control method in a small electronic calculator.

小型電子式計算機例えば電子式卓上計算機では、入力デ
ータ及び演算結果等の全てのデータをクリアするオール
クリアキー(ACキー)、最新の暦数データのみをクリ
アするクリアキー(CEキー)を備えている。
Small electronic calculators, such as electronic desktop calculators, are equipped with an all-clear key (AC key) that clears all data, including input data and calculation results, and a clear key (CE key) that clears only the latest calendar number data. There is.

しかして、一般の比較的短い計算式に対する演算操作を
行う場合には、上記2つのクリアキーを備えていれば誤
った演算操作を行った場合でもそれ程問題を生じない。
しかし、上記従来の計算機では、演算内容指令用のファ
ンクションキーが操作されると、それ以前の数暦データ
及びファンクションデータの訂正が不可能で入力データ
を全てクリアしなければならず、このため計算式通りに
キーを操作することによって各種複合計算を行わせるよ
うにした、いわゆる完全数式通りの計算機等においては
、例えば括弧計算等を含む長い計算を行う場合に誤った
ファンクションキーを操作すると、今まで入力した全て
のデータをオールクリアキーによりクリアし、再び最初
から入力操作を行わなければならず非常に面倒であった
。本発明は上記の点に鑑みてなされたもので、ファンク
ションキーが操作された後でもそれ以前の入力データの
訂正が可能な小型電子式計算機におけるクリア制御方式
を提供することを目的とする。
Therefore, when performing an arithmetic operation on a general relatively short calculation formula, if the two clear keys described above are provided, even if an erroneous arithmetic operation is performed, there will not be much problem.
However, in the above-mentioned conventional calculator, when the function key for the calculation content command is operated, it is impossible to correct the previous calendar data and function data, and all input data must be cleared. In so-called complete formula-based calculators that allow you to perform various complex calculations by operating keys according to the formula, if you operate the wrong function key when performing a long calculation including parenthesis calculations, the current All the data input up to that point had to be cleared using the all clear key and the input operation had to be performed again from the beginning, which was extremely troublesome. The present invention has been made in view of the above points, and it is an object of the present invention to provide a clear control method for a small electronic calculator that allows correction of previously input data even after a function key is operated.

以下図面を参照して本発明の一実施例を説明する。An embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例を示す回路ブロック図で、
図中11は各種マイクロ命令がストアされているROM
である。
FIG. 1 is a circuit block diagram showing one embodiment of the present invention.
11 in the figure is a ROM in which various microinstructions are stored.
It is.

そして、該ROMI Iからは、後述する演算用メモリ
であるRAM12の被演算数を記憶しているレジスタの
行アドレスを指定する信号〔SU〕、演算数を記憶して
いるレジス夕の行アドレスを指定する信号〔FU〕、被
演算数を記憶しているレジスタの列アドレスあるいは処
理開始列アドレスを指定する信号〔SL〕及び演算数を
記憶しているレジスタの列アドレスあるいは処理終了列
アドレスを指定する信号〔FL〕、演算命令、数値コー
ド〔C。〕、転送命令等のオペレーションコード〔OP
〕、自己の次アドレス指定する信号〔Na〕が各々バス
ラィンa〜gを介して並列的に出力している。そして、
バスラィンgを介して出力する信号〔Na〕は、アドレ
スレジスタ13に一時的に記憶される。アドレスレジス
ター3の出力は、ROMアドレス部14に入力する。こ
のROMアドレス部14は、アドレスレジスタ13から
入力される信号に従ってROMIIのアドレス指定を行
なう。また、オペレーションコード〔OP〕はバスライ
ンfを介してオペレーションデコーダ15に供給される
。このオペレーションデコーダ15は、上記オペレーシ
ョンコード〔OP〕をデコードして例えば前記行指定ア
ドレスFUあるいはSUにより指定されたレジスタのデ
ータ出力指令OF,OS,キー入力議込み指令KE,間
接アドレス読出し指令ID,コード入力指令CI,スタ
ック入力指令SI,スタツク出力指令S○,減算指令S
B,ダウンカウント指令DN,指定桁長さモードM,ジ
ャッジ命令JU等の各種制御指令を出力する。また、上
記オペレーションデコーダー5からタイミングデコーダ
16に制御指令が送られる。このタイミングデコーダ1
6は、オペレーションデコーダ15からの制御指令、指
定桁長さモードM及び図示しないタイミングパルス発生
部から与えられる第2図に示すクロックパルスぐ・,?
2 ,タイミングパルスt,〜t3に従って各種タイミ
ング信号Ja〜?d,ta〜tc,議出し/書込み指令
R/W1,R/W2等を出力する。上記各タイミング信
号はぐa=t3・ぐ.・〇P, ◇b:t2・〇.・〇P・ JC=t2・〇.・〇P2 0d=ら・0.・M t。
Then, from the ROMI I, a signal [SU] designating the row address of the register storing the operands of the RAM 12, which is a memory for calculations described later, and a signal [SU] specifying the row address of the register storing the operands are sent. Specify the signal [FU] to specify, the column address of the register storing the operand or the processing start column address [SL], and the column address of the register storing the operand or the processing end column address. signal [FL], operation instruction, numerical code [C. ], operation code such as transfer command [OP
], the signal [Na] for designating its own next address is output in parallel via bus lines a to g, respectively. and,
The signal [Na] output via the bus line g is temporarily stored in the address register 13. The output of the address register 3 is input to the ROM address section 14. The ROM address section 14 specifies the address of the ROM II in accordance with a signal input from the address register 13. Further, the operation code [OP] is supplied to the operation decoder 15 via the bus line f. This operation decoder 15 decodes the operation code [OP] and outputs, for example, a data output command OF, OS, a key input input command KE, an indirect address read command ID, for the register designated by the row designation address FU or SU. Code input command CI, stack input command SI, stack output command S○, subtraction command S
It outputs various control commands such as B, down count command DN, designated digit length mode M, and judge command JU. Further, a control command is sent from the operation decoder 5 to the timing decoder 16. This timing decoder 1
6 is a control command from the operation decoder 15, a specified digit length mode M, and clock pulses shown in FIG. 2 given from a timing pulse generator (not shown).
2, various timing signals Ja~? according to the timing pulses t,~t3. Outputs d, ta to tc, draft/write commands R/W1, R/W2, etc. Each of the above timing signals is a=t3・g.・〇P, ◇b:t2・〇.・〇P・ JC=t2・〇.・〇P2 0d=ra・0.・Mt.

=M・ST+M・t,tb=h4・t, tc=M ST である。=M・ST+M・t, tb=h4・t, tc=MST It is.

なお、第2図に於てt,〜t3が1桁分でありRAM1
2よりデータを読出す際にはSUでアドレス指定された
レジスタの内容がt,のタイミングで読出され、FUで
アドレス指定されたレジスタの内容がらのタイミングで
諸出される、また、書込みに於てはFUでアドレス指定
されたレジスタにらのタイミングで書込まれる。また、
上記タイミング信号のOP,はオペレーションデコーダ
15から表示及びキーサンブリング命令が出力される際
、OP2はスタックインSI又はスタックアウト指令S
Oが出力される際にタイミングデコーダ16に与えられ
る指令であり、STはスタート指令で命令ステップの先
頭においてフリッブフロツプ17からタイミングデコー
ダ16に与えられる。また、指定桁長さモードMは、R
AM12の指定が1桁の場合に、“1”,2桁以上で“
0”となる。しかして、上記ROMI1から出力される
行指定アドレス〔SU〕及び〔FU〕は各々バスライン
a,bを介してゲート回路G,,G2に印加され、これ
らゲート回路C,,G2の出力は、バスラインhを介し
てRAM1 2の行アドレス入力端子〔RAU〕に入力
する。なお、上記ゲート回路G・には、図示しないタイ
ミング信号発生部から出力するタイミング信号t,が直
接供給され、ゲート回路02にはタイミング信号ちがイ
ンバータ1 8を介して供給されて、ゲートの開閉制御
が行われる。また、ROMI Iから出力されるRAM
1 2の列アドレスあるいは処理開始列指定アドレス〔
SL〕及びアドレスあるいは処理終了列指定アドレス〔
FL〕はそれぞれバスラインc,dを介してゲート回路
G3,G4に加えられる。上記ゲート回路○3,○4は
タイミングデコーダ1 6から出力されるタイミング信
号ta,tbによってそれぞれゲート制御される。そし
て、上記ゲート回路○3,04の出力は入出力バスライ
ンiに出力され、RAM12の列アドレス入力端子RA
Lに入力すると共に、一時記憶用メモリであるスタック
RAMI9の列アドレス入力端子RALに入力する。ま
た、上記ゲート回路C3の出力は、カウンタ20へ供給
される。このカウンタ20は、タイミング信号Jdによ
りカウント動作を行うもので通常はタイミング信号めd
が入力される毎に1ずつカウントアップするが、オペレ
ーションデコーダ15からダウンカウント指令DNが与
えられた場合にはタイミング信号◇dが入力される毎に
1ずつダウンカウントする。そして、上記カウンタ20
の出力はゲート回路○5を介してRAM12,スタック
RAMI9の列アドレス入力端子RALへ加えられると
共に一致回路21の一方の入力端に加えられる。この一
致回路21の他方の入力端にはROMI Iからバスラ
インdに出力される処理終了列指定アドレスFLが与え
られる。この一致回路21にはオペレーションデコーダ
ー5から出力される指定桁長さモードMがィンバータ2
2を介して与えられており、このインバー夕22の出力
が“1”の時に一致回路21が動作するようになってい
る。この一致回路21の一致出力はアンド回路23に加
えられると共にオア回路24を介してフリップフロツブ
17に入力される。さらにこのフリツプフロツプ17に
はオペレーションデコーダー5から出力される指定桁長
さモードMがオア回路24を介して与えられる。このフ
リップフロツプ17はタイミング信号ら・J.に同期し
て入力信号を論込み、前記したスタート指令STを出力
する。また、上記オペレーションデコーダ15から出力
される指定桁長さモードMはアンド回路25に加えられ
る。アンド回路23,25にはタイミング信号ら・?,
が入力されており、その出力信号はオア回路26を介し
てアドレスレジスタ13に論込み信号として送られる。
一方、上記演算用メモリであるRAM12は、例えば第
3図に示すように×,Y,Zの演算用レジスタ及びスタ
ックRAM1 9の行をアドレス指定するスタツクポィ
ンタSP,クリアキー(CEキー)を操作する毎に「1
」あるいは「0」が書込まれるC8,を含レジスタAが
行方向に配設されている。
In addition, in Fig. 2, t, ~t3 is one digit, and RAM1
When reading data from 2, the contents of the register addressed by SU are read out at timing t, and the contents of the register addressed by FU are read out at timing t. is written to the register addressed by the FU at the appropriate timing. Also,
When the operation decoder 15 outputs a display and key sampling command, OP2 of the above timing signal is a stack-in SI or a stack-out command S.
This is a command given to the timing decoder 16 when O is output, and ST is a start command given to the timing decoder 16 from the flip-flop 17 at the beginning of the instruction step. In addition, the specified digit length mode M is R
If the AM12 designation is one digit, it will be “1”, and if it is two or more digits, it will be “1”.
0''.The row designation addresses [SU] and [FU] output from the ROMI1 are applied to the gate circuits G, , G2 via the bus lines a, b, respectively, and the gate circuits C, , G2 are The output of G2 is input to the row address input terminal [RAU] of RAM12 via the bus line h.The gate circuit G is directly connected to the timing signal t output from a timing signal generator (not shown). The timing signal is supplied to the gate circuit 02 via the inverter 18 to control the opening and closing of the gate.
1 2 column address or processing start column specification address [
SL] and address or processing end column designation address [
FL] are applied to gate circuits G3 and G4 via bus lines c and d, respectively. The gate circuits 3 and 4 are gate-controlled by timing signals ta and tb output from the timing decoder 16, respectively. The outputs of the gate circuits ○3 and 04 are output to the input/output bus line i, and the column address input terminal RA of the RAM 12
At the same time, it is input to the column address input terminal RAL of the stack RAMI9, which is a temporary storage memory. Further, the output of the gate circuit C3 is supplied to the counter 20. This counter 20 performs a counting operation in response to a timing signal Jd, and normally the timing signal Jd
The count is incremented by 1 each time . . Then, the counter 20
The output is applied to the column address input terminal RAL of the RAM 12 and the stack RAMI 9 via the gate circuit ○5, and also applied to one input terminal of the coincidence circuit 21. The other input terminal of this matching circuit 21 is given a processing end column designation address FL outputted from ROMI I to bus line d. The specified digit length mode M output from the operation decoder 5 is input to the matching circuit 21 by the inverter 2.
The matching circuit 21 operates when the output of the inverter 22 is "1". The coincidence output of this coincidence circuit 21 is applied to an AND circuit 23 and is also inputted to a flip-flop 17 via an OR circuit 24. Furthermore, the specified digit length mode M output from the operation decoder 5 is applied to the flip-flop 17 via an OR circuit 24. This flip-flop 17 is connected to a timing signal et al. It inputs an input signal in synchronization with , and outputs the above-mentioned start command ST. Further, the designated digit length mode M output from the operation decoder 15 is applied to the AND circuit 25. The AND circuits 23 and 25 have timing signals etc.? ,
is input, and its output signal is sent to the address register 13 as a logic signal via the OR circuit 26.
On the other hand, the RAM 12, which is the calculation memory, operates the registers for calculations of x, Y, and Z, the stack pointer SP that addresses the row of the stack RAM 19, and the clear key (CE key), as shown in FIG. 3, for example. ``1 every time
'' or C8 in which ``0'' is written.Registers A are arranged in the row direction.

上記×,Yの各レジスタは、数値データ記憶桁VT(0
〜14行)、及びファンクションデータ記憶桁F(13
行目)よりなり、Zレジスタは表示用数値データ記憶桁
VT(0〜14行)及び第1層数か否かの判断用フラッ
グ記憶桁F(19行目)より構成されている。前記スタ
ックポィンタSP及びC8・はそれぞれAレジスタの1
5桁目及び1釘行目に配置されている。なお、前記各レ
ジスタX,Y,Z,Aにはそれぞれ(0)〜(3)のア
ドレスナンバが付してあり、上記各レジスタは、前記行
指定アドレスFUあるいはSUより上記アドレスナンバ
に対応したコードが出力されてアドレス指定される。ま
た、各レジスタの桁は前記列指定アドレスFL及びSL
によってアドレス指定され、読出し、書込みはタイミン
グデコーダ16から出力される読出し/書込み信号R/
WIによって行われる。すなわち、R/WIが「0」の
時各レジスタに記憶されている情報が読出され、「1」
の時書込みが行われる。しかして、上記行及び列指定ア
ドレスによりアドレス指定される演算数、被演算数ある
いは転送等のために謙出されたデータは、出力端子OU
Tより並列4ビットのデータとして出力され、タイミン
グ信号t.・少,でゲート制御されるゲート回路○6を
介してラッチ回路27へ送られると共にタイミング信号
t2・ぐ,でゲート制御されるゲート回路G7を介して
ラッチ回路28へ送られる。そして、上記ラッチ回路2
7の出力は、オペレーションデコーダ15から出力され
る間接アドレス講出し指令mにより制御されるゲート回
路G8を介してRAM1 2の列アドレス入力端子RA
Lへ入力される。さらにラッチ回路27の出力は、オペ
レーションデコーダ15から出力されるデータ出力指令
OSにより制御されるゲート回路G9を介して演算回路
3 1の入力端子aに供給されると共にバッファ32へ
送られる。このバッファ32はタイミング信号◇cによ
り入力信号を謙込むもので、その出力はスタツクRAM
I9の行アドレス入力端子RAUに加えられる。この一
時記憶用メモリであるスタックRAMI9は第3図に示
すように複数のレジスタM,〜Mnがスタツクされてお
り、これらの各レジスタM,〜Mnにそれぞれ演算用デ
ータを記憶するようになっている。これらのレジスタM
,〜Mnは前記演算用レジスタ×,Y,Zと同じ構成と
なっている。上話スタックRAMI9の入出力端子Aに
はラツチ28の出力がゲート回路○,o,G,.を介し
て入力される。上記ゲート回路C,oはオペレーション
デコーダ15から出力されるデータ出力指令OFによっ
て制御され、ゲート回路G,.【まスタツク入力指令S
Iによって制御される。また、上記スタツクRAMI9
はタイミングデコーダ16から出力される講出し/書込
み指令R/W2によって議出し/書込みのモードが指定
され、入出力端子Aから謙出されるデータはゲート回路
GMを介してRAM12のデータ入力端子INへ入力さ
れる。上記ゲート回路○.2は、オペレーションデコー
ダ15から出力されるスタック出力指令SOによって制
御される。また、上記ラツチ回路28からゲート回路G
,oを介して出力されるデータは演算回路31の入力端
子bへ送られると共にバッファ33へ送られる。このバ
ッファ33はタイミング信号ぐaに同期して動作するも
ので、その出力はデコーダ34を介して表示部35へ送
られて表示される。しかして、上記演算回路31は、演
算データ出力ラインi及びキャリー出力ラインkを備え
ており、ラインjから出力されるデータはゲート回路G
,3を介してRAM12の入力端子INへ入力される。
上記ゲート回路G,3はインバータ36を介して入力さ
れるスタック出力指令SOによって制御される。上記演
算回路31からラインiに出力されるデータは、オア回
路37を介してアンド回路38へ加えられ、ラインk‘
こ出力されるキヤリー信号はアンド回路39へ加えられ
る。上記アンド回路38,39はオペレーションデコー
ダ16からジャッジ命令JUが与えられた際に信号を出
力するもので、アンド回路38,39の出力は、アドレ
スレジスタ13にアドレスデータとして入力される。ま
た、前記ラッチ回路27からゲート回路G9を介して出
力されるデータは、タイミング信号◇bに同期して動作
するバッファ40へ入力される。このバッファ40の出
力はデコーダ41を介してキー入力部42へキーサンプ
リング信号として送られると共に表示部35へディジツ
ト信号として送られる。上記キー入力部42から出力さ
れるキー入力データはタイミング信号ら・0,に同期し
て動作するバッファ43に貯えられ、オペレーションデ
コーダ15から出力されるキー入力指令KEにより制御
されるゲート回路G,4を介して演算回路31の入力端
子aに入力される。また、この入力端子aにはROMI
Iからラインeに出力される数値コードCoがゲート回
路○,5を介して入力される。このゲート回路○,5は
、オペレーションデコーダ15から出力されるコード入
力指令CIによって制御される。次に第4図により、ア
ドレスレジスタ13,ROMアドレス部14,ROMI
1,オペレーションデコーダー5,タイミングデコー
ダ16の詳細について説明する。
Each of the x and Y registers above has numerical data storage digit VT (0
~14 lines), and function data storage digit F (13
The Z register is composed of a numerical data storage digit VT for display (lines 0 to 14) and a flag storage digit F (line 19) for determining whether or not it is the number of the first layer. The stack pointers SP and C8 are each 1 of the A register.
It is located at the 5th digit and the 1st nail row. Each of the registers X, Y, Z, and A is assigned an address number (0) to (3), and each register corresponds to the address number from the row designation address FU or SU. Code is output and addressed. Furthermore, the digits of each register are the column specified addresses FL and SL.
The reading and writing are addressed by the read/write signal R/ which is output from the timing decoder 16.
Conducted by WI. That is, when R/WI is "0", the information stored in each register is read and becomes "1".
Writing is performed when . Therefore, the operands, operands, or data output for transfer, etc., addressed by the row and column designation addresses are output to the output terminal OU.
T is output as parallel 4-bit data, and a timing signal t. The signal is sent to the latch circuit 27 via the gate circuit ○6 whose gate is controlled by the timing signal t2 and the latch circuit 28 via the gate circuit G7 whose gate is controlled by the timing signal t2 and the timing signal t2. And the latch circuit 2
The output of 7 is connected to the column address input terminal RA of the RAM 12 via a gate circuit G8 controlled by an indirect address issuing command m output from the operation decoder 15.
It is input to L. Furthermore, the output of the latch circuit 27 is supplied to the input terminal a of the arithmetic circuit 31 and sent to the buffer 32 via a gate circuit G9 controlled by the data output command OS output from the operation decoder 15. This buffer 32 lowers the input signal according to the timing signal ◇c, and its output is stored in the stack RAM.
It is applied to the row address input terminal RAU of I9. The stack RAMI 9, which is this temporary storage memory, has a plurality of registers M, ~Mn stacked as shown in Fig. 3, and each of these registers M, ~Mn is designed to store calculation data, respectively. There is. These registers M
, ~Mn have the same configuration as the arithmetic registers x, Y, and Z. The output of the latch 28 is connected to the input/output terminal A of the stack RAMI 9 through gate circuits ○, o, G, . Input via . The gate circuits C, o are controlled by the data output command OF output from the operation decoder 15, and the gate circuits G, . [Mastack input command S
Controlled by I. In addition, the above stack RAMI9
The issue/write mode is specified by the issue/write command R/W2 output from the timing decoder 16, and the data output from the input/output terminal A is sent to the data input terminal IN of the RAM 12 via the gate circuit GM. is input. Above gate circuit ○. 2 is controlled by a stack output command SO output from the operation decoder 15. Further, from the latch circuit 28 to the gate circuit G
, o are sent to the input terminal b of the arithmetic circuit 31 and also to the buffer 33. This buffer 33 operates in synchronization with the timing signal a, and its output is sent via a decoder 34 to a display section 35 for display. The arithmetic circuit 31 is equipped with an arithmetic data output line i and a carry output line k, and the data output from the line j is sent to the gate circuit G.
, 3 to the input terminal IN of the RAM 12.
The gate circuits G and 3 are controlled by a stack output command SO input via an inverter 36. The data output from the arithmetic circuit 31 to the line i is applied to the AND circuit 38 via the OR circuit 37, and is applied to the line k'
The output carry signal is applied to an AND circuit 39. The AND circuits 38 and 39 output signals when a judge instruction JU is given from the operation decoder 16, and the outputs of the AND circuits 38 and 39 are input to the address register 13 as address data. Further, data output from the latch circuit 27 via the gate circuit G9 is input to a buffer 40 that operates in synchronization with the timing signal ◇b. The output of this buffer 40 is sent via a decoder 41 to a key input section 42 as a key sampling signal, and also to a display section 35 as a digit signal. The key input data output from the key input section 42 is stored in a buffer 43 that operates in synchronization with the timing signal et al. 4 to the input terminal a of the arithmetic circuit 31. Also, this input terminal a has a ROMI
Numerical code Co output from I to line e is input via gate circuits ◯ and 5. This gate circuit ◯, 5 is controlled by the code input command CI output from the operation decoder 15. Next, according to FIG. 4, the address register 13, ROM address section 14, ROMI
1. Details of the operation decoder 5 and timing decoder 16 will be explained.

なお、第4図は上記各回路部についてCEキーが操作さ
れた場合の処理に関係する部分のみを示したもので、そ
の他の部分については省略してある。アドレスレジス夕
13は例えば4ビット礎成で、各ビットにはROMII
から出力される4ビットの次アドレスNaが入力される
。この場合、アドレスレジスタ13の第1,第2ビット
には上記次アドレスNaと共にアンド回路38,39の
出力がオア回路51,52を介して入力される。上記ア
ドレスレジスタ13の各ビット出力は、直接及びィンバ
−夕を介してROMアドレス部14へ送られ、ここでデ
コードされてROMIIのアドレスを指定する。ROM
IIはROMアドレス部14からのアドレス指定により
、例えばSU,FU,SL,FL,Co,OP,Na等
の信号を出力する。この場合、行指定アドレスSU,F
Uのみ2ビットコードで、その他の信号は4ビットコー
ドで出力される。オペレーションデコーダ15は、RO
MI1から出力されるオペレーションコードOPをデコ
ードし、例えばSB,S○,JU,M,OS,CI,O
F等の制御指令を出力する。タイミングデコーダー6は
オペレーションデコーダ15から出力される制御信号に
応じて0c,R/W1,R/W2等の制御信号をタイミ
ング信号に同期して出力する。すなわち、タイミング信
号0cは、オペレーションデコーダ15からデータ出力
指令OSが出力されている時にタイミング信号ら・少,
に同期して出力され、議出し/書込み指令R/WIは
減算指令SB,スタック出力指令S○,コード入力指令
CI等の何かが出力されている場合にタイミング信号上
3に同期して出力される。また、謙出し/書込み指令R
/W2は、ROMI Iから「0010」のオペレーシ
ョンコードOPが出力された場合にタイミング信号上3
に同期して出力される。第5図は主なオペレーションに
対するオペレーションコードOPとその時出力される制
御信号との関係を示したものである。次に上記のように
構成された本発明の動作を説明する。RAM12内には
図示しないが表示桁制御用信号及びキーサンプリンング
信号を得るための制御カウンタが設けられており、この
制御カウン外まROMIIからの指令に従って演算回路
31により一定の周期で1ずつカウントアップされてい
る。そして、上記制御カウン外まその内容が表示部35
の最上位桁を指定する値まで達するとりセットされて再
びカウントアップ動作が開始される。上記制御カウンタ
の内容はカウントアップする毎にゲート回路○6,G9
を介してバッファ40に読出される。このバッファ4川
こ読出された内容はデコーダ41によりデコードされ、
キーサンプリング信号としてキー入力部42へ送られる
と共にディジット信号として表示部35へ送られる。こ
のようにして上記制御カウンタの内容に従ってキーサン
プリング信号、デイジツト信号がキー入力部42、表示
部35へ供給されている。また、上記制御カゥンタの内
容はゲート回路G8を介してRAM12の列アドレス入
力端子RALに与えられ表示用レジスタの桁を上記カウ
ンタのカウント内容に応じて順次下位桁より上位桁へと
アドレス指定する。この制御カウンタの内容によって順
次アドレス指定される表示用レジスタの桁の内容はゲー
ト回路G7,G,o、バッファ33を介してデコーダ3
4に入力され、このデコーダ34でデコードされて表示
部35により前記ディジット信号に同期して表示される
。このようにして通常の表示動作が行われる。この状態
でキー操作が行われるとキー入力部42から操作キーに
対応したコード信号が出力され、バッファ43に貯えら
れる。また、この際キーサンプリング信号に同期してキ
ー入力部42から出力される信号によりRAM12内の
上記制御カウンタのカウントアップ動作が禁止される。
次いでROMIIからのオペレーションコードOPに従
ってオペレーションデコーダー 5からキー入力指令K
Eが出力され、バッファ43に貯えられているキー入力
データがゲート回路○,4を介して読出され、演算回路
31及びゲート回路G,3を介してRAM12に送られ
る。そして、このRAM12に貯えられた入力データ及
びこの時の制御カウンタの内容によって操作キーを判定
する。すなわち、デコーダ41から出力されるキーサン
ブリング信号は、それぞれ複数個のキーに対して共通に
与えられ、所定のキー群毎に同一のコード信号が出力さ
れるようになっているので、キー入力コードとその時の
キーサンプリング信号によって操作キーの判定を行って
いる。そして、この判定結果に従って操作キーに対応す
る入力コードRAM12に記憶させ、その後制御カウン
タの動作を再開させる。以下第6図により層数操作が行
われた場合のRAM12へのデータ書込み動作について
説明する。第6図に示すようにキー入力部42において
暦数操作1が行われると、ROMIIからのオペレーシ
ョンコードOPに従ってオペレーションデコーダ15か
らジャッジ命令JUが出力され、ステツプロに示すよう
にRAM1 2におけるZレジスタのファンクション記
憶桁ZPの内容が「0」か否かを判定する。
Note that FIG. 4 shows only the parts related to the processing when the CE key is operated for each of the above-mentioned circuit parts, and other parts are omitted. The address register 13 has, for example, a 4-bit foundation, and each bit has a ROMII
The 4-bit next address Na output from the 4-bit address is input. In this case, the outputs of the AND circuits 38 and 39 are input to the first and second bits of the address register 13 via the OR circuits 51 and 52 together with the next address Na. Each bit output from the address register 13 is sent directly or via an inverter to the ROM address section 14, where it is decoded and specifies the address of the ROM II. ROM
II outputs signals such as SU, FU, SL, FL, Co, OP, Na, etc. according to the address designation from the ROM address section 14. In this case, the row specification address SU, F
Only U is output as a 2-bit code, and other signals are output as 4-bit codes. The operation decoder 15 is RO
Decode the operation code OP output from MI1, for example, SB, S○, JU, M, OS, CI, O
Outputs control commands such as F. The timing decoder 6 outputs control signals such as 0c, R/W1, and R/W2 in synchronization with the timing signal in response to the control signal output from the operation decoder 15. That is, the timing signal 0c is the timing signal 0c when the data output command OS is output from the operation decoder 15.
The issue/write command R/WI is output in synchronization with the timing signal 3 when something such as subtraction command SB, stack output command S○, code input command CI, etc. is output. be done. In addition, the display/write command R
/W2 is 3 on the timing signal when the operation code OP of "0010" is output from ROMI I.
output in sync with FIG. 5 shows the relationship between the operation code OP for the main operations and the control signal output at that time. Next, the operation of the present invention configured as described above will be explained. Although not shown in the RAM 12, a control counter for obtaining a display digit control signal and a key sampling signal is provided, and outside this control counter, the calculation circuit 31 counts by 1 at a constant cycle according to instructions from the ROM II. It has been uploaded. The contents of the above control counter are displayed on the display section 35.
When the most significant digit reaches the specified value, it is set and the count-up operation starts again. The contents of the above control counter are changed to gate circuit ○6, G9 every time it counts up.
The data is read out to the buffer 40 via. The contents read out from this buffer 4 are decoded by a decoder 41,
The signal is sent to the key input section 42 as a key sampling signal, and is also sent to the display section 35 as a digit signal. In this manner, key sampling signals and digit signals are supplied to the key input section 42 and the display section 35 according to the contents of the control counter. Further, the contents of the control counter are applied to the column address input terminal RAL of the RAM 12 via the gate circuit G8, and the digits of the display register are sequentially addressed from the lower digits to the upper digits according to the count contents of the counter. The contents of the digits of the display register which are sequentially addressed by the contents of this control counter are sent to the decoder 3 via the gate circuits G7, G, o and the buffer 33.
4, is decoded by the decoder 34, and displayed on the display section 35 in synchronization with the digit signal. In this way, a normal display operation is performed. When a key is operated in this state, a code signal corresponding to the operated key is output from the key input section 42 and stored in the buffer 43. Further, at this time, the count-up operation of the control counter in the RAM 12 is prohibited by a signal output from the key input section 42 in synchronization with the key sampling signal.
Next, key input command K is sent from operation decoder 5 according to operation code OP from ROMII.
E is output, and the key input data stored in the buffer 43 is read out via the gate circuit ◯, 4, and sent to the RAM 12 via the arithmetic circuit 31 and the gate circuit G, 3. Then, the operation key is determined based on the input data stored in the RAM 12 and the contents of the control counter at this time. That is, the key sampling signal output from the decoder 41 is commonly given to a plurality of keys, and the same code signal is output for each predetermined key group, so that the key input code is The operation key is determined based on the key sampling signal at that time. Then, in accordance with this determination result, the input code corresponding to the operation key is stored in the RAM 12, and thereafter the operation of the control counter is restarted. The data writing operation to the RAM 12 when the number of layers is manipulated will be described below with reference to FIG. As shown in FIG. 6, when the calendar number operation 1 is performed in the key input unit 42, the operation decoder 15 outputs the judge instruction JU according to the operation code OP from the ROMII, and as shown in the step-pro, the Z register in the RAM 12 is It is determined whether the contents of the function storage digit ZP are "0" or not.

すなわち、ステップロでは入力データが第1層数データ
であるか否かの判定を行っている。上記ZFの内容が「
0」の場合は入力データが第1層数データであり、ステ
ップmに進み、第3図に示す×レジスタの数値データ記
憶桁XvT及びファンクション記憶桁XFの内容をクリ
アする。次いでステップWに示すようにZレジスタのZ
F桁に「1」を書込み、第1暦数が行われたことを記憶
すると共にステップVに進み、ここでAレジス夕のC8
,に「0」を書込む。また、ステップロでNOと判定さ
れた場合、つまりすでに暦数されていて今回の入力デー
タが第2層数G非蜂であればステップのに進んでXレジ
スタの暦数データ入力桁の内容を1桁桁上げする。上記
ステップVあるいはステップのを終了すると、ステップ
肌に示すように入力データEnを×レジスタの最下位桁
XvT(瓜D)に記憶させ、その後、ステップ畑に示す
ようにXレジスタの×vTの内容をZレジスタのZvT
に転送する。そして、このZレジスタに貯えられた内容
は、ステップKに示すように表示部35において表示さ
れる。しかして、上記RAM12のアクセスに際しては
ROMIIから行指定アドレスSU, FU、処理開始
列指定アドレスSし,及び終了列指定アドレスFLが処
理内容に応じて出力される。
In other words, StepRo determines whether the input data is the first layer number data. The contents of the above ZF are “
0'', the input data is the first layer number data, and the process proceeds to step m, where the contents of the numerical data storage digit XvT and the function storage digit XF of the x register shown in FIG. 3 are cleared. Then, as shown in step W, Z of the Z register is
Write "1" in the F digit, remember that the first calendar number has been performed, and proceed to step V, where C8 of the A register is written.
, writes “0” to . Also, if the step number is determined as NO, that is, if the calendar number has already been set and the input data this time is not the second layer number G, proceed to the step and read the contents of the calendar number data input digit of the X register. Increase by one digit. When the above step V or step 2 is completed, the input data En is stored in the lowest digit XvT (Melon D) of the × register as shown in the step field, and then the contents of ×vT of the X register are stored as shown in the step field. ZvT of Z register
Transfer to. The contents stored in this Z register are then displayed on the display unit 35 as shown in step K. When accessing the RAM 12, the ROM II outputs row designation addresses SU, FU, processing start column designation address S, and end column designation address FL depending on the processing content.

またROMIIからはオペレーションヂコーダ15にそ
の時の処理内容に応じてオペレーションコードOPが与
えられ、この結果オペレーションデコーダー5から各種
制御指令が出力されて所定の処理が実行される。例えば
第6図のステッブロを実行する場合には、行指定アドレ
スFUによりZレジスタが指定され、列指定アドレスF
Lによりファンクション記憶桁Fが指定される。すなわ
ち、FU,FLのアドレスによりZレジスタのファンク
ション記憶桁ZFが指定される。そして、このアドレス
指定されたZFの内容をゲート回路G7,G,oを介し
て演算回路31に議出し、ZFの内容に従ってステップ
mあるいはステップWに対するROMIIの次アドレス
を指定する。この場合は1桁の指定であるので、オペレ
ーションデコーダ15から出力される指定桁長さモード
Mは“1”であり、インバータ22の出力が“0”とな
って一致回路21の動作が禁止されている。また、第6
図のステップCを実行する場合には、行指定アドレスF
Uにより×レジス夕が指定され、列指定アドレスSL,
FLにより処理開始列と処理終了列つまりこの場合には
最下位桁と最上位桁が指定される。また、この場合には
オペレーションデコーダ15から出力される指定桁長さ
モードMが“0”となると共に、タイミングデコーダ1
6から出力される議出し/書込み指令R/WIが“1”
となり、RNM1 2に書込み指令を与える。しかして
、ROMI Iから出力される行指定アドレスFUは、
L以外のタイミングにおいてゲート回路○2を介してR
AM12の行アドレス入力端子RAUに入力される。そ
して、ROMIIから出力されるオペレーションコード
OPに従ってまずタイミングデコーダ16からタイミン
グ信号taが出力され、ゲート回路○3に与えられる。
この結果、ゲート回路○3のゲートが開かれ、ROMI
Iから出力される処理開始列アドレスSLがRAM1
2の列アドレス入力端子RAL及びカウンタ20へ入力
される。この時指定桁長さモードMが“0”でタイミン
グデコーダ16からタイミング信号ぐdが出力されるの
で、上記処理開始列アドレスSLはタイミング信号中d
に同期してカウンタ20にセットされる。そして、上記
行指定アドレスFU及び列指定アドレスSLによってX
レジスタの最下位桁が指定される。また、上記ステップ
mを実行する場合にはRAM12に書込み指令が与えら
れると共にRAM12の入力端子mに「0」のデータが
与えられるので、Xレジスタの最下位桁に「0」が書込
まれ。次いでタイミングデコーダ16からタイミング信
号◇dが出力されてカウンタ20の内容が十1される。
指定桁長さモードMが“0”で、かつ、フリツプフロツ
プ17からスタート信号STが出力されていない場合に
はタイミングデコーダ16からタイミング信号tcが出
力され、ゲート回路C5のゲートが開かれている。この
ためカウンタ20の出力はゲート回路G5を介してRA
M12の列指定アドレス入力端子RALへ入力され、X
レジスタの桁を指定する。上記カウンタ20はタイミン
グ信号ぐdにより順次十1され、×レジスタを下位桁か
ら上位桁まぜ順に指定する。このカウンタ2川こよる桁
指定によってXレジスタには下位桁から順に「0」が書
込まれる。また、カウンタ20の内容はゲート回路G5
を介して一致回路21へ入力れており、ROMIIから
出力される処理終了列指定アドレスFLと一致するか、
杏か常に比較されている。そして、カリン夕20のカウ
ントアップによりその内容が処理終了列指定アドレスF
Lまで達すると一致回路21から“1”信号が出力され
、フリップフロツプ17がセットされる。この結果フリ
ツプフロツプ17からスタート指令STが出力され、タ
イミングデコーダー6へ入力される。このためそれまで
タイミングデコーダ16から出力されていたタイミング
信号tcが“0”となり、ゲート回路C5のゲートが閉
じてRAM12への列指定アドレスの入力が禁止される
。また、上記一致回路21の一致出力はアンド回路23
へ与えられ、そのゲートを開く。このためアンド回路2
3からタイミング信号t3・?,が出力され、、オア回
路26を介してアドレスレジスタ13に論込み信号とし
て送られる。このオア回路26を介して与えられる侵号
により、アドレスレジスタ13は次のアドレスデータを
読込んでROMアドレス部14へ入力する。従ってRO
MIIは次のアドレスが指定されて次の処理動作を開始
する。このようにしてステップmの処理を終了するが、
第6図のその他のステップにおいても同様にして処理が
行われる。次に第7図によりファンクションキーが操作
された場合の動作について説明する。第7図においてフ
ァンクションキーの操作が行なわれると、まずステップ
Aに示すようにファンクションキー入力処理が行われる
。すなわち、キー入力部42から入力されたファンクシ
ョンデータは、バッファ43に一時記憶され、その後キ
ー入力指令KEによりゲート回路G.4を介して読出さ
れ、演算回路31及びゲート回路G,3を介してRAM
12へ入力される。そして、このRAM12に入力され
たフアンクシヨンデータは、ROMIIからのアドレス
指定により×レジスタのファンクション記憶桁×Fに書
込まれる。次にステップBに進み、Zレジスタのファン
クション記憶桁ZFに「0」を書込んだ後、ステップC
に示すように,C8,(Aレジスタの14桁目)が「0
」か否かの判定を行う。このCB,は、クリア(CE)
キー操作によってスタックRAMI9内のファンクショ
ンデータ記憶桁がクリアされた際に「IJが書込まれる
もので、まず、このステップCでC8,が「OJと判定
されるとステップDに進み、スタックポインタSPによ
ってアドレス指定されるスタックRAMI9内のレジス
タに記憶されている前回入力した数値データ及びファン
クションデータをYレジスタのYvT及びYFに書込む
。そして、ステップEでこのYレジスタのYFに書込ま
れた前回のファンクションデータと、XレジスタのXF
に記憶されている今回入力したファンクションデータと
を比較して演算を実行するか否かの判定を行う。すなわ
ち、括弧計算等の連続計算を行う場合には、加減乗除等
のファンクションデータに重み付けを行い、前回入力さ
れたファンクションデータと今回入力されたファンクシ
ョンデータとの重みの比較を行い、その比較結果に従っ
て演算を実行するか否かを決定する。例えば「XJ「÷
」の重みを「十レ「一」より大きく設定した場合、前回
入力ファンクションデータが「×」あるいは「÷」で大
きく、今回入力ファンクションデータが「十一あるいは
「一」で4・さし・場合は、演算実行と判定し、前回入
力ファンクションデータに従って演算処理を行う。また
、前回入力ファンクションデータの重みが今回入力ファ
ンクションデータの重みより4・さし、場合は非演算で
あると判定する。そして、このステップEで非演算であ
ると判定された場合は、ステップFに進みRAM1 2
内のスタックポィンタSPの内容を十1する。次いでス
テップGに進み、上記ステップFに於て十1されたスタ
ツクポインタの内容をスタツクRAMI 9のアドレス
用バッファ32にセットする。そして、ステップ日によ
りこのバッファ32によりアドレス指定されるスタツク
RAM1 9内のレジスタ例えばM2に、RAM12内
のXレジス夕のXvT’XFに記憶されている数値デー
タ及びファンクションデータを転送する。次いでステッ
プ1に示すようにXレジスタのXvTに記憶されている
数値データをZレジスタのZvTに転送すると共に、ス
テップJに示すように上記Zレジスタに転送した数値デ
ータを表示部35で表示する。また、ステップEの判定
結果が演算実行(YES)であた場合はステップKに進
み×レジスタのXvT及びYレジスタのYvTに記憶さ
れている数値データを演算回路31に議出し、Yレジス
タに記憶されているファンクションデータに従って所定
の演算処理を行い、その演算結果を×レジスタに記憶す
る。また、前記ステップCでNOと判定されるとステッ
プLに進みCE,に「0」を書込む。そしてステップM
でスタツクポィンタSPによりアドレス指定されるスタ
ツクRAMI9内のレジスタの数値データ記憶桁に記憶
されている数値デ−夕が×レジスタに書込まれる。そし
て前記ステップKあるいはMが終了するとステップNに
進みスタツクポインタSPの内容を−1し、その結果が
「0」以外であればステップ○でその−1されたスタツ
クポインタSPの内容をスタックRAM19のアドレス
用バッファ32にセットする。なお「0」であればステ
ップ1に進む。しかして、上記ステップ○が終了すると
、再びステップDに戻り前記した動作を繰返す。第8図
のステップ1〜7は、「2十3(4十5)」のキー操作
を行った場合のRAM12内の各レジスタX,Z,A(
SP,CE,)及びスタツクRAMI9内の各レジスタ
M,〜M3の記憶内容の変化を示したものである。
Further, the ROM II provides the operation code OP to the operation decoder 15 according to the processing content at that time, and as a result, various control commands are output from the operation decoder 5 to execute predetermined processing. For example, when executing the step flow in FIG. 6, the Z register is specified by the row specification address FU, and the column specification address F
Function storage digit F is designated by L. That is, the function storage digit ZF of the Z register is specified by the addresses of FU and FL. Then, the contents of this addressed ZF are sent to the arithmetic circuit 31 via gate circuits G7, G, and o, and the next address of the ROMII for step m or step W is specified according to the contents of ZF. In this case, since one digit is specified, the specified digit length mode M output from the operation decoder 15 is "1", the output of the inverter 22 becomes "0", and the operation of the matching circuit 21 is prohibited. ing. Also, the 6th
When executing step C in the figure, line specification address F
U specifies ×registry, and column designation address SL,
FL specifies the processing start column and the processing end column, that is, the least significant digit and the most significant digit in this case. In addition, in this case, the specified digit length mode M output from the operation decoder 15 becomes "0", and the timing decoder 1
The issue/write command R/WI output from 6 is “1”
Then, a write command is given to RNM12. Therefore, the row designation address FU output from ROMI I is
R via gate circuit ○2 at timings other than L
It is input to the row address input terminal RAU of AM12. Then, in accordance with the operation code OP output from the ROMII, the timing signal ta is first output from the timing decoder 16 and applied to the gate circuit 3.
As a result, the gate of gate circuit ○3 is opened and the ROMI
The processing start column address SL output from I is RAM1
2 column address input terminal RAL and the counter 20. At this time, the specified digit length mode M is "0" and the timing signal d is output from the timing decoder 16, so the process start column address SL is d in the timing signal.
is set in the counter 20 in synchronization with. Then, by the row designation address FU and column designation address SL,
Specifies the least significant digit of the register. Furthermore, when executing step m, a write command is given to the RAM 12 and data "0" is given to the input terminal m of the RAM 12, so "0" is written to the lowest digit of the X register. Next, the timing signal ◇d is outputted from the timing decoder 16, and the contents of the counter 20 are incremented by 11.
When the specified digit length mode M is "0" and the start signal ST is not output from the flip-flop 17, the timing signal tc is output from the timing decoder 16, and the gate of the gate circuit C5 is opened. Therefore, the output of the counter 20 is passed through the gate circuit G5 to the RA
It is input to the column designation address input terminal RAL of M12, and
Specify the register digit. The counter 20 is sequentially incremented by 11 by the timing signal gd, and the x registers are designated in the order of mixing the lower digits to the higher digits. By specifying two digits of the counter, "0" is written into the X register in order from the lower digit. Furthermore, the contents of the counter 20 are the contents of the gate circuit G5.
is input to the matching circuit 21 via
Anzu is always being compared. Then, as the counter 20 counts up, its contents are changed to the specified processing end column address F.
When the signal reaches L, the matching circuit 21 outputs a "1" signal, and the flip-flop 17 is set. As a result, a start command ST is output from the flip-flop 17 and input to the timing decoder 6. Therefore, the timing signal tc that had been output from the timing decoder 16 becomes "0", the gate of the gate circuit C5 is closed, and input of the column designation address to the RAM 12 is prohibited. Further, the coincidence output of the coincidence circuit 21 is output from the AND circuit 23.
given to open the gate. Therefore, AND circuit 2
3 to timing signal t3.? , is output and sent to the address register 13 as a logic signal via the OR circuit 26. The address register 13 reads the next address data in response to the input signal applied via the OR circuit 26 and inputs it to the ROM address section 14. Therefore R.O.
The MII starts the next processing operation when the next address is specified. In this way, the process of step m is completed, but
Processing is performed in the same manner in other steps in FIG. Next, the operation when a function key is operated will be explained with reference to FIG. When a function key is operated in FIG. 7, a function key input process is first performed as shown in step A. That is, the function data input from the key input unit 42 is temporarily stored in the buffer 43, and then sent to the gate circuit G. by the key input command KE. 4, and is read out from the RAM via the arithmetic circuit 31 and gate circuit G,
12. The function data input to the RAM 12 is written into the function storage digit xF of the x register by addressing from the ROMII. Next, proceed to step B, write "0" to function storage digit ZF of the Z register, and then proceed to step C.
As shown in , C8, (14th digit of A register) is “0”.
”. This CB, is clear (CE)
When the function data storage digit in the stack RAMI9 is cleared by a key operation, "IJ" is written.First, in this step C, if C8 is determined to be "OJ", the process advances to step D, and the stack pointer SP Write the previously input numerical data and function data stored in the register in the stack RAMI9 addressed by to YvT and YF of the Y register.Then, in step E, write the previously input numerical data and function data stored in the register in the stack RAMI9 addressed by . function data and XF of the X register
It is determined whether or not to execute the calculation by comparing it with the currently input function data stored in . In other words, when performing continuous calculations such as parenthesis calculations, weighting is performed on function data such as addition, subtraction, multiplication, division, etc., the weights are compared between the function data input last time and the function data input this time, and the calculation is performed according to the comparison result. Decide whether to perform the operation. For example, "XJ" ÷
If you set the weight of "10" to be larger than "1", the previous input function data was "×" or "÷" which was large, and the current input function data was "11" or "1" which was 4. determines that the calculation is to be performed, and performs the calculation process according to the previously input function data. Further, if the weight of the previous input function data is 4 points less than the weight of the current input function data, it is determined that the calculation is not performed. If it is determined in this step E that there is no operation, the process proceeds to step F and the RAM 1 2
The contents of the stack pointer SP inside are incremented by 11. Next, the process proceeds to step G, and the contents of the stack pointer incremented in step F are set in the address buffer 32 of the stack RAMI 9. Then, the numerical data and function data stored in the X register XvT'XF in the RAM 12 are transferred to the register, for example M2, in the stack RAM 19 which is addressed by this buffer 32 according to the step date. Next, as shown in step 1, the numerical data stored in XvT of the X register is transferred to ZvT of the Z register, and as shown in step J, the numerical data transferred to the Z register is displayed on the display section 35. Further, if the judgment result in step E is to execute the operation (YES), proceed to step K, and send the numerical data stored in XvT of the × register and YvT of the Y register to the arithmetic circuit 31, and store it in the Y register. A predetermined arithmetic process is performed according to the function data, and the result of the arithmetic operation is stored in the x register. Furthermore, if the determination in step C is NO, the process proceeds to step L and writes "0" into CE. and step M
The numerical data stored in the numerical data storage digit of the register in the stack RAMI 9 addressed by the stack pointer SP is written to the x register. When step K or M is completed, the process proceeds to step N and the contents of the stack pointer SP are decremented by 1. If the result is other than "0", the contents of the stack pointer SP decremented by 1 are stacked in step ○. Set in address buffer 32 of RAM 19. Note that if it is "0", proceed to step 1. When step ○ is completed, the process returns to step D and repeats the above-described operation. Steps 1 to 7 in FIG. 8 are the registers X, Z, A (
SP, CE, ) and the changes in the storage contents of the registers M, -M3 in the stack RAMI9.

まず、「2」の暦数が行われると、第8図のステップ1
に示すようにRAM1 2の×レジスタの×vTに「2
」が書込まれると共に、このXvTの内容がZvTに転
送され、このZvTの内容「2」が表示部35で表示さ
れる。また、第1暦数が行われたことによりZFに「1
」が書込まれる。次いで「十一のファンクションキーが
操作されると、第8図のステップ2に示すようにファン
クションデータ「十一がXFに書込まれると共に、スタ
ツクポィンタSPの内容に十1される。そして、このス
タツクポインタSPによりアドレス指定されるスタツク
RAMI9内のレジスタM,及びこのレジスタM.のフ
ァンクションデータ記憶部M,F‘こ×vTの内容「2
」及び×Fの内容「十一が転送される。また、上記ファ
ンクションキーが操作されたことによってZFの内容が
クリアされる。以下キー操作に応じて同様の処理が行わ
れ、「5」の数層キーが操作された時には第8図のステ
ップ7に示すように×vTに「5」,ZvTに「5」,
ZFに「1」,SPに「3」,M,に「2い M,Fに
「十一、M2に「3」、M2Fに「(一、M8に「4リ
M3Fに「十一が書込まれている。次に第9図のフロー
チャートにより本発明の主要動作であるクリア(CE)
キーが操作された場合について説明する。
First, when the calendar number "2" is performed, step 1 in Figure 8
As shown in
" is written, the contents of this XvT are transferred to ZvT, and the contents of this ZvT "2" are displayed on the display section 35. Also, due to the completion of the first calendar number, ZF received “1
" is written. Next, when the ``11'' function key is operated, the function data ``11'' is written to XF as shown in step 2 of FIG. The contents of the register M in the stack RAMI9 addressed by the stack pointer SP, and the function data storage section M, F'xvT of this register M.
” and the contents of ×F “11” are transferred. Also, the contents of ZF are cleared by operating the above function key. Similar processing is performed in response to subsequent key operations, and “5” is transferred. When the several-layer key is operated, "5" is set to ×vT, "5" is set to ZvT, as shown in step 7 of Fig. 8.
"1" on ZF, "3" on SP, "2" on M, Next, clear (CE), which is the main operation of the present invention, is shown in the flowchart of FIG.
A case where a key is operated will be explained.

第8図のステップ8〜11は、上記した「2十3(4十
5」のキー操作を行った後にCEキーを操作した時のR
AM12、およびスタツクRAMI9の内容変化を示し
たものである。上記CEキーは暦数訂正時のクリア機能
及び最新入力データより最初に入力したデータへと操作
毎に順次クリアする機能を有している。しかして、キー
入力部42においてCEキーの操作が行われると、第9
図のステップPに示すようにZレジスタのファンクショ
ンデータ記憶桁ZFの内容が「0」か否かを判定する。
このステップPにおいてはROMアドレス部14により
ROMIIの1番地がアドレスされ、ROMIIからオ
ペレーションコードOPとして「1110」が出力され
る。このオペレーションコードOPは、第4図に詳細を
示すオペレーションデコーダー5でデコードされ、M,
OF,JUが“1”となる。この時ROMIIから出力
される行指定アドレスFuは「10」2、列指定アドレ
スFLは「1111」15が出力されるのでtlのタイ
ミングでゲート回路○2を介してZレジスタが指定され
、tbのタイミングでゲート回路G4を介してIS行目
が指定される。上記のアドレス指定によりZレジスタの
19行目つまりZFが指定されてその内容が謙出され、
t2・J,のタイミングでラツチ回路28にセットされ
る。この時OFが“1”であるのでラッチ回路28のラ
ッチされれた内容はゲート回路○,oを介して演算回路
31へ入力される。そして、この演算回路31の出力は
オア回路37を介してアンド回路38へ入力させる。ま
た、この際アンド回路38にはジャッジ命令JUが与え
られているので、上記ZFの内容が“1”であればアン
ド回路38から“1”信号が出力され、オア回路26か
ら出力される読込みパルスによりアドレスレジスタ13
の第1ビットに諸込まれる。このアドレスレジスタ13
の読込みパルスは、Mが“1”の場合、t3・J,のタ
イミングでアンド回路25から出力され、オア回路26
を介してアドレスレジスタ13に与えられる。さらに、
Mが“1”の場合、上記ら・で,のタイミングでフリツ
プフロツプ17がセットされ、スタート信号STがタイ
ミングデコーダ16に与えられる。従って上記スタート
信号STは、次の処理サイクルの最初で出力することに
なる。また、上許ROM1 1の1番目がアドレス指定
された場合、ROM1 1から出力される次アドレスN
aは「0010」2となっているので、Zpが“1”で
あればアドレスレジスタ13の内容は「3」となり、Z
Fが“0”であればアドレスレジスタ13の内容は「2
」となる。このアドレスレジスター3の内容によってR
OMI Iのアドレスが指定され、次のステップに進む
。すなわち、ステップPの判定において、ZFの内容が
「0」であればアドレスレジスタ13に「2」がセット
されてステップQに進む。このステップQは、上記ステ
ップPと同様にして判定動作を行うが、この時ROMI
Iから行指定アドレスFU「11」3、列指定アドレス
FL「1110」14が出力され、これによりRAM1
2内のAレジスタの14桁目、すなわち、CE,がアド
レス指定される。従って、CE,の内容が演算回路31
に謙出されて前記ステップPと同様の動作で「0」か否
かの判定が行われる。また、前記ステップPの判定結果
がNOでROMIIの3番地がアドレス指定されるとス
テップTに進み、Zレジスタのファンクションデータ記
憶桁ZFに「0」が書込まれる。このステップTでは、
行指定アドレスFU「10ハ列指定アドレスFL「11
11」によりZレジスタのZFが指定される。また、オ
ペレーションコード○p「1001」によりオペレーシ
ョンデコーダ15よりM、タイミングデコーダ16より
R/WIが出力する。この時、オペレーションデコーダ
1 5からはOS,OF,CIのいずれも出力されない
のでゲート回路○9,○,o,G,5,は開かれず、よ
ってRAM1 2の入力端子IN‘ま「0」となってい
る。この状態でR/W1 ぐ1”)がRAM12に与え
られると、入力端子瓜の「0」がZFに書込まれる。更
に、前記ステップQの判定処理に於てCE,が「0」と
判定されると、ROMIIの2番目に於て出力される次
アドレスNa「0100」に従ってアドレスレジスタ1
3に「4」がセットされる。
Steps 8 to 11 in FIG.
It shows changes in the contents of AM12 and stack RAMI9. The CE key has a clearing function when correcting the calendar number and a function of sequentially clearing data from the latest input data to the first input data for each operation. Therefore, when the CE key is operated in the key input unit 42, the ninth
As shown in step P in the figure, it is determined whether the content of the function data storage digit ZF of the Z register is "0".
In this step P, address 1 of the ROMII is addressed by the ROM address section 14, and "1110" is outputted from the ROMII as the operation code OP. This operation code OP is decoded by the operation decoder 5 whose details are shown in FIG.
OF and JU become "1". At this time, the row designation address Fu output from the ROMII is "10" 2, and the column designation address FL is "1111" 15, so the Z register is designated via the gate circuit ○2 at the timing of tl, and the tb The IS row is designated at the timing via the gate circuit G4. The above address specification specifies the 19th line of the Z register, that is, ZF, and reveals its contents.
It is set in the latch circuit 28 at timing t2·J. At this time, since OF is "1", the latched contents of the latch circuit 28 are input to the arithmetic circuit 31 via the gate circuits ◯ and o. The output of this arithmetic circuit 31 is inputted to an AND circuit 38 via an OR circuit 37. Also, at this time, since the AND circuit 38 is given the judge command JU, if the content of the above ZF is "1", the AND circuit 38 outputs a "1" signal, and the read signal output from the OR circuit 26 Address register 13 by pulse
is loaded into the first bit of This address register 13
When M is “1”, the read pulse is output from the AND circuit 25 at the timing t3·J, and the read pulse is output from the OR circuit 26.
is applied to the address register 13 via the address register 13. moreover,
When M is "1", the flip-flop 17 is set at the above timings, and the start signal ST is given to the timing decoder 16. Therefore, the start signal ST will be output at the beginning of the next processing cycle. Also, when the first address of upper ROM11 is specified, the next address N output from ROM11
Since a is "0010" 2, if Zp is "1", the contents of the address register 13 will be "3", and Z
If F is “0”, the contents of address register 13 are “2”.
”. Depending on the contents of this address register 3, R
The address of OMI I is specified and we proceed to the next step. That is, in the determination at step P, if the content of ZF is "0", "2" is set in the address register 13 and the process proceeds to step Q. In this step Q, the determination operation is performed in the same manner as in the above step P, but at this time, the ROMI
The row designation address FU "11" 3 and the column designation address FL "1110" 14 are output from I, and as a result, RAM1
The 14th digit of the A register in 2, CE, is addressed. Therefore, the content of CE, is the arithmetic circuit 31
, and it is determined whether or not it is "0" in the same manner as in step P. Further, if the determination result in step P is NO and address 3 of ROMII is designated, the process proceeds to step T, where "0" is written in the function data storage digit ZF of the Z register. In this step T,
Row specified address FU “10” Column specified address FL “11
11'' specifies ZF of the Z register. Furthermore, with the operation code ○p "1001", the operation decoder 15 outputs M and the timing decoder 16 outputs R/WI. At this time, since the operation decoder 15 does not output any of OS, OF, and CI, the gate circuits ○9, ○, o, G, and 5 are not opened, and therefore the input terminal IN' of the RAM 12 becomes "0". It has become. In this state, when R/W1 (1") is applied to the RAM 12, "0" at the input terminal is written to ZF. Furthermore, if CE is determined to be "0" in the determination process of step Q, the address register 1 is set according to the next address Na "0100" output from the second ROMII.
3 is set to "4".

このアドレスレジスター3の内容によりROMIIの4
番地がアドレス指定されてステップRに進む。このステ
ップRは、スタックポインタSPの内容に対応するスタ
ックRAM1 9内のレジスタのファンクションデータ
記憶桁に「0」を書込む動作を行うもので、まず、アド
レスレジスタ13によりRAMIIの4番地がアドレス
指定されると、オペレーションコードOPより「101
0」が出力され、これによりオペレーションデコーダ1
5よりM、タイミングデコーダ16よりR/W2が出力
する。また、この時列指定アドレスFLからは「111
1」が出力し、15桁目をアドレス指定する。またスタ
ツクポインタSPの内容はスタツクRAMI9のアドレ
ス用バッファ32にセットされており、このバッファ3
2の内容によりスタツクRAMI9の行がアドレス指定
されている。すなわち、ファンクションキー操作直後の
CEキー操作であると、第7図のステップGに於てスタ
ックポィンタSPの内容がバッファ32にセットされて
おり、このバッファ32の内容によりアドレス指定され
るスタツクRAM1 9内のレジスタのファンクション
データ記憶桁に「0」が書込まれることになる。このよ
うにしてスタツクRAMI9の指定されたファンクショ
ンデータ記憶桁に「0」が書込まれてクリアされると、
オペレーションデコーダ15の出力Mにより、t3・J
,のタイミングでオア回路24を介してフリツプフロッ
プ17がセットされ、次のステップのスタート信号ST
が出力すると共に、アンド回路25、オア回路26を介
してアドレスレジスタ13の読込みパルスが出力する。
この読込みパルスによりステップRの次アドレスNaの
出力「0110」がアドレスレジスタ13にセットされ
次のステップSに進む。上記アドレスレジスタ13によ
りROMI Iの6番地がアドレス指定されると、オペ
レーションコードOPからは「1011」が出力され、
オペレーションデコーダ15によりデコードされてM及
びCIの指令を出力し、タイミングデコーダ16からは
R/WIが出力する。また、数層コードCoから「00
01」1が出力し、この出力「1」はコード入力指令C
Iにより開かれているゲート回路G,5を介して演算回
路31の入力端子aに与えられる。そして、この演算回
路31の出力はゲート回路13を介してRAM12の入
力端子INに与えられる。この時、行指定アドレスFu
として「11」、列指定アドレスFLとして「1110
」が各々ゲート回路G2,G4を介してRAM1 2の
端子RAU及びRALに与えられている。従って、R/
WIが出力した際に、上記FU及びFLによって指定さ
れたAレジスタのCE,に「1」が書込まれる。また、
前記ステップQに於てNOと判定された場合にはアドレ
スレジスター3に「5」がセットされステップUに進む
。このステップUでは、スタツクポィンタSPの内容が
セットされたスタツクRAMI9のアドレス用バッファ
32によりアドレス指定されるスタックRAMI 9内
のレジスタの数贋データ記憶桁VT(0〜14桁)に「
0」を書込んでクリアする動作が行われる。すなわち、
ステップUでは、アドレスレジスタ13にセットされた
内容に従ってROMIIの5番地がアドレス指定され、
オペレーションコードOPとして「0010」が出力さ
れる。このオペレーションコードOPに従ってタイミン
グデコーダ16によりR/W2が出力される。この時ス
タート信号STとMによりタイミングデコーダ16から
タイミング信号taが出力され、ゲート回路G3のゲー
トが開かれる。この結果、ROMIIから出力される列
指定アドレスSL「0000」がゲート回路03を介し
てスタツクRAMI9のRALへ送られて0桁目を指定
すると共にタイミング情号マdに同期してカウンタ20
1こセットされる。また、この際、オペレーションデコ
ーダ15からスタック入力指令SIは出力されていない
のでゲート回路○,.は開かれずスタツクRAMの入出
力端子内には「0」が与えられている。従って、スタッ
クRAMI9のアドレス用バッファ32によりアドレス
指定されるレジスタの0桁目‘こR/W2で「0」が書
込まれる。一方、この時、ゲート回路G5を介して上記
カウンタ20の内容「0」が一致回路21の一方の入力
側に送られ、ROMIIから一致回路21の他方の入力
側に入力されている処理終了列指定アドレスFL「11
11」即ち、「15」と比較される。この場合、一致し
ないので一致回路21からは一致信号が出力されないの
で、アンド回路23、オア回路26からは読込みパルス
が出力せず、アドレスレジスター3の内容は変らない。
又、同時にカウンタ20‘こはタイミング信号◇dが印
加されて、そのカウンタ値が十1される。そして次に桁
サイクル良Pち、第1桁目のサイクルに入ると上記した
0桁目に「OJを書き込む動作と同様にして上記しジス
タの1桁目に「0」が書きこまれる。以後、上記しジス
夕の2桁目から1叫桁目まではカゥンタ20‘こより順
次桁が指定されて「0」が書き込まれる。そして、カウ
ン夕20のカウンタ値が「15」になると、このカウン
タ値がゲート回路○5を介して列アドレス信号としてス
タックRAMI9の端子RALに供給され、上記しジス
タの第13行目に上述と同様「0」が書き込まれる。こ
の時、上記ゲート回路G5を介してカウンタ値「15」
が上記一致回路21の一方の入力端に加えられるので、
上記一致回路21の他方の入力端に印加されているFL
「1111」(内容=15)との一致がとれ、一致回路
21から一致信号が出力され、この一致信号はアンド回
路23に加えられると共にオア回路24を介してフリツ
プフロツプ17に加えられる。従って、ら・で・のタイ
ミングでアンド回路23から“1”信号が出力され、オ
ア回路26を介してアドレスレジスタ13に講込みパル
スとして送られる。この読込みパルスによりアドレスレ
ジスター3に次アドレス「0111」がセットされ、次
のステップVに進む。また、上記ら・ぐ,のタイミング
で一致回路21の出力がフリップフロツプ17に諸込ま
れ、フリツプフロツプ17から次のステップのスタート
指令STが出力される。このようにしてステップUの処
理を終了するが、上記カウンタ20の内容が「0」から
「14」までカウンタアツプされる間にバッファ32に
よりアドレス指定されるスタツクRAMI9内のレジス
タの0〜14桁に「OJが書込まれる。ステップVは、
スタックポィンタSPの内容を読出して−1し、その結
果をスタツクポインタSPに書込むステップで、ROM
IIからは行指定アドレスFu「11」、列指定アドレ
スFL「1111ハコード信号C。
4 of ROMII depending on the contents of address register 3.
The address is specified and the process proceeds to step R. This step R is to write "0" into the function data storage digit of the register in the stack RAM 19 corresponding to the contents of the stack pointer SP. First, the address register 13 specifies address 4 of RAM II. Then, “101” is displayed from the operation code OP.
0" is output, which causes operation decoder 1
5 outputs M, and timing decoder 16 outputs R/W2. Also, from this time series specified address FL, “111
1" is output and the 15th digit is addressed. Furthermore, the contents of the stack pointer SP are set in the address buffer 32 of the stack RAMI9, and this buffer 3
The row of stack RAMI 9 is addressed by the contents of 2. That is, if the CE key is operated immediately after the function key is operated, the contents of the stack pointer SP are set in the buffer 32 in step G of FIG. ``0'' will be written to the function data storage digit of the register within 9. In this way, when "0" is written and cleared in the designated function data storage digit of stack RAMI9,
By the output M of the operation decoder 15, t3・J
, the flip-flop 17 is set via the OR circuit 24, and the start signal ST of the next step is set.
At the same time, a read pulse of the address register 13 is outputted via the AND circuit 25 and the OR circuit 26.
This read pulse causes the output "0110" of the next address Na of step R to be set in the address register 13, and the process proceeds to the next step S. When address 6 of ROMI I is specified by the address register 13, "1011" is output from the operation code OP,
The operation decoder 15 decodes and outputs M and CI commands, and the timing decoder 16 outputs R/WI. In addition, from several layer code Co “00
01”1 is output, and this output “1” is the code input command C
It is applied to the input terminal a of the arithmetic circuit 31 via the gate circuit G, 5 which is opened by I. The output of this arithmetic circuit 31 is applied to the input terminal IN of the RAM 12 via the gate circuit 13. At this time, the row specified address Fu
"11" as column specification address FL, and "1110" as column specification address FL.
'' are applied to the terminals RAU and RAL of the RAM 12 via gate circuits G2 and G4, respectively. Therefore, R/
When WI is output, "1" is written to CE of the A register specified by FU and FL. Also,
If the determination in step Q is NO, "5" is set in the address register 3 and the process proceeds to step U. In this step U, the contents of the stack pointer SP are set in the counterfeit data storage digits VT (digits 0 to 14) of the register in the stack RAMI 9 that is addressed by the address buffer 32 of the stack RAMI 9.
0" is written and cleared. That is,
In step U, address 5 of the ROMII is specified according to the contents set in the address register 13,
"0010" is output as the operation code OP. According to this operation code OP, the timing decoder 16 outputs R/W2. At this time, a timing signal ta is output from the timing decoder 16 in response to the start signals ST and M, and the gate of the gate circuit G3 is opened. As a result, the column designation address SL "0000" output from the ROMII is sent to the RAL of the stack RAMI9 via the gate circuit 03, designating the 0th digit, and in synchronization with the timing information MAD.
One item is set. Also, at this time, since the stack input command SI is not output from the operation decoder 15, the gate circuits ○, . is not opened and "0" is applied to the input/output terminals of the stack RAM. Therefore, "0" is written in the 0th digit of the register addressed by the address buffer 32 of the stack RAMI 9 in R/W2. On the other hand, at this time, the content "0" of the counter 20 is sent to one input side of the matching circuit 21 via the gate circuit G5, and the processing end column input from the ROMII to the other input side of the matching circuit 21. Specified address FL “11
11'', that is, compared with ``15''. In this case, since there is no match, no match signal is output from the match circuit 21, so no read pulse is output from the AND circuit 23 and the OR circuit 26, and the contents of the address register 3 remain unchanged.
At the same time, the timing signal ◇d is applied to the counter 20', and the counter value is incremented by 11. Then, when the next digit cycle is successful P, and the first digit cycle is entered, "0" is written to the first digit of the register in the same manner as the operation of writing "OJ" to the 0 digit described above. Thereafter, from the second digit to the first digit of the above-mentioned digit, the digits are sequentially designated from the counter 20' and "0" is written. Then, when the counter value of the counter 20 reaches "15", this counter value is supplied to the terminal RAL of the stack RAMI9 as a column address signal via the gate circuit ○5, and the above-mentioned signal is sent to the 13th row of the register. Similarly, "0" is written. At this time, the counter value "15" is sent via the gate circuit G5.
is applied to one input terminal of the coincidence circuit 21, so
FL applied to the other input terminal of the matching circuit 21
A match is made with "1111" (content=15), and a match signal is output from the match circuit 21. This match signal is applied to the AND circuit 23 and to the flip-flop 17 via the OR circuit 24. Therefore, a "1" signal is outputted from the AND circuit 23 at the timing of ra, d, and is sent to the address register 13 as an input pulse via the OR circuit 26. The next address "0111" is set in the address register 3 by this read pulse, and the process proceeds to the next step V. Further, the output of the coincidence circuit 21 is loaded into the flip-flop 17 at the above timing, and the start command ST for the next step is outputted from the flip-flop 17. In this way, the process of step U is completed, but while the contents of the counter 20 are counted up from "0" to "14", digits 0 to 14 of the register in the stack RAMI 9 addressed by the buffer 32 are counted up. “OJ” is written to “OJ”. Step V is
In the step of reading the contents of the stack pointer SP, incrementing it by 1, and writing the result to the stack pointer SP, the ROM
From II, row designation address Fu "11", column designation address FL "1111" and code signal C.

「0001」1、オペレーションコードOP「1111
」、次アドレスNa「1000」が出力される。上記オ
ペレーションコードOP「1111Jが出力されると、
オペレーションデコーダ15から制御指令SB,M,C
I,OF,が出力されると共に、タイミングデコーダ1
6から書込み指令R/W1 ぐ1”)が出力される。コ
ード入力指令CIが出力されることにより、ROMI
Iからコード信号C。「0001」1がゲート回路○,
5を介して演算回路31に入力される。そして、行指定
アドレスFU及び列指定アドレスFLによってRAM1
2のスタックポィンタSPがアドレス指定されてその内
容がら・J,のタィミンでラツチ回路28にセットされ
る。そして、このラッチ回路28にセットされた内容は
ゲート回路G,oを介して演算回路31へ送られる。こ
の時、演算回路31には減算指令SBが与えられている
ので、演算回路3 1に入力されたスタックポインタS
Pの内容はコ−ド信号C。「0001」1により−1さ
れ、その結果がゲート回路○,3を介してスタックポィ
ンタSPに書込まれる。上記ステップVの動作が終了す
ると、次アドレスNa「1000」によりROMIIの
8番地がアドレス指定されステップWに進む。このステ
ップWはスタックポィンタSPの内容をスタックRAM
I 9のアドレス用バッファ32にセットする動作を行
うもので、まず、アドレスレジスタ13の内容に従って
ROMI1の8番地がアドレス指定されると、ROMI
Iより行指定アドレスSu「11」、列指定アドレスS
L「1111」、オペレーションコードOP「1100
」、次アドレスNa「1001」が出力される。上記オ
ペレーションコードOF「1100」によりオペレーシ
ョンデコーダ15よりM,OS,また、タイミングデコ
ーダ1 6より?cが出力される。従って上記行指定ア
ドレスSU及び列指定アドレスSLによってアドレス指
定されるスタツクポィンタSPの内容はt.・ぐ,のタ
イミングでゲート回路C6を介してラツチ回路27に読
出される。しかして、このラツチ回路27の出力はデー
タ出力指令OSにより開かれるゲート回路○9を介して
スタツクRAMI 9のアドレス用バッファ32に与え
られ、タイミングデコーダ16からの信号◇cに同期し
てセットされる。このようにしてバツフア32にスタツ
クボインタSPの内容がセットされると、オペレーショ
ンデコーダ15からのMの出力によりら・0,のタイミ
ングでアンド回路25及びオア回路26を介してアドレ
スレジスタ13の議込みパルスが、また、オア回路24
を介してフリツプフロツプ17にセットされ次のスター
ト信号STが出力される。これにより次アドレスNaの
「1001」がアドレスレジス夕13にセットされ次の
ステップXに進む。このステップ×は、ROMII内の
AレジスタのC8,に「0」を書込んでクリアするもの
で、このステップXに於けるROMIIからのオベレ−
ションコードOPは前記ステップTと同様のコ−ド「1
001」が出力する。従って、オペレーションデコーダ
15及びタイミングデコーダ16からは、前記ステップ
Tと全く同様の指令が出力する。しかして、ステップX
に於ては、行指定アドレスFUとして「11」、列指定
アドレスFLとして「1110」が出力し、よってAレ
ジスタのCE,がアドレス指定される。すなわち、前記
ステップTと同様の動作によってAレジスタのCE,に
「0」が書込まれてクリアされる。上記各ステップS,
T,あるいは×の動作が終了すると、ROMI Iの1
栃電地がアドレス指定されてステップYに進む。
"0001" 1, operation code OP "1111"
”, and the next address Na “1000” is output. When the above operation code OP “1111J” is output,
Control commands SB, M, C from the operation decoder 15
I, OF, are output, and the timing decoder 1
A write command (R/W1) is output from 6. By outputting a code input command CI, the ROMI
I to code signal C. "0001" 1 is gate circuit ○,
5 to the arithmetic circuit 31. Then, by the row designation address FU and column designation address FL, RAM1 is
The stack pointer SP of 2 is addressed and its contents are set in the latch circuit 28 at the timing of .J. The contents set in the latch circuit 28 are sent to the arithmetic circuit 31 via the gate circuits G and o. At this time, since the subtraction command SB is given to the arithmetic circuit 31, the stack pointer S input to the arithmetic circuit 31
The content of P is code signal C. "0001" is incremented by 1, and the result is written to the stack pointer SP via the gate circuits ◯ and 3. When the operation in step V is completed, address 8 of the ROMII is designated by the next address Na "1000" and the process proceeds to step W. This step W transfers the contents of the stack pointer SP to the stack RAM.
It performs the operation of setting the address in the address buffer 32 of I9. First, when address 8 of ROMI1 is specified according to the contents of the address register 13, the ROMI
From I, row designation address Su “11”, column designation address S
L "1111", operation code OP "1100"
”, and the next address Na “1001” is output. With the above operation code OF "1100", the operation decoder 15 outputs M, OS, and the timing decoder 16? c is output. Therefore, the contents of the stack pointer SP addressed by the row designation address SU and column designation address SL are t. The data is read out to the latch circuit 27 via the gate circuit C6 at the timing of . The output of the latch circuit 27 is then given to the address buffer 32 of the stack RAMI 9 via the gate circuit ○9 opened by the data output command OS, and is set in synchronization with the signal ◇c from the timing decoder 16. Ru. When the contents of the stack pointer SP are set in the buffer 32 in this way, an input pulse is sent to the address register 13 via the AND circuit 25 and the OR circuit 26 at a timing of 0 according to the output of M from the operation decoder 15. However, the OR circuit 24
is set in flip-flop 17 via ST, and the next start signal ST is output. As a result, the next address Na "1001" is set in the address register 13 and the process advances to the next step X. This step x writes "0" to C8 of the A register in ROMII to clear it.
The application code OP is the same code as in step T above.
001" is output. Therefore, the operation decoder 15 and timing decoder 16 output instructions exactly the same as in step T above. However, step X
In this case, "11" is output as the row designation address FU and "1110" is output as the column designation address FL, so that CE of the A register is addressed. That is, by the same operation as in step T, "0" is written and cleared in CE of the A register. Each step S above,
When the operation of T or × is completed, 1 of ROMI I
Tochidenchi is addressed and the process proceeds to step Y.

このステップYは、スタツクRAMI9のアドレス用バ
ッファ32によりアドレス指定されるスタックRAMI
9内のレジスタの数値データ記憶桁VTを読出して、R
AM12内のZレジスタの数値データ記憶桁ZvTに書
込むもので、まずアドレスレジスタ13の内容に従って
ROMIIの10番地がアドレス指定される。このアド
レス指定によりROMIIから行指定アドレスFU「1
0」、処理開始列指定アドレスSL「0000」、処理
終了列指定アドレスFL「1110」、オペレーシヨン
コードOP「0101Jが出力される。このオペレーシ
ョンコードOP「0101」により、オペレーションデ
コーダ15からS○、タイミングデコーダ16からタイ
ミング信号ta、マd、書込み指令R/WIが出力され
る。まず、行指定アドレスFU及び処理開始列指定アド
レスSLによりRAM1 2のZレジスタの0桁目が指
定される。また、上記列指定アドレスSLはカウンタ2
川こタイミング信号マdに同期してセットされる。この
カウンタ20の内容はタイミング信号?dにより打頂次
十1され、Zレジスタを1桁目より14行目まで順次指
定する。この時バッファ32でアドレス指定されるスタ
ックRAMI9内のレジスタの内容が指令SOにより開
かれるゲート回路G,2を介してRAM12へ入力され
、上記行指定アドレスFUによりアドレス指定されてい
るZレジスタに書込まれる。すなわち、バッファ32に
より指定されるレジスタの内容は、Zレジスタの0〜1
4行(ZvT)に書込まれる。そして、カウンタ20の
内容が処理終了列指定アドレスFL「1110」に一致
すると、一致回路21から一致信号が出力されアンド回
路23に与えられる。従って、アンド回路23からら・
?,のタイミングで“1”信号が出力され、オア回路2
6を介してアドレスレジスタ13に議込みパルスとして
送られる。この読込みパルスによりアドレスレジスタ1
3に表示及びキーサンプリングフロ一の最初のステップ
がセットされて表示及びキーサンプリングの動作が行わ
れる。従って、ステップYに於てZvTに書込まれた数
値データが表示部35で表示された。以上でCEキーが
操作された場合の処理を終了する。
This step Y is performed by the stack RAMI addressed by the address buffer 32 of the stack RAMI9.
Read the numerical data storage digit VT of the register in 9, and
The data is written to the numerical data storage digit ZvT of the Z register in the AM12, and address 10 of the ROMII is first addressed according to the contents of the address register 13. With this address specification, the row specification address FU "1" is sent from ROMII.
0", processing start column designation address SL "0000", processing end column designation address FL "1110", and operation code OP "0101J". With this operation code OP "0101", the operation decoder 15 outputs S○, The timing decoder 16 outputs timing signals ta, mad, and write command R/WI. First, the 0th digit of the Z register of the RAM 12 is designated by the row designation address FU and the process start column designation address SL. In addition, the column designation address SL is the counter 2.
It is set in synchronization with the timing signal MAd. Is the content of this counter 20 a timing signal? The number 11 is reached by d, and the Z register is sequentially specified from the 1st digit to the 14th line. At this time, the contents of the register in the stack RAMI9, which is addressed by the buffer 32, are input to the RAM 12 via the gate circuit G,2 opened by the command SO, and written to the Z register, which is addressed by the row designation address FU. be included. That is, the contents of the register specified by the buffer 32 are 0 to 1 of the Z register.
Written in line 4 (ZvT). When the contents of the counter 20 match the processing end column designation address FL "1110", a match signal is outputted from the match circuit 21 and given to the AND circuit 23. Therefore, from the AND circuit 23,
? A “1” signal is output at the timing of , and the OR circuit 2
6 to the address register 13 as an interrupt pulse. This read pulse causes address register 1
The first step of the display and key sampling flow is set to 3, and display and key sampling operations are performed. Therefore, the numerical data written in ZvT in step Y was displayed on the display section 35. This completes the process when the CE key is operated.

今例えば、第8図のステップ1〜7に示すように「2十
3(4十5」のキー操作が行われた状態で誤操作に気付
き、CEキーを操作したとすると、この場合は第1暦数
を終了してZFの内容が「1」となっているので処理フ
ローは第9図のステップPからステップTに進み、ZF
の内容をクリアした後、スタックポインタSPの内容が
セットされたスタツクRAM1 9のアドレス用バッフ
ァ32でアドレス指定されるスタツクRAMI9内のレ
ジスタM3の内容「4」を講出してZvTに書込む。こ
の結果、「5」と表示されていたデータが前回の数値デ
ータ「4」に変わる。このように最初のCEキー操作で
は最新数値データのみが消去される。この状態で新たに
数値キーを操作すると、第6図のフローに従って操作さ
れた数値が入力され表示部35に於て表示される。すな
わち暦数後のCEキー操作では通常の暦数訂正が行なわ
れる。また、前記最初のCEキーに引続いて2度目のC
Eキーを操作すると、この時点ではZFの内容がクリア
されているのでステップPからステップQに進み、ここ
でCE,が「0」か否かの判定動作が行われる。このC
E,は、第6図及び第7図に示すように数値キーあるい
はファンクションキーが操作される毎にクリアされるの
で、このCEキー操作の際はYESと判定さステップR
方向に進む。この結果、第8図のステップ9に示すよう
にM3のファンクション記憶桁F(M3F)の内容「十
一がクリアされると共にC8,に「1」が書入まれる。
この状態で更にCEキーを操作すると、ステップPでY
ES、ステップQでNOと判定されステップU方向に進
む。この結果、第8図ステップー川こ示すように鳩に数
値データ記憶桁の内容「4」がクリアされると共にスタ
ツクポインタSPの内容「3」が−1されて「2」とな
る。そしてこのスタツクポィンタSPの内容「2」がバ
ッファ32にセットされる。次にCE,に「0」が書込
まれた後前記バッファ32にセットされた内容によりア
ドレス指定されるM2の数値データ「3」がZレジスタ
に読出されて表示される。この状態で、更にCEキーを
操作すると、ステップP及びQの判定結果に基づいてス
テップR方向に進み前記2度目のCEキーが操作された
際と同様の動作が行われる。この結果第8図ステップ1
1に示すように、スタツクRAMI9のM2のファンク
ションデータ記憶桁F(池F)の内容「(一がクリアさ
れる。以上述べたように本発明によれば、通常のファン
クションキー操作後に於てもそれ以前に入力データを訂
正することができる。
For example, if you notice an erroneous operation after the key operation for "203 (45)" is performed as shown in steps 1 to 7 of FIG. 8, and you operate the CE key, in this case, the Since the content of ZF is "1" after completing the calendar number, the processing flow advances from step P to step T in FIG.
After clearing the contents of the stack pointer SP, the contents "4" of the register M3 in the stack RAM 9, which is addressed by the address buffer 32 of the stack RAM 19 to which the contents of the stack pointer SP have been set, are extracted and written to ZvT. As a result, the data displayed as "5" changes to the previous numerical data "4". In this way, the first CE key operation erases only the latest numerical data. In this state, when a new numerical key is operated, the operated numerical value is inputted and displayed on the display section 35 according to the flow shown in FIG. That is, when the CE key is operated after the calendar number, normal calendar number correction is performed. Also, the second C key after the first CE key is pressed.
When the E key is operated, since the contents of ZF have been cleared at this point, the process advances from step P to step Q, where it is determined whether CE is "0" or not. This C
E, is cleared each time a numeric key or function key is operated as shown in FIGS. 6 and 7, so when this CE key is operated, it is determined as YES and step R is executed.
Go in the direction. As a result, as shown in step 9 of FIG. 8, the content "11" of the function storage digit F (M3F) of M3 is cleared and "1" is written in C8.
If you press the CE key again in this state, Y will appear at step P.
ES, NO is determined in step Q, and the process proceeds in the direction of step U. As a result, as shown in FIG. 8, the content "4" of the numerical data storage digit is cleared and the content "3" of the stack pointer SP is decremented by one to become "2". The content "2" of this stack pointer SP is then set in the buffer 32. Next, after "0" is written to CE, the numerical data "3" of M2 addressed by the contents set in the buffer 32 is read out to the Z register and displayed. If the CE key is further operated in this state, the process advances to step R based on the determination results of steps P and Q, and the same operation as when the CE key was operated for the second time is performed. As a result, Fig. 8 Step 1
1, the contents of the function data storage digit F (Pond F) in M2 of the stack RAMI 9 are cleared.As described above, according to the present invention, even after normal function key operation, The input data can be corrected before then.

「また、最後の入力データだけでなく、上記入力データ
一を訂正する為のCEキーを操作する毎に数値データあ
るいはファンクションデータを入力した順序とは逆に順
次消去することができる。従って括弧計算等の長い計算
式を処理する場合にファンクションキー入力の誤り及び
数回前の入力デー外こ誤りがあることに気付いた時でも
全データを消去することなく誤りのあるデータの所まで
を消去できる。このため誤りデータの訂正を簡単に行う
ことができ、実際の処理時間を短縮することができるも
のである。
``In addition, not only the last input data, but also numerical data or function data can be erased sequentially in the opposite order to the input order each time the CE key is operated to correct the input data 1. Therefore, parenthesis calculation When processing long calculation formulas such as, even if you notice that there is an error in a function key input or an error outside of the input data several times ago, you can erase up to the erroneous data without erasing all data. Therefore, error data can be easily corrected, and actual processing time can be shortened.

【図面の簡単な説明】 図面は本発明の一実施例を示すもので、第1図は回路構
成図、第2図は第1図において使用されるタイミングパ
ルスを示す図、第3図は第1図におけるRAMの構成内
容を示す図、第4図は第1図のROM及びオペレーショ
ンデコーダ部分の構成例を示す図、第5図はオペレーシ
ョンコードと制御信号との対応関係を示す図、第6図は
贋数操作が行われた場合の処理を示すフローチャート、
第7図はファンクションキーが操作された場合の処理を
示すフローチャート、第8図はデータ入力操作及びCE
キー操作を行った場合のデータ記憶状態の変化を示す図
、第9図はCEキーを操作した場合の処理を示すフロー
チャートである。 1 1・・・・・・ROM、1 2・・・・・・RAM
、1 4....・・ROMアドレス部、15…・・・
オペレーションデコーダ、16……タイミングデコーダ
、19……スタックRAM、20・…・・カウンタ、2
1・・・・・・一致回路、42・・…・キー入力部。 第2図 第3図 図 舵 第4図 第5図 第6図 第7図 第9図 第8図
[BRIEF DESCRIPTION OF THE DRAWINGS] The drawings show one embodiment of the present invention, and FIG. 1 is a circuit configuration diagram, FIG. 2 is a diagram showing timing pulses used in FIG. 1, and FIG. 3 is a diagram showing a timing pulse used in FIG. 1. FIG. 4 is a diagram showing an example of the configuration of the ROM and operation decoder portion in FIG. 1. FIG. 5 is a diagram showing the correspondence between operation codes and control signals. The figure is a flowchart showing the process when a counterfeit operation is performed.
Fig. 7 is a flowchart showing the processing when a function key is operated, and Fig. 8 is a flowchart showing the processing when a function key is operated.
FIG. 9 is a flowchart showing the process when the CE key is operated. 1 1...ROM, 1 2...RAM
, 1 4. .. .. ..・ROM address section, 15...
Operation decoder, 16... Timing decoder, 19... Stack RAM, 20... Counter, 2
1... Matching circuit, 42... Key input section. Figure 2 Figure 3 Rudder Figure 4 Figure 5 Figure 6 Figure 7 Figure 9 Figure 8

Claims (1)

【特許請求の範囲】[Claims] 1 数値データ、演算に応じて重み付がなされた各種フ
アンクシヨンデータならびに演算結果等を記憶する演算
用メモリと、フアンクシヨンキーが操作される毎にその
時入力されたフアンクシヨンデータの重みと前回入力さ
れたフアンクシヨンデータの重みとを比較し演算実行の
可否を判定する判定手段と、該判定手段の可の判定結果
に従つて前記数値データあるいは演算結果を用いて前回
のフアンクシヨンデータに応じた演算処理を行う演算手
段と、前記判定手段の否の判定結果に従つて前記数値デ
ータ及びフアンクシヨンデータを前記演算用メモリから
一時待避するために順次所定の順序で記憶する一時記憶
用メモリと、この一時記憶用メモリの内容を訂正するた
めの指示キーが操作される毎に前記一時記憶用メモリに
記憶されたデータを各データ毎に前記所定の順序と逆の
順序でクリアすると共に前記一時記憶用メモリのクリア
されるデータの前に記憶された数値データを読出して前
記演算用メモリ内の表示データ記憶用メモリに書込む手
段とを具備してなる小型電子式計算機におけるクリア制
御方式。
1 A calculation memory that stores numerical data, various function data weighted according to the calculation, calculation results, etc., and a calculation memory that stores the weight of the function data input at that time each time the function key is operated. a determining means for comparing the weight of the previously inputted function data to determine whether or not the calculation can be executed; calculation means for performing calculation processing according to the data; and temporary storage for sequentially storing the numerical data and function data in a predetermined order in order to temporarily save the numerical data and function data from the calculation memory according to a negative determination result of the determination means. Each time a storage memory and an instruction key for correcting the contents of the temporary storage memory are operated, the data stored in the temporary storage memory is cleared for each data in an order opposite to the predetermined order. and means for reading numerical data stored before the data to be cleared in the temporary storage memory and writing it into the display data storage memory in the calculation memory. control method.
JP52134242A 1977-11-09 1977-11-09 Clear control method for small electronic calculators Expired JPS6032228B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52134242A JPS6032228B2 (en) 1977-11-09 1977-11-09 Clear control method for small electronic calculators

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52134242A JPS6032228B2 (en) 1977-11-09 1977-11-09 Clear control method for small electronic calculators

Publications (2)

Publication Number Publication Date
JPS5467733A JPS5467733A (en) 1979-05-31
JPS6032228B2 true JPS6032228B2 (en) 1985-07-26

Family

ID=15123718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52134242A Expired JPS6032228B2 (en) 1977-11-09 1977-11-09 Clear control method for small electronic calculators

Country Status (1)

Country Link
JP (1) JPS6032228B2 (en)

Also Published As

Publication number Publication date
JPS5467733A (en) 1979-05-31

Similar Documents

Publication Publication Date Title
US4247905A (en) Memory clear system
US3940745A (en) Data processing unit having a plurality of hardware circuits for processing data at different priority levels
JPH0769791B2 (en) Microprocessor
US5247624A (en) Microprogram controller including leading microinstruction from a generator executed while succeeding microinstruction from memory is read out
JPS6032228B2 (en) Clear control method for small electronic calculators
JPS6032229B2 (en) Clear control method for small electronic calculators
JPS5936787B2 (en) Input/output information deletion method
JPS6035699B2 (en) Bracket level number display method
JPS6044692B2 (en) Data input method
JPS6032227B2 (en) Constant storage control method
CN1105976C (en) One-chip microcomputer mounted with nonvolatile storage
JPS6236560B2 (en)
JPS6029130B2 (en) Miscalculation prevention method
JPS6032226B2 (en) Overflow detection method
JPS6032230B2 (en) Display method of small electronic calculator
JPS617884A (en) Data processor
JPS6158860B2 (en)
JPS6051730B2 (en) Display data conversion method
JP2576088B2 (en) Electronic equipment with data storage device
SU1290317A1 (en) Adaptive microprogram control device
JPS6233627B2 (en)
JPS6367157B2 (en)
JPH021627Y2 (en)
JPS621237B2 (en)
JPS61786A (en) Electronic machinery