JP2001344221A - Electronic computer and storage medium - Google Patents

Electronic computer and storage medium

Info

Publication number
JP2001344221A
JP2001344221A JP2000166107A JP2000166107A JP2001344221A JP 2001344221 A JP2001344221 A JP 2001344221A JP 2000166107 A JP2000166107 A JP 2000166107A JP 2000166107 A JP2000166107 A JP 2000166107A JP 2001344221 A JP2001344221 A JP 2001344221A
Authority
JP
Japan
Prior art keywords
stored
operator
items
storage means
history
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.)
Pending
Application number
JP2000166107A
Other languages
Japanese (ja)
Inventor
Shuji Kaya
周治 加悦
Hirokazu Imatani
博和 今谷
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2000166107A priority Critical patent/JP2001344221A/en
Publication of JP2001344221A publication Critical patent/JP2001344221A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic computer capable of storing and displaying history even when data exceeding the maximum number of items to be stored as history are inputted and correcting history items and executing reculculation due to the correction by having consistency between operation results and the history and a storage medium storing a program for the electronic computer. SOLUTION: When a new operator is inputted in a state that the maximum number of items is stored in an operational history memory, all items stored in the memory are erased in a step a4. In a step a5, operational results stored in a Y register are stored in a 1st item of the memory and input values and operators stored in an X register and an operator flag are stored in a 2nd item of the memory, so that even when data exceeding the maximum number of items allowed to be stored as history are inputted, the operational history having consistency between the operational results and the history can be stored and displayed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、入力された数値お
よび演算子に基づいて演算を行う電子計算機および電子
計算機用プログラムを記憶する記憶媒体に関し、特に計
算履歴保持機能を有する電子計算機および電子計算機用
プログラムを記憶する記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic computer for performing an operation based on an input numerical value and an operator, and a storage medium for storing an electronic computer program, and more particularly to an electronic computer having a function of holding a calculation history and an electronic computer. The present invention relates to a storage medium for storing an application program.

【0002】[0002]

【従来の技術】特開平11−66012号公報記載の卓
上加減乗除計算機は、通常モードと履歴モードとを備
え、通常モードにおいては、入力数値を入力項番号と総
入力項数とともに表示し、入力数値と演算子とを項ごと
に履歴メモリに記憶する。履歴モードにおいては履歴メ
モリ内の入力数値と演算子とを順次表示し、修正するこ
とが可能で修正後には再計算することができる。また、
現在販売されている計算履歴機能付電子卓上計算機とし
てはシチズン社ST1210およびカシオ社DJ-100などがあ
る。
2. Description of the Related Art A desk top addition, subtraction, multiplication and division calculator disclosed in Japanese Patent Application Laid-Open No. 11-66012 has a normal mode and a history mode. In the normal mode, input values are displayed together with input item numbers and total input items. The numerical value and the operator are stored in the history memory for each term. In the history mode, the input numerical value and the operator in the history memory are sequentially displayed and can be corrected, and can be recalculated after the correction. Also,
Currently available electronic desk calculators with a calculation history function include Citizen ST1210 and Casio DJ-100.

【0003】図11は従来技術の電子計算機の操作例を
示す図である。まず、図11(A)によって入力操作お
よびそのときの表示画面について説明する。
FIG. 11 is a diagram showing an operation example of a conventional computer. First, an input operation and a display screen at that time will be described with reference to FIG.

【0004】表示画面には、入力数値および演算結果な
どが表示される数値部10aと記憶されている演算履歴
の項目数を表示するカウンタ部10bと演算子などのキ
ーコードを表示するシンボル部10cとがある。
On the display screen, a numerical section 10a for displaying input numerical values and calculation results, a counter section 10b for displaying the number of items of the stored operation history, and a symbol section 10c for displaying key codes such as operators. There is.

【0005】(1)演算前の初期状態の画面であるので
表示装置の数値部10aは0となっている。演算履歴も
記憶されていないので、カウンタ部10bには“0”が
表示されている。
(1) Since the screen is in the initial state before the calculation, the numerical value portion 10a of the display device is 0. Since no calculation history is stored, “0” is displayed on the counter section 10b.

【0006】(2)[1]を入力し、[+]キーを押すこ
とで( ,1)が演算履歴として記憶される。1項目の
演算履歴があるので、カウンタ部10bは“1”とな
る。演算履歴は、演算子と数値とを一項目として記憶す
るので、ここでは、記憶されるひとつの項目を“(演算
子,数値)”で表すこととする。
(2) By inputting [1] and pressing the [+] key, (, 1) is stored as a calculation history. Since there is one item of operation history, the counter section 10b becomes "1". The operation history stores an operator and a numerical value as one item, and here, one stored item is represented by “(operator, numerical value)”.

【0007】(3)[2]を入力し、[+]キーを押すこ
とで(+,2)が演算履歴として記憶される。演算履歴
が2項目記憶されているので、カウンタ部10bは
“2”を表示し、数値部10aには演算途中経過である
“3.”が表示される。
(3) By inputting [2] and pressing the [+] key, (+, 2) is stored as a calculation history. Since two calculation histories are stored, the counter section 10b displays "2" and the numerical value section 10a displays "3." which is in the middle of the calculation.

【0008】(4)[3][+][4][+]…[1]
[0][+]のように順番に加算していくと、(+,
3)(+,4)…(+,10)と10項目が演算履歴メ
モリに記憶される。10項目の演算履歴があるのでカウ
ンタ部は“10”を表示し、演算途中経過である“5
5.”が表示される。
(4) [3] [+] [4] [+]... [1]
When adding in order as [0] [+], (+,
3) (+, 4)... (+, 10) and 10 items are stored in the operation history memory. Since there are 10 operation histories, the counter section displays “10” and “5” indicating that the calculation is in progress.
5. Is displayed.

【0009】(5)[1][1][=]と入力すると演
算結果である“66.”が表示される。演算履歴メモリ
には11件目以降の項目は記憶されていないので、カウ
ンタ部は“10”のままである。
(5) When [1] [1] [=] is input, the calculation result "66." is displayed. Since the eleventh and subsequent items are not stored in the operation history memory, the counter section remains "10".

【0010】次に、上記操作後の演算履歴メモリの内部
状態について図11(B)に示す。記憶されているのは
( ,1)…(+,10)の10件のみであり、11件
目の(+,11)はどこにも記憶されていない。よって
演算結果と演算履歴が合致しないことになる。
Next, FIG. 11B shows the internal state of the operation history memory after the above operation. Only 10 cases ((, 1)... (+, 10) are stored, and the eleventh case (+, 11) is not stored anywhere. Therefore, the calculation result and the calculation history do not match.

【0011】また、別の従来例として、このように演算
結果と演算履歴が合致しないときは演算履歴表示キーな
どを無効にするので、演算履歴を全く表示できないこと
になる。
As another conventional example, when the calculation result and the calculation history do not match, the calculation history display key and the like are invalidated, so that the calculation history cannot be displayed at all.

【0012】[0012]

【発明が解決しようとする課題】特開平11−6601
2号公報においては、入力数が履歴保持記憶手段の大き
さを越えたときの動作については特に言及されていな
い。また実際に販売されている電子卓上計算機では、上
記のように入力された項目数が履歴保持可能な最大項目
数を越えると、保持可能な項目数の履歴のみを表示する
か、履歴の表示が全くできないかのいずれかであった。
Problems to be Solved by the Invention
In Japanese Patent Laid-Open Publication No. 2002-115, there is no particular reference to the operation when the number of inputs exceeds the size of the history holding storage means. When the number of items entered as described above exceeds the maximum number of items that can be stored in the history, the electronic desktop calculator that is actually sold displays only the history of the number of items that can be stored or displays the history. Either could not at all.

【0013】上記のように、保持可能な項目数の履歴の
みが保持されるので、実際に入力された項目の一部しか
確認できず、履歴に保持されている式から導かれる演算
結果と表示部に表示されている演算結果との整合性も無
い。また、整合性が無いために履歴項目の修正とそれに
伴う再計算とを行うことができない。
As described above, since only the history of the number of items that can be held is held, only a part of the items actually input can be confirmed, and the calculation result and the display derived from the expression held in the history are displayed. There is no consistency with the calculation result displayed in the section. Further, since there is no consistency, it is not possible to perform correction of the history item and recalculation associated therewith.

【0014】本発明の目的は、履歴保持可能な最大項目
数を越えた入力があっても、履歴の記憶および表示が可
能であり、演算結果と履歴との整合性を有することで履
歴項目の修正とそれに伴う再計算を行うことができる電
子計算機および電子計算機用プログラムを記憶した記憶
媒体を提供することである。
An object of the present invention is to store and display a history even if there is an input exceeding the maximum number of items that can be stored in the history. An object of the present invention is to provide a computer capable of performing a correction and a recalculation accompanying the correction, and a storage medium storing a program for the computer.

【0015】[0015]

【課題を解決するための手段】本発明は、入力数値が書
き込まれる入力数値記憶手段と、入力された演算子が書
き込まれる演算子記憶手段と、演算結果の値が書き込ま
れる演算結果記憶手段と、入力数値と演算子とを一項目
とし、各項目を所定の履歴項目開始位置から入力順に予
め設定された最大項目数まで格納可能な演算履歴記憶手
段とを有し、演算子が入力されると、演算子を演算子記
憶手段に書き込み、入力数値記憶手段に記憶された値お
よび入力された演算子を演算履歴記憶手段に格納すると
ともに、演算結果記憶手段の値と入力数値記憶手段の値
とを、入力された演算子に基づいて演算し、演算結果を
演算結果記憶手段に書き込むように処理する電子計算機
用プログラムを記憶する記憶媒体において、演算履歴記
憶手段に最大項目まで演算履歴が格納された状態で、演
算子の入力があったとき、前記電子計算機用プログラム
は、演算履歴記憶手段に記憶されている全項目を消去
し、入力数値記憶手段、演算子記憶手段および演算結果
記憶手段に記憶されている入力数値、演算子および演算
結果を演算履歴記憶手段に記憶することを特徴とする記
憶媒体である。
According to the present invention, there is provided an input numerical value storage means in which an input numerical value is written, an operator storage means in which an input operator is written, and an operation result storage means in which an operation result value is written. And an operation history storage unit that stores an input numerical value and an operator as one item, and stores each item from a predetermined history item start position to a preset maximum number of items in the order of input. And the operator is written in the operator storage means, the value stored in the input numerical value storage means and the input operator are stored in the operation history storage means, and the value of the operation result storage means and the value of the input numerical value storage means are stored. Are calculated on the basis of the input operator, and the calculation result is written in the calculation result storage means. In the state where the operation history is stored, when an operator is input, the computer program deletes all the items stored in the operation history storage unit, and stores the input numerical value storage unit and the operator storage unit. And an input numerical value, an operator, and an operation result stored in the operation result storage means are stored in the operation history storage means.

【0016】本発明に従えば、演算履歴記憶手段に最大
項目数が格納された状態で、演算子の入力があると、ま
ず、演算履歴記憶手段に格納されている全項目を消去す
る。次に、演算結果記憶手段に記憶されている演算結果
を演算履歴記憶手段に格納し、入力数値記憶手段および
演算子記憶手段に記憶されている入力数値および演算子
を演算履歴記憶手段に格納するので、履歴保持可能な最
大項目数を越えた入力があっても、演算結果と履歴との
整合性を有する履歴の記憶および表示が可能である。
According to the present invention, when an operator is input while the maximum number of items is stored in the operation history storage means, first, all items stored in the operation history storage means are deleted. Next, the operation result stored in the operation result storage unit is stored in the operation history storage unit, and the input numerical value and the operator stored in the input numerical value storage unit and the operator storage unit are stored in the operation history storage unit. Therefore, even if there is an input exceeding the maximum number of items that can be stored in the history, it is possible to store and display the history having consistency between the operation result and the history.

【0017】また本発明は、2項目以上の項目を作り出
す演算子の入力によって、演算履歴記憶手段に格納され
る項目数が最大項目数を越えると判断したとき、前記電
子計算機用プログラムは、予め演算履歴記憶手段に格納
されている全項目を消去し、入力数値記憶手段、演算子
記憶手段および演算結果記憶手段に記憶されている入力
数値、演算子および演算結果を演算履歴記憶手段に格納
することを特徴とする。
Further, according to the present invention, when it is determined that the number of items stored in the operation history storage means exceeds the maximum number of items by input of an operator for creating two or more items, the computer program is executed in advance. All the items stored in the operation history storage unit are deleted, and the input numerical value, the operator, and the operation result stored in the input numerical value storage unit, the operator storage unit, and the operation result storage unit are stored in the operation history storage unit. It is characterized by the following.

【0018】本発明に従えば、2項目以上の項目を作り
出す新たな演算子の入力によって、演算履歴記憶手段が
最大項目数を越えるとき、予め演算履歴記憶手段に格納
されている全項目を消去する。演算結果記憶手段に記憶
されている演算結果を演算履歴記憶手段に格納し、前記
入力数値記憶手段および演算子記憶手段に記憶されてい
る入力数値および演算子を演算履歴記憶手段に格納する
ので、履歴保持可能な最大項目数を越えた入力があって
も、演算結果と履歴との整合性を有する履歴の記憶およ
び表示が可能であるとともに、1項目ずつ履歴保持可能
な最大項目数を越えたか否かを判断する無駄な処理を無
くすことができる。
According to the present invention, when the operation history storage means exceeds the maximum number of items due to the input of a new operator for creating two or more items, all the items previously stored in the operation history storage means are deleted. I do. Since the calculation result stored in the calculation result storage means is stored in the calculation history storage means, and the input numerical value and the operator stored in the input numerical value storage means and the operator storage means are stored in the calculation history storage means, Even if there is an input exceeding the maximum number of items that can be stored in the history, it is possible to store and display the history with consistency between the operation result and the history, and whether the number of items exceeds the maximum number of items that can be stored in the history. It is possible to eliminate useless processing for determining whether or not to perform the determination.

【0019】本発明は、入力数値が書き込まれる入力数
値記憶手段と、入力された演算子が書き込まれる演算子
記憶手段と、演算結果の値が書き込まれる演算結果記憶
手段と、入力数値と演算子とを一項目とし、各項目を所
定の履歴項目開始位置から入力順に予め設定された最大
項目数まで格納可能な演算履歴記憶手段とを有し、演算
子が入力されると、演算子を演算子記憶手段に書き込
み、入力数値記憶手段に記憶される値および入力された
演算子を演算履歴記憶手段に格納するとともに、演算結
果記憶手段の値と入力数値記憶手段の値とを、入力され
た演算子に基づいて演算し、演算結果を演算結果記憶手
段に書き込むように処理する電子計算機用プログラムを
記憶する記憶媒体において、演算履歴記憶手段に最大項
目まで演算履歴が格納された状態で、演算子の入力があ
ったとき、前記電子計算機用プログラムは、演算履歴記
憶手段に格納されている第一項目および第二項目に基づ
いた演算を実行して第一項目にまとめ、以降に格納され
る各項目を一つずつ前の項に転送することによって、演
算履歴記憶手段の最後の項に空きをつくり、そこに前記
入力によって生じた項目を格納することを特徴とする記
憶媒体である。
According to the present invention, there is provided an input numerical value storage means in which an input numerical value is written, an operator storage means in which an input operator is written, an operation result storage means in which an operation result value is written, an input numerical value and an operator. And an operation history storage means capable of storing each item from a predetermined history item start position to a preset maximum number of items in the order of input, and when an operator is input, the operator is operated. The value stored in the input storage unit and the value stored in the input value storage unit and the value of the input value storage unit are stored in the operation history storage unit. In a storage medium for storing a computer program for performing a calculation based on an operator and writing the calculation result to the calculation result storage means, the calculation history is stored in the calculation history storage means up to the maximum item. In this state, when there is an input of an operator, the computer program executes an operation based on the first item and the second item stored in the operation history storage means and puts it into the first item. , By transferring each item stored thereafter to the previous item one by one, making a space in the last item of the operation history storage means, and storing the item generated by the input there. It is a storage medium.

【0020】本発明に従えば、 演算履歴記憶手段に最
大項目まで演算履歴が格納された状態で、演算子の入力
があったとき、演算履歴記憶手段に格納されている第一
項目および第二項目の演算を実行することで一項目にま
とめて演算履歴記憶手段に記憶する。以降に格納される
各項目を一つずつ前の項に転送することで作り出した空
き領域に、新たに生じた項目を記憶させるので、演算結
果と履歴との整合性を有する履歴の記憶および表示が可
能である。
According to the present invention, when an operator is input while the operation history is stored up to the maximum item in the operation history storage means, the first item and the second item stored in the operation history storage means are input. By executing the calculation of the items, the items are collected into one item and stored in the calculation history storage unit. Newly generated items are stored in the free space created by transferring each item stored thereafter to the previous item one by one, so the history storage and display with consistency between the calculation result and the history Is possible.

【0021】また本発明は、2項目以上の項目を作り出
す演算子の入力によって、演算履歴記憶手段に格納され
る項目数が最大項目数を越えると判断したとき、前記電
子計算機用プログラムは、演算履歴記憶手段に格納され
ている項目のうち、前記入力によって最大項目数を越え
る項目数分の演算を第一項目から実行して第一項目にま
とめ、以降に格納される各項目を最大項目数を越える項
目数分ずつ前に転送することによって、演算履歴記憶手
段の最後に、最大項目数を越える項目数分の空きをつく
り、そこに前記入力によって生じた項目を格納すること
を特徴とする。
Further, according to the present invention, when it is determined that the number of items stored in the operation history storage means exceeds the maximum number of items by inputting an operator for creating two or more items, the computer program executes the operation. Of the items stored in the history storage means, the operations for the number of items exceeding the maximum number of items by the input are executed from the first item and summarized into the first item, and each item stored thereafter is set to the maximum number of items. In this case, at the end of the operation history storage means, a space for the number of items exceeding the maximum number of items is created, and the items generated by the input are stored there. .

【0022】本発明に従えば、2項目以上の項目を作り
出す新たな演算子の入力によって、演算履歴記憶手段が
最大項目数を越えるとき、演算履歴記憶手段に格納され
ている項目のうち、第一項目から前記入力によって最大
項目数を越える項目数分までの演算を実行することで一
項目にまとめて演算履歴記憶手段に格納する。複数の項
目を一つにまとめ、以降に格納される各項目を最大項目
数を越える項目数分ずつ前に転送することによって作り
出した空き領域に、新たに生じた項目を格納させるの
で、演算結果と履歴との整合性を有する履歴の記憶およ
び表示が可能である。また、1項目ずつ履歴保持可能な
最大項目数を越えたか否かを確認する無駄な処理を無く
すことができる。
According to the present invention, when the operation history storage means exceeds the maximum number of items due to the input of a new operator for creating two or more items, of the items stored in the operation history storage means, By executing calculations from one item up to the number of items exceeding the maximum number of items by the input, the items are collected into one item and stored in the calculation history storage means. The newly created items are stored in the free space created by combining multiple items into one and transferring each item to be stored thereafter by the number of items that exceeds the maximum number of items before. And display of a history having consistency with the history. Further, it is possible to eliminate unnecessary processing for checking whether or not the maximum number of items that can be stored in the history has been exceeded one by one.

【0023】本発明は、入力数値が書き込まれる入力数
値記憶手段と、入力された演算子が書き込まれる演算子
記憶手段と、演算結果の値が書き込まれる演算結果記憶
手段と、入力数値と演算子とを一項目とし、各項目を所
定の履歴項目開始位置から入力順に予め設定された最大
項目数まで格納可能な演算履歴記憶手段とを有し、演算
子が入力されると、演算子を演算子記憶手段に書き込
み、入力数値記憶手段に記憶される値および入力された
演算子を演算履歴記憶手段に格納するとともに、演算結
果記憶手段の値と入力数値記憶手段の値とを、入力され
た演算子に基づいて演算し、演算結果を演算結果記憶手
段に書き込むように処理する電子計算機用プログラムを
記憶する記憶媒体において、前記電子計算機用プログラ
ムは、演算子の入力によって演算履歴記憶手段に格納す
る項目数が、最大項目数を越えると判断したとき、新た
に格納する項目の空きをつくるために、前記履歴開始位
置から1または複数項目の演算を実行してまとめて一項
目とし、これを前記まとめた複数項目のうち、最後の項
目の位置に格納し、この位置を新たな履歴項目開始位置
として設定することを特徴とする記憶媒体である。
According to the present invention, there is provided an input numerical value storage unit in which an input numerical value is written, an operator storage unit in which an input operator is written, an operation result storage unit in which an operation result value is written, an input numerical value and an operator. And an operation history storage means capable of storing each item from a predetermined history item start position to a preset maximum number of items in the order of input, and when an operator is input, the operator is operated. The value stored in the input storage unit and the value stored in the input value storage unit and the value of the input value storage unit are stored in the operation history storage unit. In a storage medium storing a computer program for performing an operation based on an operator and writing the operation result in an operation result storage unit, the computer program includes an input of the operator. Therefore, when it is determined that the number of items to be stored in the calculation history storage means exceeds the maximum number of items, one or more items of calculation are executed from the history start position and collected to make room for newly stored items. The storage medium is characterized in that one item is stored in a position of a last item of the plurality of items, and this position is set as a new history item start position.

【0024】本発明に従えば、演算履歴記憶手段に既に
格納されている複数の項目を演算することでまとめた項
目を前記複数項目のうち、最後の項目の位置に第一項目
として格納するので、項目を転送することなく演算子の
入力によって生じた項目を格納することができる。本発
明は、前記記憶媒体を搭載したことを特徴とする電子計
算機である。
According to the present invention, an item obtained by calculating a plurality of items already stored in the calculation history storage means is stored as a first item at the position of the last item among the plurality of items. , Items generated by operator input can be stored without transferring the items. The present invention is an electronic computer equipped with the storage medium.

【0025】[0025]

【発明の実施の形態】図1は本発明の第一実施形態であ
る電子計算機(以下単に「計算機」とも言う)1の電気
的構成を示すブロック図である。計算機1は、CPU
(中央演算処理装置)2、ROM(リードオンリメモ
リ)3、RAM(ランダムアクセスメモリ)4、表示装
置5、キーボード6、スイッチ7および外部記憶装置8
を含んで構成される。
FIG. 1 is a block diagram showing an electric configuration of an electronic computer (hereinafter, simply referred to as a "computer") 1 according to a first embodiment of the present invention. Calculator 1 has a CPU
(Central processing unit) 2, ROM (read only memory) 3, RAM (random access memory) 4, display device 5, keyboard 6, switch 7, and external storage device 8
It is comprised including.

【0026】CPU2は、キーの読み込み処理、四則計
算を含む計算処理、計算履歴保持処理および数値の表示
処理などの制御を行う。ROM3には、履歴保持制御用
プログラム、CPU2が周辺装置を制御するためのプロ
グラムおよび表示用フォントなどが記憶されている。
The CPU 2 controls a key reading process, a calculation process including four arithmetic calculations, a calculation history holding process, a numerical value display process, and the like. The ROM 3 stores a history retention control program, a program for the CPU 2 to control peripheral devices, a display font, and the like.

【0027】RAM4はXレジスタ4a、Yレジスタ4
b、演算子フラグ4c、演算履歴メモリ4d、履歴保持
件数ワーク4eおよび履歴開始位置ワーク4fを備え
る。Xレジスタ4aは、キーボード6から入力された入
力数値および計算結果の値が格納される入力数値記憶手
段である。Yレジスタ4bは、前回の演算結果の値が格
納される演算結果記憶手段である。演算子フラグ4c
は、最後に押された演算子キーの種別を保持し、演算実
行時には本フラグが参照されて演算内容が決定される演
算子記憶手段である。演算履歴メモリ4dは、演算子等
のキーコードとそのときの入力数値あるいは演算結果の
数値との組を一項目として予め定める最大項目数だけ記
憶する演算履歴記憶手段である。本実施例においては、
10項目の履歴を記憶できる演算履歴記憶手段を持つと
する。
The RAM 4 has an X register 4a, a Y register 4
b, an operator flag 4c, an operation history memory 4d, a history holding number work 4e, and a history start position work 4f. The X register 4a is an input numerical value storage unit that stores the input numerical value input from the keyboard 6 and the value of the calculation result. The Y register 4b is an operation result storage unit that stores the value of the previous operation result. Operator flag 4c
Is an operator storage unit that holds the type of the operator key pressed last, and refers to this flag when executing an operation to determine the content of the operation. The operation history memory 4d is an operation history storage unit that stores a set of a key code of an operator or the like and an input numerical value at that time or a numerical value of an operation result as a single item up to a predetermined maximum number of items. In this embodiment,
It is assumed that there is an operation history storage unit capable of storing 10 items of history.

【0028】履歴開始位置ワーク4fは、演算履歴メモ
リ4dに記憶されている演算履歴の第一項目の履歴位置
が格納されている。履歴保持件数ワーク4eは、演算履
歴メモリ4dに記憶されている演算履歴の項目数が格納
されている。演算履歴メモリ4dに項目を記憶する場合
は、CPU2が履歴開始位置ワーク4fおよび履歴保持
件数ワーク4eに記憶されている値を参照し、その値に
対応した位置に項目を記憶する。Xレジスタ4a,Yレ
ジスタ4bおよび演算子フラグ4cは計算履歴保持機能
の有無にかかわらず備えられており、演算履歴記憶手段
4dおよび履歴保持件数ワーク4eは計算履歴保持機能
の実現のために備えられているものである。履歴開始位
置ワーク4fは、後述する第三実施形態において使用さ
れ、第一実施形態および後述の第二実施形態においては
使用しない。
The history start position work 4f stores the history position of the first item of the operation history stored in the operation history memory 4d. The history holding number work 4e stores the number of items of the operation history stored in the operation history memory 4d. When storing an item in the calculation history memory 4d, the CPU 2 refers to a value stored in the history start position work 4f and the history holding number work 4e, and stores the item in a position corresponding to the value. The X register 4a, the Y register 4b and the operator flag 4c are provided irrespective of the presence or absence of the calculation history holding function, and the operation history storage means 4d and the history holding number work 4e are provided for realizing the calculation history holding function. Is what it is. The history start position work 4f is used in a third embodiment described later, and is not used in the first embodiment and a second embodiment described later.

【0029】表示装置5は、液晶表示装置およびその駆
動回路等から成り、入力あるいは表示中の数値が何項目
目の演算履歴であるかを示すカウンタ部5a、演算子等
のキーコードを表示するシンボル部5bおよび入力数
値、演算結果および演算履歴の数値を表示する数値表示
部5cを備える。
The display device 5 is composed of a liquid crystal display device and its driving circuit, etc., and displays a key code such as a counter unit 5a indicating which item of the input or displayed numerical value is the operation history and an operator. A symbol section 5b and a numerical value display section 5c for displaying input numerical values, calculation results, and calculation history values are provided.

【0030】キーボード6は、数値を入力するための数
値キーおよび小数点キー、演算を実行するための演算子
キーおよび[=]キー、演算履歴表示のための[NEX
T]および[PREV]キーあるいは演算履歴編集用キ
ーなど、その他この機器に備えられた機能を実現するた
めのキーから成り、これらの操作をユーザが行うための
ものである。スイッチ7は、演算結果の丸め処理方法の
指定等をユーザが行うためのものである。外部記憶装置
8は、演算履歴および演算用プログラムなどをFD(フ
ロッピー(登録商標)ディスク)9などに記憶しておく
ための装置で、フロッピーディスクドライブなどで実現
される。
The keyboard 6 includes a numerical key and a decimal point key for inputting numerical values, an operator key and an [=] key for executing an operation, and [NEX] for displaying an operation history.
[T] and [PREV] keys or a key for editing the operation history, and other keys for realizing functions provided in the device, and are used by the user to perform these operations. The switch 7 is for the user to specify a rounding method of the calculation result. The external storage device 8 is a device for storing an operation history, an operation program, and the like in an FD (floppy (registered trademark) disk) 9 or the like, and is realized by a floppy disk drive or the like.

【0031】図2は本第一実施形態の電子計算機におけ
る演算履歴処理のフローチャートを示す図である。演算
子キーなどのキーの処理で演算履歴を記憶するときにこ
の処理が実施される。また、第一実施形態の電子計算機
における操作例について図3に示す。
FIG. 2 is a diagram showing a flowchart of the operation history processing in the computer according to the first embodiment. This processing is performed when the operation history is stored by processing keys such as operator keys. FIG. 3 shows an operation example of the computer according to the first embodiment.

【0032】図3(A)の(1)は、演算前の初期状態
の画面であるので表示装置の数値部5cは0となってい
る。演算履歴も記憶されていないので、カウンタ部5a
には0が表示されている。
Since (1) in FIG. 3A is the screen in the initial state before the calculation, the numerical value portion 5c of the display device is 0. Since the operation history is not stored, the counter unit 5a
Is displayed as 0.

【0033】図3(A)の(2)において、[1]を入
力するとXレジスタ4aに1が記憶され、次に[+]キー
を押すと図2のフローチャートにおけるステップa1に
おいて演算履歴処理がスタートする。ステップa2で
は、[=]キーが押されたかどうかを判断する。ここで
は、[+]キーが押されたのでステップa3に進み、履歴
保持件数4eを参照して履歴保持件数が10件であるか
どうかを判断する。履歴保持件数は0であるのでステッ
プa6に進む。
In (2) of FIG. 3A, when [1] is input, 1 is stored in the X register 4a, and when the [+] key is pressed next, the operation history processing is performed in step a1 in the flowchart of FIG. Start. In step a2, it is determined whether the [=] key has been pressed. Here, since the [+] key is pressed, the process proceeds to step a3, and it is determined whether or not the number of history records is 10 by referring to the number of history records 4e. Since the number of history records is 0, the process proceeds to step a6.

【0034】ステップa6では演算子フラグ4cに記憶
されている演算子およびXレジスタ4aに記憶されてい
る数値が演算履歴メモリ4dに記憶される。第一項目で
あるため、演算子フラグには演算子が記憶されていない
ので、演算履歴としては(,1)が記憶される。演算履
歴処理は終了し、演算子[+]が演算子フラグ4cに記憶
される。また、履歴保持件数4eに+1されるのでカウ
ンタ部5aは1を表示する。
At step a6, the operator stored in the operator flag 4c and the numerical value stored in the X register 4a are stored in the operation history memory 4d. Since this is the first item, no operator is stored in the operator flag, and (, 1) is stored as the operation history. The operation history processing ends, and the operator [+] is stored in the operator flag 4c. Further, since the number of history records 4e is incremented by 1, the counter unit 5a displays 1.

【0035】図3(A)の(3)において、[2]を入
力するとXレジスタ4aに2が記憶され、次に[+]キー
を押すと図2のフローチャートにおけるステップa1に
おいて演算履歴処理がスタートする。図3(A)の
(2)と同様の処理を経て演算履歴としては(+,2)
が記憶される。演算履歴処理は終了し、演算子[+]が演
算子フラグ4cに記憶されるとともに演算結果である3
がYレジスタ4bに記憶される。また、履歴保持件数4
eに+1されるのでカウンタ部5aは2を表示する。
In (3) of FIG. 3A, when [2] is input, 2 is stored in the X register 4a, and when the [+] key is pressed next, the operation history processing is performed in step a1 in the flowchart of FIG. Start. After processing similar to (2) in FIG. 3A, the calculation history becomes (+, 2).
Is stored. The operation history processing ends, and the operator [+] is stored in the operator flag 4c and the operation result 3
Is stored in the Y register 4b. Also, the number of history records 4
Since +1 is added to e, the counter unit 5a displays 2.

【0036】図3(A)の(4)において、[3]
[+][4][+]…[1][0][+]のように順番
に加算していくと(+,3)(+,4)…(+,10)
と10項目までが演算履歴メモリ4dに記憶される。
In (4) of FIG. 3A, [3]
[+] [4] [+]... [1] [0] [+] When sequentially added like (+, 3) (+, 4) ... (+, 10)
And up to 10 items are stored in the operation history memory 4d.

【0037】図3(A)の(5)において、[1]
[1]を入力するとXレジスタ4aに11が記憶され、
次に[+]キーを押すと図2のフローチャートにおける
ステップa1において演算履歴処理がスタートする。ス
テップa2では、[=]キーが押されたかどうかを判断す
る。ここでは、[+]キーが押されたのでステップa3に
進み、履歴保持件数4eを参照して履歴保持件数が10
件であるかどうかを判断する。履歴保持件数は10件で
あるのでステップa4に進む。
In (5) of FIG. 3A, [1]
When [1] is input, 11 is stored in the X register 4a,
Next, when the [+] key is pressed, the calculation history processing starts at step a1 in the flowchart of FIG. In step a2, it is determined whether the [=] key has been pressed. In this case, since the [+] key is pressed, the process proceeds to step a3, and the number of history records is 10
Judge whether it is a case. Since the number of records retained is 10, the process proceeds to step a4.

【0038】ステップa4では、演算履歴メモリ4dを
クリアする。具体的には履歴保持件数4eを0にし、ス
テップa5にすすむ。ステップa5でYレジスタ4bに
記憶されている55を演算履歴メモリ4dに記憶する。
これは、式の最初の値であるので、演算子欄には空白を
入れる。具体的には演算履歴メモリ4dの履歴保持件数
4eに対応する位置に記憶した後、すなわち第一項目に
( ,55)を記憶した後、履歴保持件数4eを+1す
る。
At step a4, the operation history memory 4d is cleared. Specifically, the number of history records 4e is set to 0, and the process proceeds to step a5. At step a5, 55 stored in the Y register 4b is stored in the operation history memory 4d.
This is the first value in the expression, so leave a blank in the operator field. Specifically, after storing at the position corresponding to the number of history records 4e in the operation history memory 4d, that is, storing (, 55) in the first item, the number of history records 4e is incremented by one.

【0039】次にステップa6に進み、Xレジスタ4a
に記憶されている11および演算子フラグ4cに記憶さ
れている[+]を演算履歴メモリ4dの履歴保持件数4e
に対応する位置に記憶する。すなわち、第二項目に
(+,11)を記憶する。演算履歴処理は終了し、演算
子[+]が演算子フラグ4cに記憶される。また、履歴保
持件数4eに+1する。これによって、(5)に示すよ
うにカウンタ部5aには保持件数の2が表示される。
Next, the process proceeds to step a6, where the X register 4a
11 and [+] stored in the operator flag 4c are replaced with the number 4e of history records stored in the operation history memory 4d.
Is stored in the position corresponding to. That is, (+, 11) is stored in the second item. The operation history processing ends, and the operator [+] is stored in the operator flag 4c. Also, +1 is added to the number of history records 4e. As a result, as shown in (5), the number of held items is displayed on the counter section 5a.

【0040】このときの演算履歴メモリ4d内部の式
は、図3(B)に示されるように “55+11”とな
り、数値部5cに表示されている演算の途中経過である
66と演算履歴メモリ4dに記憶されている式との整合
性は保たれている。
At this time, the expression inside the operation history memory 4d is "55 + 11" as shown in FIG. 3B, and 66, which is the progress of the operation displayed in the numerical value part 5c, and the operation history memory 4d Is kept consistent with the formula stored in.

【0041】また、第一実施形態の電子計算機における
[=]キーが押された場合の操作例について図4に示
す。
FIG. 4 shows an operation example when the [=] key is pressed in the computer according to the first embodiment.

【0042】[=]キーが押されると、演算履歴は2項
目作成される。このときの演算履歴処理について以下に
説明する。
When the [=] key is pressed, two operation histories are created. The calculation history processing at this time will be described below.

【0043】図4(A)の(1)から(3)における演
算履歴処理および操作については図3(A)の(1)か
ら(3)と同様であるので説明は省略する。
The calculation history processing and operations in (1) to (3) of FIG. 4A are the same as those in (1) to (3) of FIG.

【0044】図4(A)の(4)において、[3]
[+][4][+]…[1][0][=]のように順番
に加算していくと(+,3)(+,4)…(+,9)と
9項目が演算履歴メモリ4dに記憶された状態で[=]
キーが押される。[=]キーが押されると、図2のフロ
ーチャートにおいて、履歴保持処理がスタートする。ス
テップa2では、[=]キーが押されたかどうかを判断す
る。[=]キーが押されることによって、(+,10)お
よび(=,55)の2項目の履歴が作成される。[=]キ
ーが押されたので、ステップa7に進み、現在の履歴保
持件数と[=]キーによって作成される履歴項目数であ
る2項目との合計が10件を越えるか否かの判断を行
う。本操作例では、上記合計が11件であり10件を越
えているのでステップa8に進む。
In (4) of FIG. 4A, [3]
[+] [4] [+] ... [1] [0] [=] When sequentially added, nine items are calculated as (+, 3) (+, 4) ... (+, 9). [=] In the state stored in the history memory 4d
Key is pressed. When the [=] key is pressed, the history holding process starts in the flowchart of FIG. In step a2, it is determined whether the [=] key has been pressed. By pressing the [=] key, two item histories (+, 10) and (=, 55) are created. Since the [=] key has been pressed, the process proceeds to step a7, where it is determined whether or not the sum of the current number of stored history items and the two items of the number of history items created by the [=] key exceeds ten. Do. In this operation example, since the total is 11 and exceeds 10, the process proceeds to step a8.

【0045】ステップa8では、演算履歴メモリ4dを
クリアする。具体的には履歴保持件数4eを0にし、ス
テップa9にすすむ。ステップa9でYレジスタ4bに
記憶されている45を演算履歴メモリ4dに記憶する。
これは、式の最初の値であるので、演算子欄には空白を
入れる。具体的には演算履歴メモリ4dの履歴保持件数
4eに対応する位置に記憶した後、すなわち第一項目に
( ,45)を記憶した後、履歴保持件数4eを+1す
る。
In step a8, the operation history memory 4d is cleared. Specifically, the number of history records 4e is set to 0, and the process proceeds to step a9. In step a9, the value 45 stored in the Y register 4b is stored in the operation history memory 4d.
This is the first value in the expression, so leave a blank in the operator field. Specifically, after storing at the position corresponding to the number of history records 4e in the operation history memory 4d, that is, storing (, 45) in the first item, the number of history records 4e is incremented by one.

【0046】次にステップa10に進み、Xレジスタ4
aに記憶されている10および演算子フラグ4cに記憶
されている[+]を演算履歴メモリ4dの履歴保持件数4
eに対応する位置に記憶する。すなわち第二項目に
(+,10)を記憶し、履歴保持件数4eを+1してス
テップa11にすすむ。ステップa11でYレジスタ4
bに記憶されている45とXレジスタ4aに記憶されて
いる10とを演算子フラグ4cに基づいて演算を実行
し、演算結果である55をXレジスタ4aに記憶する。
Then, the process proceeds to a step a10, wherein the X register 4
a stored in the operation history memory 4d and 10 stored in the operator flag 4a and [+] stored in the operator flag 4c.
It is stored in the position corresponding to e. That is, (+, 10) is stored in the second item, and the number of history records 4e is incremented by 1, and the process proceeds to step a11. In step a11, the Y register 4
An operation is performed on 45 stored in b and 10 stored in the X register 4a based on the operator flag 4c, and the operation result 55 is stored in the X register 4a.

【0047】次にステップa12において、Xレジスタ
4aに記憶されている演算結果を演算履歴として記憶す
る。[=]キーによる結果の値であるので、演算子欄に
は‘=’を入れる。履歴保持メモリ4d内の履歴保持件
数4eに対応する位置に記憶した後、すなわち第三項目
に(=,55)を記憶した後、演算履歴処理を終了し、
履歴保持件数4eを+1する。これによって(4)に示
すようにカウンタ部5aに保持件数の3が表示される。
Next, at step a12, the operation result stored in the X register 4a is stored as an operation history. Since the value is the result of the [=] key, put '=' in the operator column. After storing at the position corresponding to the number of history records 4e in the history storage memory 4d, that is, after storing (=, 55) in the third item, the calculation history processing is terminated.
The history holding number 4e is incremented by one. As a result, as shown in (4), the number 3 of stored items is displayed on the counter section 5a.

【0048】このときの演算履歴メモリ4d内部の式
は、図4(B)に示されるように“45+10=55”
となり、数値部5cに表示されている演算結果と演算履
歴メモリ4dに記憶されている式との整合性は保たれて
いる。
At this time, the expression in the operation history memory 4d is "45 + 10 = 55" as shown in FIG.
Thus, the consistency between the calculation result displayed in the numerical value part 5c and the formula stored in the calculation history memory 4d is maintained.

【0049】ステップa7において上記合計が10件以
下であれば[=]キー処理中に演算履歴メモリ4dの最
大項目数を越えることはないのでステップa10へ進
み、上記と同様にステップa11およびステップa12
を経て演算履歴処理を終了する。
If the total is 10 or less in step a7, the maximum number of items in the operation history memory 4d will not be exceeded during the [=] key processing, so the flow advances to step a10, and steps a11 and a12 are performed in the same manner as described above.
After that, the calculation history processing ends.

【0050】図5は本発明の第二実施形態の電子計算機
における演算履歴処理のフローチャートを示す図であ
る。
FIG. 5 is a flow chart showing the operation history processing in the computer according to the second embodiment of the present invention.

【0051】本第二実施形態の電子計算機のブロック図
については図1と同様である。演算子キーなどのキーの
処理で演算履歴を記憶するときにこの処理が実施され
る。また、第二実施形態の電子計算機における操作例に
ついて図6に示す。
The block diagram of the computer according to the second embodiment is the same as that of FIG. This processing is performed when the operation history is stored by processing keys such as operator keys. FIG. 6 shows an operation example of the computer according to the second embodiment.

【0052】図6(A)の(1)は、演算前の初期状態
の画面であるので表示装置の数値部5cは0となってい
る。演算履歴も記憶されていないので、カウンタ部5a
には0が表示されている。
Since (1) in FIG. 6A is the screen in the initial state before the calculation, the numerical value part 5c of the display device is 0. Since the operation history is not stored, the counter unit 5a
Is displayed as 0.

【0053】図6(A)の(2)において、[1]を入
力するとXレジスタ4aに1が記憶され、次に[+]キー
を押すと図5のフローチャートにおけるステップb1に
おいて演算履歴処理がスタートする。ステップb2で
は、[=]キーが押されたかどうかを判断する。ここで
は、[+]キーが押されたのでステップb3に進み、履歴
保持件数4eを参照して履歴保持件数が10件であるか
どうかを判断する。履歴保持件数は0であるのでステッ
プb8に進む。
In (2) of FIG. 6A, when [1] is input, 1 is stored in the X register 4a, and when the [+] key is pressed next, the operation history processing is performed in step b1 in the flowchart of FIG. Start. In step b2, it is determined whether the [=] key has been pressed. Here, since the [+] key is pressed, the process proceeds to step b3, and it is determined whether or not the number of history records is 10 by referring to the number of history records 4e. Since the number of history records is 0, the process proceeds to step b8.

【0054】ステップb8では演算子フラグ4cに記憶
されている演算子およびXレジスタ4aに記憶されてい
る数値が演算履歴メモリ4dに記憶される。第一項目で
あるため、演算子フラグには演算子が記憶されていない
ので、演算履歴としては(,1)が記憶される。演算履
歴処理は終了し、演算子[+]が演算子フラグ4cに記憶
される。また、履歴保持件数4eに+1されるのでカウ
ンタ部5aは1を表示する。
At step b8, the operator stored in the operator flag 4c and the numerical value stored in the X register 4a are stored in the operation history memory 4d. Since this is the first item, no operator is stored in the operator flag, and (, 1) is stored as the operation history. The operation history processing ends, and the operator [+] is stored in the operator flag 4c. Further, since the number of history records 4e is incremented by 1, the counter unit 5a displays 1.

【0055】図6(A)の(3)において、[2]を入
力するとXレジスタ4aに2が記憶され、次に[+]キー
を押すと図2のフローチャートにおけるステップb1に
おいて演算履歴処理がスタートする。図3の(2)と同
様の処理を経て演算履歴としては(+,2)が記憶され
る。演算履歴処理は終了し、演算子[+]が演算子フラグ
4cに記憶されるとともに演算結果である3がYレジス
タ4bに記憶される。また、履歴保持件数4eに+1さ
れるのでカウンタ部5aは2を表示する。
In (3) of FIG. 6A, when [2] is input, 2 is stored in the X register 4a, and when the [+] key is pressed next, the operation history processing is performed in step b1 in the flowchart of FIG. Start. (+, 2) is stored as the operation history through the same processing as (2) in FIG. The operation history processing ends, and the operator [+] is stored in the operator flag 4c, and the operation result 3 is stored in the Y register 4b. Further, since the number of history records 4e is incremented by 1, the counter unit 5a displays 2.

【0056】図6(A)の(4)において、[3]
[+][4][+]…[1][0][+]のように順番
に加算していくと(+,3)(+,4)…(+,10)
と10項目までが演算履歴メモリ4dに記憶される。
In (4) of FIG. 6A, [3]
[+] [4] [+]... [1] [0] [+] When sequentially added like (+, 3) (+, 4) ... (+, 10)
And up to 10 items are stored in the operation history memory 4d.

【0057】図6(A)の(5)において、[1]
[1]を入力するとXレジスタ4aに11が記憶され、
次に[+]キーを押すと図5のフローチャートにおける
ステップb1において演算履歴処理がスタートする。ス
テップb2では、[=]キーが押されたかどうかを判断す
る。ここでは、[+]キーが押されたのでステップb3に
進み、履歴保持件数4eを参照して履歴保持件数が10
件であるかどうかを判断する。履歴保持件数は10件で
あるのでステップb4に進む。
In (5) of FIG. 6A, [1]
When [1] is input, 11 is stored in the X register 4a,
Next, when the [+] key is pressed, the calculation history processing starts at step b1 in the flowchart of FIG. In step b2, it is determined whether the [=] key has been pressed. Here, since the [+] key is pressed, the process proceeds to step b3, and the number of history records is 10
Judge whether it is a case. Since the number of history records is 10, the process proceeds to step b4.

【0058】ステップb4で演算履歴メモリ4dの第一
項目および第二項目の内容とYレジスタ4b、Xレジス
タ4aおよび演算子フラグ4cの内容とを交換する。す
なわち( ,1)および(+,2)とYレジスタ4b、
Xレジスタ4aおよび演算子フラグ4cにそれぞれ記憶
されている“55.”、“11.”および‘+’とを交
換する。次にステップb5において、Yレジスタ4bと
Xレジスタ4aとを演算子フラグ4cに基づいて演算
し、演算結果をYレジスタ4bに記憶する。これによっ
て演算履歴メモリ4dに記憶されていた最初の2項目が
演算されることとなる。
At step b4, the contents of the first and second items in the operation history memory 4d are exchanged with the contents of the Y register 4b, the X register 4a and the operator flag 4c. That is, (, 1) and (+, 2) and the Y register 4b,
"55.", "11." and "+" stored in the X register 4a and the operator flag 4c are exchanged. Next, in step b5, the Y register 4b and the X register 4a are operated based on the operator flag 4c, and the operation result is stored in the Y register 4b. As a result, the first two items stored in the calculation history memory 4d are calculated.

【0059】演算後ステップb6に進み、演算履歴メモ
リ4dの第一項目および第二項目の内容とYレジスタ4
b、演算子フラグ4cおよびXレジスタ4aの内容とを
再度交換する。これによって、Yレジスタ4b、Xレジ
スタ4aおよび演算子フラグ4cには、“55.”、
“11.”および‘+’が記憶されて最初の状態に戻
り、演算履歴メモリ4dの第一項目は第一項目と第二項
目とが演算された演算結果である( ,3)となり、第
二項目は(+,2)となる。
After the operation, the process proceeds to step b6, where the contents of the first item and the second item of the operation history memory 4d and the Y register 4
b, the operator flag 4c and the contents of the X register 4a are exchanged again. As a result, “55.” is set in the Y register 4b, the X register 4a, and the operator flag 4c.
"11." and '+' are stored and the state returns to the initial state, and the first item in the operation history memory 4d is the operation result obtained by operating the first item and the second item ((3), (3)). Two items are (+, 2).

【0060】第二項目の(+,2)は不要であるので、
次にステップb7で演算履歴メモリ4dの3項目目を2
項目目に転送する。同様に各項目を1項目ずつ前に転送
していくと10項目目に1項目分の空き領域が確保でき
る。ステップb8でXレジスタ4aの値、および演算子
フラグ4cを演算履歴メモリ4d内の履歴保持件数4e
に対応する位置に記憶する。すなわち第十項目に(+,
11)を記憶して履歴保持件数4eを+1する。
Since (+, 2) of the second item is unnecessary,
Next, at step b7, the third item of the operation history memory 4d is set to 2
Transfer to item. Similarly, if each item is forwarded one item at a time, a free area for one item can be secured for the tenth item. At step b8, the value of the X register 4a and the operator flag 4c are stored in the operation history memory 4d as the number of history records 4e.
Is stored in the position corresponding to. That is, (+,
11) is stored, and the number of history records 4e is incremented by one.

【0061】このときの演算履歴メモリ4d内部の式
は、図6(B)に示されるように“3+3+4+5+6
+7+8+9+10+11”となり、数値部5cに表示
されている演算の途中経過である66と演算履歴メモリ
4dに記憶されている式との整合性は保たれている。
At this time, the expression in the operation history memory 4d is "3 + 3 + 4 + 5 + 6" as shown in FIG.
+ 7 + 8 + 9 + 10 + 11 ", and the consistency between 66, which is the progress of the calculation displayed in the numerical value part 5c, and the formula stored in the calculation history memory 4d is maintained.

【0062】また、第二実施形態の電子計算機における
[=]キーが押された場合の操作例について図7に示
す。
FIG. 7 shows an operation example when the [=] key is pressed in the computer according to the second embodiment.

【0063】[=]キーが押されると、演算履歴は2項
目作成される。このときの演算履歴処理について以下に
説明する。
When the [=] key is pressed, two items of operation history are created. The calculation history processing at this time will be described below.

【0064】図7(A)の(1)から(4)における演
算履歴処理および操作については図6(A)の(1)か
ら(4)と同様であるので説明は省略する。
The calculation history processing and operations in (1) to (4) in FIG. 7A are the same as those in (1) to (4) in FIG.

【0065】図7(A)の(5)において、[1]
[1]を入力するとXレジスタ4aに11が記憶され、
次に[=]キーを押すと図5のフローチャートにおける
ステップb1において演算履歴処理がスタートする。ス
テップb2では、[=]キーが押されたかどうかを判断す
る。[=]キーが押されることによって、(+,11)お
よび(=,66)の2項目の履歴が作成される。[=]キ
ーが押されたので、ステップb9に進み、現在の履歴保
持件数と[=]キーによって作成される履歴項目数であ
る2項目との合計が10件を越えるか否かの判断を行
う。本操作例では、上記合計が12件であり10件を越
えているのでステップb10に進む。
In (5) of FIG. 7A, [1]
When [1] is input, 11 is stored in the X register 4a,
Next, when the [=] key is pressed, the calculation history processing starts at step b1 in the flowchart of FIG. In step b2, it is determined whether the [=] key has been pressed. By pressing the [=] key, two item histories (+, 11) and (=, 66) are created. Since the [=] key has been pressed, the process proceeds to step b9, where it is determined whether or not the sum of the current number of stored history items and the two history items created by the [=] key exceeds 10 items. Do. In this operation example, since the total is 12 and exceeds 10, the process proceeds to step b10.

【0066】ステップb10では、演算履歴メモリ4d
の第一項目および第二項目の内容とYレジスタ4b、X
レジスタ4aおよび演算子フラグ4cの内容とを交換す
る。すなわち( ,1)および(+,2)とYレジスタ
4b、Xレジスタ4aおよび演算子フラグ4cにそれぞ
れ記憶されている“55.”、“11.”および‘+’
とを交換する。次にステップb11において、Yレジス
タ4bとXレジスタ4aとを演算子フラグ4cに基づい
て演算し、演算結果である3をYレジスタ4bに記憶す
る。
At step b10, the operation history memory 4d
And the contents of the first and second items and the Y register 4b, X
The contents of the register 4a and the operator flag 4c are exchanged. That is, "55.", "11." and "+" stored in (, 1) and (+, 2), Y register 4b, X register 4a and operator flag 4c, respectively.
Exchange with Next, in step b11, the Y register 4b and the X register 4a are operated based on the operator flag 4c, and 3 which is the operation result is stored in the Y register 4b.

【0067】次にステップb12で演算履歴メモリ4d
の最大項目数を越える項目数分の演算が既に実行されて
いるかどうかを判断する。本実施例では最大項目数を越
える項目数は2項目である。まだ1項目分しか演算を実
行していないのでステップb13に進む。ステップb1
3では、演算履歴メモリ4dの項目のうち既に演算に使
用された項目の次の項目である(+,3)をXレジスタ
4aおよび演算子フラグ4cに記憶し、演算を繰返すた
めにステップb11へ戻る。再度ステップb11でYレ
ジスタ4bとXレジスタ4aとを演算子フラグ4cに基
づいて演算し、演算結果である6をYレジスタ4bに記
憶する。
Next, at step b12, the operation history memory 4d
It is determined whether operations for the number of items exceeding the maximum number of items have already been executed. In this embodiment, the number of items exceeding the maximum number of items is two. Since only one item has been calculated, the process proceeds to step b13. Step b1
At 3, the next item (+, 3) of the item in the operation history memory 4d which has already been used for the operation is stored in the X register 4a and the operator flag 4c, and the process returns to step b11 to repeat the operation. Return. In step b11, the Y register 4b and the X register 4a are operated again based on the operator flag 4c, and the operation result 6 is stored in the Y register 4b.

【0068】最大項目数を越える項目数分の演算を実行
したのでステップb14に進み、演算履歴メモリ4dの
第一項目および第二項目の内容ととYレジスタ4b、X
レジスタ4aおよび演算子フラグ4cの内容とを再度交
換する。これによって、Yレジスタ4b、Xレジスタ4
aおよび演算子フラグ4cには、“55.”、“1
1.”および‘+’が記憶されて最初の状態に戻り、演
算履歴メモリ4dの第一項目は第一項目から第三項目ま
でが演算された演算結果である( ,6)となり、第二
項目は(+,3)となる。
Since the operations for the number of items exceeding the maximum number of items have been executed, the process proceeds to step b14, where the contents of the first item and the second item of the operation history memory 4d and the Y register 4b, X
The contents of the register 4a and the contents of the operator flag 4c are exchanged again. Thereby, the Y register 4b, the X register 4
a and the operator flag 4c include "55."
1. "And" + "are stored and the state returns to the initial state. The first item in the operation history memory 4d is the operation result obtained by calculating the first to third items ((6)), and the second item is (+, 3).

【0069】第二項目および第三項目の(+,3)およ
び(+,3)は不要であるので、次にステップb15で
演算履歴メモリ4dの第四項目を第二項目に転送する。
同様に各項目を2項目ずつ前に転送していくと第九項目
および第十項目に2項目分の空き領域が確保できる。ス
テップb16でXレジスタ4aの値、および演算子フラ
グ4cを演算履歴メモリ4d内の履歴保持件数4eに対
応する位置に記憶する。すなわち第九項目に(+,1
1)を記憶して履歴保持件数4eを+1する。ステップ
b17でYレジスタ4bに記憶されている55とXレジ
スタ4aに記憶されている11とを演算子フラグ4cに
基づいて演算を実行し、演算結果である66をXレジス
タ4aに記憶する。
Since (+, 3) and (+, 3) of the second and third items are unnecessary, the fourth item in the operation history memory 4d is transferred to the second item in step b15.
Similarly, if each item is forwarded by two items, a vacant area for two items can be secured in the ninth and tenth items. In step b16, the value of the X register 4a and the operator flag 4c are stored in the operation history memory 4d at a position corresponding to the number of history records 4e. That is, (+, 1)
1) is stored and the number of history records 4e is incremented by one. In step b17, an operation is performed on 55 stored in the Y register 4b and 11 stored in the X register 4a based on the operator flag 4c, and the operation result 66 is stored in the X register 4a.

【0070】次にステップb18において、Xレジスタ
4aに記憶されている演算結果を演算履歴として記憶す
る。[=]キーによる結果の値であるので、演算子欄に
は‘=’を入れる。履歴保持メモリ4d内の履歴保持件
数4eに対応する位置に記憶した後、すなわち第十項目
に(=,66)を記憶した後、演算履歴処理を終了し、
履歴保持件数4eを+1する。これによって(5)に示
すようにカウンタ部5aに保持件数の10が表示され
る。
Next, at step b18, the operation result stored in the X register 4a is stored as an operation history. Since the value is the result of the [=] key, put '=' in the operator column. After storing at the position corresponding to the number of history records 4e in the history storage memory 4d, that is, after storing (=, 66) in the tenth item, the calculation history processing is terminated,
The history holding number 4e is incremented by one. As a result, as shown in (5), 10 of the number of stored items is displayed on the counter section 5a.

【0071】このときの演算履歴メモリ4d内部の式
は、図7(B)に示されるように“6+4+5+6+7
+8+9+10+11=66”となり、数値部5cに表
示されている演算結果である66と演算履歴メモリ4d
に記憶されている式との整合性は保たれている。
At this time, the expression inside the operation history memory 4d is "6 + 4 + 5 + 6 + 7" as shown in FIG.
+ 8 + 9 + 10 + 11 = 66 ", which is the calculation result 66 displayed in the numerical value part 5c and the calculation history memory 4d.
Is kept consistent with the formula stored in.

【0072】図8は本発明の第三実施形態の電子計算機
における演算履歴処理のフローチャートを示す図であ
る。
FIG. 8 is a diagram showing a flowchart of the operation history processing in the computer according to the third embodiment of the present invention.

【0073】本第三実施形態の電子計算機のブロック図
については図1と同様である。また、演算履歴開始位置
ワーク4fは、本第三実施形態において使用され、演算
履歴メモリ4d内における履歴の開始位置が格納されて
いる。
The block diagram of the computer according to the third embodiment is the same as that of FIG. The calculation history start position work 4f is used in the third embodiment, and stores the history start position in the calculation history memory 4d.

【0074】演算子キーなどのキーの処理で演算履歴を
記憶するときにこの処理が実施される。また、第三実施
形態の電子計算機における操作例について図9に示す。
This processing is performed when the operation history is stored by processing keys such as operator keys. FIG. 9 shows an operation example of the computer according to the third embodiment.

【0075】操作については、図6(A)と同様であり
空き領域を確保するときの内部動作のみが第二実施形態
と異なるので、異なる動作である図8のステップc6お
よびステップc7について説明する。
The operation is the same as that of FIG. 6A, and only the internal operation for securing a free area is different from that of the second embodiment. Therefore, the different operation, step c6 and step c7 of FIG. 8, will be described. .

【0076】ステップc5でYレジスタ4bとXレジス
タ4aとを演算子フラグ4cに基づいて演算し、演算結
果をYレジスタ4bに記憶する。これによって演算履歴
メモリ4dに記憶されていた最初の2項目が演算される
こととなる。
At step c5, the Y register 4b and the X register 4a are operated based on the operator flag 4c, and the operation result is stored in the Y register 4b. As a result, the first two items stored in the calculation history memory 4d are calculated.

【0077】ステップc6に進み、演算履歴メモリ4d
の第一項目および第二項目の内容とYレジスタ4b、演
算子フラグ4cおよびXレジスタ4aの内容とを再度交
換する。このときYレジスタ4bに記憶されている値は
第二項目に、演算子フラグ4cおよびXレジスタ4aに
記憶されている値は第一項目に記憶し、第一項目に記憶
されている値をYレジスタ4bに、第二項目に記憶され
ている値を演算子フラグ4cおよびXレジスタ4aに記
憶させる。これによって、Yレジスタ4b、Xレジスタ
4aおよび演算子フラグ4cには、“55.”、“1
1.”および‘+’が記憶されて最初の状態に戻り、演
算履歴メモリ4dの第一項目は(+,2)となり、第二
項目は第一項目と第二項目とが演算された演算結果であ
る( ,3)となる。
Proceeding to step c6, the operation history memory 4d
And the contents of the first and second items are exchanged again with the contents of the Y register 4b, the operator flag 4c and the X register 4a. At this time, the value stored in the Y register 4b is stored in the second item, the values stored in the operator flag 4c and the X register 4a are stored in the first item, and the value stored in the first item is stored in the Y item. The value stored in the second item is stored in the register 4b in the operator flag 4c and the X register 4a. As a result, “55.” and “1” are stored in the Y register 4b, the X register 4a, and the operator flag 4c.
1. "And '+' are stored and the state returns to the initial state. The first item in the operation history memory 4d is (+, 2), and the second item is the operation result obtained by operating the first item and the second item. There is (, 3).

【0078】次にステップc7では、履歴開始位置4f
を後ろにずらして前側に空き領域をつくるために、演算
履歴メモリ4dの履歴開始位置4fに最大項目数を越え
る項目数を加算して新たな履歴開始位置4fを設定す
る。本操作例では最大項目数を越える項目数は1項目な
ので第二項目が新たな第一項目として設定される。演算
履歴メモリ4dの記憶形式をリングバッファ形式とする
と、履歴開始位置4fの変更により最初に第一項目であ
った位置が空き領域となり、ステップc8においてXレ
ジスタ4aおよび演算子フラグ4cに記憶されている値
をその位置に記憶させる。
Next, at step c7, the history start position 4f
In order to create a free space in the front side by shifting to the back, the number of items exceeding the maximum number of items is added to the history start position 4f of the operation history memory 4d to set a new history start position 4f. In this operation example, since the number of items exceeding the maximum number of items is one, the second item is set as a new first item. If the storage format of the operation history memory 4d is a ring buffer format, the position which was the first item first becomes an empty area due to the change of the history start position 4f, and is stored in the X register 4a and the operator flag 4c in step c8. The stored value is stored in that position.

【0079】このときの演算履歴メモリ4d内部の式
は、図9(B)に示されるように“3+3+4+5+6
+7+8+9+10+11”となり、数値部5cに表示
されている演算の途中経過である66と演算履歴メモリ
4dに記憶されている式との整合性は保たれている。
At this time, the expression inside the operation history memory 4d is “3 + 3 + 4 + 5 + 6” as shown in FIG.
+ 7 + 8 + 9 + 10 + 11 ", and the consistency between 66, which is the progress of the calculation displayed in the numerical value part 5c, and the formula stored in the calculation history memory 4d is maintained.

【0080】また、本第三実施形態の電子計算機におけ
る[=]キーが押された場合の操作例について図10に
示す。
FIG. 10 shows an operation example when the [=] key is pressed in the computer according to the third embodiment.

【0081】[=]キーが押されると、演算履歴は2項
目作成される。このときの演算履歴処理について以下に
説明する。
When the [=] key is pressed, two items of operation history are created. The calculation history processing at this time will be described below.

【0082】操作については、図7(A)と同様であり
空き領域を確保するときの内部動作のみが第二実施形態
と異なるので、異なる動作である図8のステップc14
からステップc16について説明する。
The operation is the same as that of FIG. 7A, and only the internal operation for securing an empty area is different from that of the second embodiment.
Step c16 will be described.

【0083】ステップc12で演算履歴メモリ4dの最
大項目数を越える項目数分である2項目分の演算が既に
実行されていると判断されるとステップc14に進み、
Yレジスタ4bに記憶されている演算結果を演算履歴メ
モリ4dの演算の最後に使用された項目である第三項目
の位置に記憶し、ステップc15に進む。
If it is determined in step c12 that the calculation for two items, which is the number of items exceeding the maximum number of items in the operation history memory 4d, has already been executed, the process proceeds to step c14.
The calculation result stored in the Y register 4b is stored in the position of the third item which is the item used last in the calculation in the calculation history memory 4d, and the process proceeds to step c15.

【0084】ステップc15では、演算履歴メモリ4d
の第一項目および第二項目の内容とYレジスタ4b、X
レジスタ4aおよび演算子フラグ4cの内容とを再度交
換する。これによって、Yレジスタ4b、Xレジスタ4
aおよび演算子フラグ4cには、“55.”、“1
1.”および‘+’が記憶されて最初の状態に戻り、演
算履歴メモリ4dの第一項目から第三項目まではそれぞ
れ( ,6)、(+,3)および( ,6)となる。
At step c15, the operation history memory 4d
And the contents of the first and second items and the Y register 4b, X
The contents of the register 4a and the contents of the operator flag 4c are exchanged again. Thereby, the Y register 4b, the X register 4
a and the operator flag 4c include "55."
1. "And '+' are stored and return to the initial state, and the first to third items of the operation history memory 4d are (, 6), (+, 3) and (, 6), respectively.

【0085】次にステップc16では、履歴開始位置4
fを後ろにずらして前側に空き領域をつくるために、演
算履歴メモリ4dの履歴開始位置4fに最大項目数を越
える項目数を加算して新たな履歴開始位置4fを設定す
る。本操作例では最大項目数を越える項目数は2項目な
ので第三項目が新たな第一項目として設定される。演算
履歴メモリ4dの記憶形式をリングバッファ形式とする
と、履歴開始位置4fの変更により最初に第一項目およ
び第二項目であった位置が空き領域となり、ステップc
17においてXレジスタ4aおよび演算子フラグ4cに
記憶されている値をその位置に記憶させる。
Next, at step c16, the history start position 4
In order to create a free space in front by shifting f backward, a new history start position 4f is set by adding the number of items exceeding the maximum number of items to the history start position 4f of the operation history memory 4d. In this operation example, since the number of items exceeding the maximum number of items is two, the third item is set as a new first item. Assuming that the storage format of the operation history memory 4d is a ring buffer format, the position that was the first and second items first becomes an empty area due to the change of the history start position 4f.
At 17, the values stored in the X register 4a and the operator flag 4c are stored at that position.

【0086】このときの演算履歴メモリ4d内部の式
は、図10(B)に示されるように“6+4+5+6+
7+8+9+10+11=66”となり、数値部5cに
表示されている演算結果である66と演算履歴メモリ4
dに記憶されている式との整合性は保たれている。
At this time, the expression in the operation history memory 4d is "6 + 4 + 5 + 6 +" as shown in FIG.
7 + 8 + 9 + 10 + 11 = 66 ", and the calculation result 66 displayed in the numerical value part 5c and the calculation history memory 4
Consistency with the expression stored in d is maintained.

【0087】[0087]

【発明の効果】以上のように本発明によれば、演算子の
入力によって、予め履歴保持可能な最大項目数を越える
ことを判断し、新たに作り出された項目を記憶するため
の空き領域を演算履歴記憶手段に確保することができる
ので、最大項目数を越えた入力があっても、演算結果と
履歴との整合性を有する演算履歴の記憶および表示が可
能である。
As described above, according to the present invention, it is determined that the maximum number of items that can be stored in the history is exceeded by inputting an operator, and a free area for storing a newly created item is determined. Since the calculation history can be secured in the calculation history storage unit, even if there is an input exceeding the maximum number of items, it is possible to store and display a calculation history having consistency between the calculation result and the history.

【0088】また本発明によれば、演算子の入力によっ
て、2項目以上の履歴項目が作り出される場合でも、予
め履歴保持可能な最大項目数を越えることを判断し、必
要な空き領域を作るための演算を連続して実行するた
め、演算結果と履歴との整合性を有する演算履歴の記憶
および表示が可能である。
According to the present invention, even when two or more history items are created by inputting an operator, it is determined in advance that the number of history items exceeds the maximum number of items that can be held, and a necessary empty area is created. , The operation history can be stored and displayed with consistency between the operation result and the history.

【0089】また本発明によれば、演算履歴記憶手段内
において第一項目の記憶位置を設定することによって空
き領域を確保できるので、空き領域を確保する際に、各
項目を転送する必要が無く処理時間を短くすることがで
きる。
Further, according to the present invention, an empty area can be secured by setting the storage position of the first item in the operation history storage means, so that it is not necessary to transfer each item when securing the empty area. Processing time can be shortened.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第一実施形態である電子計算機1の電
気的構成を示すブロック図である。
FIG. 1 is a block diagram illustrating an electrical configuration of a computer 1 according to a first embodiment of the present invention.

【図2】第一実施形態の電子計算機における演算履歴処
理のフローチャートを示す図である。
FIG. 2 is a diagram showing a flowchart of an operation history process in the electronic computer of the first embodiment.

【図3】第一実施形態の電子計算機における操作例を示
す図である。
FIG. 3 is a diagram illustrating an operation example in the computer according to the first embodiment.

【図4】第一実施形態の電子計算機における[=]キーが
押された場合の操作例を示す図である。
FIG. 4 is a diagram illustrating an operation example when the [=] key is pressed in the computer according to the first embodiment.

【図5】本発明の第二実施形態の電子計算機における演
算履歴処理のフローチャートを示す図である。
FIG. 5 is a diagram showing a flowchart of an operation history process in the computer according to the second embodiment of the present invention.

【図6】第二実施形態の電子計算機における操作例を示
す図である。
FIG. 6 is a diagram illustrating an operation example in the computer according to the second embodiment.

【図7】第二実施形態の電子計算機における[=]キーが
押された場合の操作例を示す図である。
FIG. 7 is a diagram illustrating an operation example when the [=] key is pressed in the computer according to the second embodiment.

【図8】本発明の第三実施形態の電子計算機における演
算履歴処理のフローチャートを示す図である。
FIG. 8 is a diagram showing a flowchart of an operation history process in the computer according to the third embodiment of the present invention.

【図9】第三実施形態の電子計算機における操作例を示
す図である。
FIG. 9 is a diagram illustrating an operation example in the computer according to the third embodiment.

【図10】第三実施形態の電子計算機における[=]キー
が押された場合の操作例を示す図である。
FIG. 10 is a diagram illustrating an operation example when the [=] key is pressed in the computer according to the third embodiment.

【図11】従来技術の電子計算機の操作例を示す図であ
る。
FIG. 11 is a diagram showing an operation example of a conventional computer.

【符号の説明】[Explanation of symbols]

1 電子計算機 2 CPU(中央演算処理装置) 3 ROM(リードオンリメモリ) 4 RAM(ランダムアクセスメモリ) 4a Xレジスタ 4b Yレジスタ 4c 演算子フラグ 4d 演算履歴メモリ 4e 履歴保持件数ワーク 4f 履歴開始位置ワーク Reference Signs List 1 electronic computer 2 CPU (central processing unit) 3 ROM (read only memory) 4 RAM (random access memory) 4a X register 4b Y register 4c operator flag 4d operation history memory 4e history holding number work 4f history start position work

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 入力数値が書き込まれる入力数値記憶手
段と、 入力された演算子が書き込まれる演算子記憶手段と、 演算結果の値が書き込まれる演算結果記憶手段と、 入力数値と演算子とを一項目とし、各項目を所定の履歴
項目開始位置から入力順に予め設定された最大項目数ま
で格納可能な演算履歴記憶手段とを有し、 演算子が入力されると、演算子を演算子記憶手段に書き
込み、入力数値記憶手段に記憶された値および入力され
た演算子を演算履歴記憶手段に格納するとともに、演算
結果記憶手段の値と入力数値記憶手段の値とを、入力さ
れた演算子に基づいて演算し、演算結果を演算結果記憶
手段に書き込むように処理する電子計算機用プログラム
を記憶する記憶媒体において、 演算履歴記憶手段に最大項目まで演算履歴が格納された
状態で、演算子の入力があったとき、前記電子計算機用
プログラムは、演算履歴記憶手段に記憶されている全項
目を消去し、入力数値記憶手段、演算子記憶手段および
演算結果記憶手段に記憶されている入力数値、演算子お
よび演算結果を演算履歴記憶手段に記憶することを特徴
とする記憶媒体。
1. An input numerical value storage means in which an input numerical value is written, an operator storage means in which an input operator is written, an operation result storage means in which an operation result value is written, and an input numerical value and an operator. Operation history storage means for storing each item from a predetermined history item start position to a preset maximum number of items in the order of input, and when an operator is input, the operator is stored as an operator Means, the value stored in the input numerical value storage means and the input operator are stored in the operation history storage means, and the value of the operation result storage means and the value of the input numerical value storage means are stored in the input operator. In a storage medium for storing a computer program for processing so as to write the calculation result into the calculation result storage means, the calculation history is stored up to the maximum item in the calculation history storage means. In this state, when an operator is input, the computer program deletes all the items stored in the operation history storage unit and stores them in the input numerical value storage unit, the operator storage unit, and the operation result storage unit. A storage medium for storing the input numerical value, the operator, and the calculation result in a calculation history storage unit.
【請求項2】 2項目以上の項目を作り出す演算子の入
力によって、演算履歴記憶手段に格納される項目数が最
大項目数を越えると判断したとき、前記電子計算機用プ
ログラムは、予め演算履歴記憶手段に格納されている全
項目を消去し、入力数値記憶手段、演算子記憶手段およ
び演算結果記憶手段に記憶されている入力数値、演算子
および演算結果を演算履歴記憶手段に格納することを特
徴とする請求項1記載の記憶媒体。
2. When the number of items stored in the operation history storage means is determined to exceed the maximum number of items by the input of an operator for creating two or more items, the computer program preliminarily calculates the operation history. All the items stored in the means are deleted, and the input numerical value, the operator and the operation result stored in the input numerical value storage means, the operator storage means and the operation result storage means are stored in the operation history storage means. The storage medium according to claim 1, wherein
【請求項3】 入力数値が書き込まれる入力数値記憶手
段と、 入力された演算子が書き込まれる演算子記憶手段と、 演算結果の値が書き込まれる演算結果記憶手段と、 入力数値と演算子とを一項目とし、各項目を所定の履歴
項目開始位置から入力順に予め設定された最大項目数ま
で格納可能な演算履歴記憶手段とを有し、 演算子が入力されると、演算子を演算子記憶手段に書き
込み、入力数値記憶手段に記憶される値および入力され
た演算子を演算履歴記憶手段に格納するとともに、演算
結果記憶手段の値と入力数値記憶手段の値とを、入力さ
れた演算子に基づいて演算し、演算結果を演算結果記憶
手段に書き込むように処理する電子計算機用プログラム
を記憶する記憶媒体において、 演算履歴記憶手段に最大項目まで演算履歴が格納された
状態で、演算子の入力があったとき、前記電子計算機用
プログラムは、演算履歴記憶手段に格納されている第一
項目および第二項目に基づいた演算を実行して第一項目
にまとめ、以降に格納される各項目を一つずつ前の項に
転送することによって、演算履歴記憶手段の最後の項に
空きをつくり、そこに前記入力によって生じた項目を格
納することを特徴とする記憶媒体。
3. An input numerical value storage means in which an input numerical value is written, an operator storage means in which an input operator is written, an operation result storage means in which an operation result value is written, and an input numerical value and an operator. Operation history storage means for storing each item from a predetermined history item start position to a preset maximum number of items in the order of input, and when an operator is input, the operator is stored as an operator Means, the value stored in the input numerical value storage means and the input operator are stored in the operation history storage means, and the value of the operation result storage means and the value of the input numerical value storage means are stored in the input operator. In a storage medium for storing a computer program for processing so as to write the calculation result into the calculation result storage means, the calculation history is stored up to the maximum item in the calculation history storage means. In this state, when there is an input of an operator, the computer program executes an operation based on the first item and the second item stored in the operation history storage means and summarizes the first item. A space in the last item of the operation history storage means by transferring each item stored in the item to the previous item, and storing the item generated by the input there. .
【請求項4】 2項目以上の項目を作り出す演算子の入
力によって、演算履歴記憶手段に格納される項目数が最
大項目数を越えると判断したとき、前記電子計算機用プ
ログラムは、演算履歴記憶手段に格納されている項目の
うち、前記入力によって最大項目数を越える項目数分の
演算を第一項目から実行して第一項目にまとめ、以降に
格納される各項目を最大項目数を越える項目数分ずつ前
に転送することによって、演算履歴記憶手段の最後に、
最大項目数を越える項目数分の空きをつくり、そこに前
記入力によって生じた項目を格納することを特徴とする
請求項3記載の記憶媒体。
4. When the number of items stored in the operation history storage means is determined to exceed the maximum number of items by input of an operator for creating two or more items, the computer program stores the operation history storage means. Among the items stored in the first item, the operations for the number of items exceeding the maximum number of items by the input are executed from the first item, and the items are stored in the first item, and the items stored thereafter are items exceeding the maximum number of items. By transferring several minutes before, at the end of the operation history storage means,
4. The storage medium according to claim 3, wherein a space for the number of items exceeding the maximum number of items is created, and the items generated by the input are stored therein.
【請求項5】 入力数値が書き込まれる入力数値記憶手
段と、 入力された演算子が書き込まれる演算子記憶手段と、 演算結果の値が書き込まれる演算結果記憶手段と、 入力数値と演算子とを一項目とし、各項目を所定の履歴
項目開始位置から入力順に予め設定された最大項目数ま
で格納可能な演算履歴記憶手段とを有し、 演算子が入力されると、演算子を演算子記憶手段に書き
込み、入力数値記憶手段に記憶される値および入力され
た演算子を演算履歴記憶手段に格納するとともに、演算
結果記憶手段の値と入力数値記憶手段の値とを、入力さ
れた演算子に基づいて演算し、演算結果を演算結果記憶
手段に書き込むように処理する電子計算機用プログラム
を記憶する記憶媒体において、 前記電子計算機用プログラムは、演算子の入力によって
演算履歴記憶手段に格納する項目数が、最大項目数を越
えると判断したとき、新たに格納する項目の空きをつく
るために、前記履歴開始位置から1または複数項目の演
算を実行してまとめて一項目とし、これを前記まとめた
複数項目のうち、最後の項目の位置に格納し、この位置
を新たな履歴項目開始位置として設定することを特徴と
する記憶媒体。
5. An input numerical value storage means in which an input numerical value is written, an operator storage means in which an input operator is written, an operation result storage means in which an operation result value is written, and an input numerical value and an operator. Operation history storage means for storing each item from a predetermined history item start position to a preset maximum number of items in the order of input, and when an operator is input, the operator is stored as an operator Means, the value stored in the input numerical value storage means and the input operator are stored in the operation history storage means, and the value of the operation result storage means and the value of the input numerical value storage means are stored in the input operator. The computer-readable storage medium stores a computer program that performs a calculation based on the following formula and writes the calculation result to a calculation result storage unit. When it is determined that the number of items to be stored in the calculation history storage means exceeds the maximum number of items, one or more items of calculation are executed from the history start position to collectively make room for newly stored items. A storage medium wherein one item is stored in a position of a last item of the plurality of items, and this position is set as a new history item start position.
【請求項6】請求項1〜5のいずれか一つの記憶媒体を
搭載したことを特徴とする電子計算機。
6. An electronic computer comprising the storage medium according to claim 1.
JP2000166107A 2000-06-02 2000-06-02 Electronic computer and storage medium Pending JP2001344221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000166107A JP2001344221A (en) 2000-06-02 2000-06-02 Electronic computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000166107A JP2001344221A (en) 2000-06-02 2000-06-02 Electronic computer and storage medium

Publications (1)

Publication Number Publication Date
JP2001344221A true JP2001344221A (en) 2001-12-14

Family

ID=18669479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000166107A Pending JP2001344221A (en) 2000-06-02 2000-06-02 Electronic computer and storage medium

Country Status (1)

Country Link
JP (1) JP2001344221A (en)

Similar Documents

Publication Publication Date Title
US20110113080A1 (en) Electronic calculator and computer-readable medium
JP2001344221A (en) Electronic computer and storage medium
JP3988638B2 (en) Electronic device and program
USRE46215E1 (en) Computing machine with an inequality computation function
JP7416138B2 (en) Calculator, setting support method and program
US11366587B2 (en) Electronic device, electronic device control method, and recording medium
JP2001243421A (en) Character processor and character processing method
JP5315712B2 (en) Electronic device having arithmetic function and arithmetic processing program
JP3786141B2 (en) Electronic computer and verification control method
JP2526181Y2 (en) Small electronic calculator
JP2743838B2 (en) Input device
JPH04280321A (en) Auxiliary screen design device
JP4463318B2 (en) Electronic device, control program, and computer-readable recording medium
JP5028644B2 (en) Electronic computer and computer control program
JP3940771B2 (en) Calculation method that minimizes input and checking
JP2008146532A (en) Mathematical expression processor, and mathematical expression processing program
JPH01130249A (en) Expression arithmetic processor
JP2972570B2 (en) Document creation device
JP2997600B2 (en) Display control device
JP2003150563A (en) Calculator and calculation processing program
JP2006126933A (en) Computer equipped with error announcing function and its method
JPS6332590A (en) Cursor movement system for display device
JPH07110747A (en) Data display method
JPH04160627A (en) Information processor
JPS63269248A (en) Small electronic computer

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050301

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050628