JPH0610435Y2 - Small electronic calculator - Google Patents

Small electronic calculator

Info

Publication number
JPH0610435Y2
JPH0610435Y2 JP8061088U JP8061088U JPH0610435Y2 JP H0610435 Y2 JPH0610435 Y2 JP H0610435Y2 JP 8061088 U JP8061088 U JP 8061088U JP 8061088 U JP8061088 U JP 8061088U JP H0610435 Y2 JPH0610435 Y2 JP H0610435Y2
Authority
JP
Japan
Prior art keywords
register
calculation
unit
integer
small electronic
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 - Lifetime
Application number
JP8061088U
Other languages
Japanese (ja)
Other versions
JPH022754U (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP8061088U priority Critical patent/JPH0610435Y2/en
Publication of JPH022754U publication Critical patent/JPH022754U/ja
Application granted granted Critical
Publication of JPH0610435Y2 publication Critical patent/JPH0610435Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Description

【考案の詳細な説明】 [考案の技術分野] この考案は、xの演算機能を有する小型電子式計算機
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a small electronic computer having an xy calculation function.

[従来技術とその問題点] 従来、小型電子式計算機、例えば電卓でのxの計算
は、全てxのルーチンにしたがって行なうようになっ
ている。このことは、x=10で、y=n(nは整数)
のような簡単な計算の場合もxのルーチンを使用する
ことになるので、このような計算の際にも、演算スピー
ドの向上は期待できなかった。
[Prior Art and its Problems] Conventionally, all calculations of x y in a small electronic computer, for example, a calculator are performed according to a routine of x y . This means that x = 10 and y = n (n is an integer)
Even in the case of such a simple calculation, the xy routine is used, and therefore, the calculation speed could not be improved even in such a calculation.

[考案の目的] この考案は上記事情に鑑みてなされたもので、xの計
算で、x=10、y=n(nは整数)の際の演算スピー
ドの向上を図ることができる小型電式計算機を提供する
ことを目的とする。
[The purpose of invention] This invention has been made in view of the above circumstances, the computation of x y, (n is an integer) x = 10, y = n compact electrostatic capable of improving the operational speed during The purpose is to provide a formula calculator.

[考案の要点] この考案は、xの計算において、xが10または−1
0と判断すると、yが整数かを判断するとともに、yの
偶数、奇数を判別し、xが10でyが整数の場合と、x
が−10でyが偶数の場合に解の仮数部を「1」、指数
部をyの値とし、xが−10でyが奇数の場合に解の仮
数部を「−1」、指数部をyの値とするようになってい
る。
[Points of Invention] In this invention, x is 10 or -1 in the calculation of xy.
If 0 is determined, it is determined whether y is an integer and whether y is an even number or an odd number. If x is 10 and y is an integer,
Is -10 and y is an even number, the mantissa part of the solution is "1", the exponent part is the value of y, and when x is -10 and y is an odd number, the mantissa part of the solution is "-1", the exponent part Is set as the value of y.

[考案の実施例] 以下、この考案の一実施例を図面にしたがい説明する。[Embodiment of the Invention] An embodiment of the invention will be described below with reference to the drawings.

第1図は同実施例の回路構成を示すものである。図にお
いて、1はキー入力部で、このキー入力部1は、数字キ
ー1a、ファンクションキー1b、「x」キー1c、
「EXE」キー1dを有している。このキー入力部1の
キー入力データは制御部2に送られる。
FIG. 1 shows the circuit configuration of the embodiment. In the figure, reference numeral 1 denotes a key input unit, which includes a numeric key 1a, a function key 1b, an " xy " key 1c,
It has an "EXE" key 1d. The key input data of the key input unit 1 is sent to the control unit 2.

制御部2はROMよりなるもので、予め各回路を制御す
るためのプログラムを記憶している。この場合、制御部
2は演算レジスタ3、R/W制御部4、演算部5、X判
断部6、Y判断部7、10演算部8に制御指令を与え
るようになっている。
The control unit 2 is composed of a ROM and stores a program for controlling each circuit in advance. In this case, the control unit 2 is adapted to give a control command to the arithmetic register 3, R / W control unit 4, operation unit 5, X determination section 6, Y determination section 7,10 y calculation unit 8.

キー入力部1より入力されるxの計算データは、R/
W制御部4を介して式バッファ9に与えられる。また、
式バッファ9の内容は、R/W制御部4を介して演算部
5に送られ、演算レジスタ3に与えられる。この演算レ
ジスタ3は、xが書込まれるXレジスタ31、yが書込
まれるYレジスタ32およびxの演算結果が書込まれ
るZレジスタ33を有している。演算レジスタ3のXレ
ジスタ31の内容はX判断部6に、Yレジスタ32の内
容はY判断部7に与えられる。ここで、X判断部6は、
xが10または−10かを検出し、Y判断部7は、yが
整数かを判断するとともに、偶数、奇数かを判定するも
のである。そして、X判断部6でx=10を検出し、Y
判断部7でyを整数と判断した場合、X判断部6でx=
−10を検出し、Y判断部7でyを偶数と判定した場合
に、10演算部8により演算レジスタ3のZレジスタ
33の仮数部を「1」、指数部をyの値とし、X判断部
6でx=−10を検出し、Y判断部7でyを奇数と判定
した場合に10演算部8により演算レジスタ3のZレ
ジスタ33の仮数部を「−1」、指数部をyの値とする
ようにしている。勿論、X判断部6およびY判断部7に
より上述の条件が判断されない場合は、通常のxの演
算が実行され、その解が演算レジスタ3のZレジスタ3
3に書込まれるようになる。
The calculation data of xy input from the key input unit 1 is R /
It is given to the expression buffer 9 via the W control unit 4. Also,
The contents of the expression buffer 9 are sent to the calculation unit 5 via the R / W control unit 4 and given to the calculation register 3. The operation register 3 has an X register 31 in which x is written, a Y register 32 in which y is written, and a Z register 33 in which the operation result of x y is written. The contents of the X register 31 of the operation register 3 are given to the X judging unit 6, and the contents of the Y register 32 are given to the Y judging unit 7. Here, the X determination unit 6
Detecting whether x is 10 or -10, the Y determination unit 7 determines whether y is an integer and whether it is an even number or an odd number. Then, the X determination unit 6 detects x = 10, and Y
When y is determined to be an integer by the determination unit 7, x = x is determined by the X determination unit 6.
When −10 is detected and the Y determination unit 7 determines that y is an even number, the 10 y calculation unit 8 sets the mantissa part of the Z register 33 of the calculation register 3 to “1”, the exponent part to the value of y, and X When the determination unit 6 detects x = -10 and the Y determination unit 7 determines that y is an odd number, the 10 y operation unit 8 causes the mantissa part of the Z register 33 of the operation register 3 to be “−1” and the exponent part to be The value of y is set. Of course, when the above-mentioned conditions are not judged by the X judgment unit 6 and the Y judgment unit 7, the usual calculation of xy is executed, and the solution is the Z register 3 of the calculation register 3.
Will be written in 3.

なお、10は表示部で、式バッファ9および演算レジス
タ3の内容を表示するようにしている。
The display unit 10 displays the contents of the expression buffer 9 and the operation register 3.

次に、このように構成した実施例の動作を説明する。Next, the operation of the embodiment thus configured will be described.

いま、キー入力部1より数字キー1aおよび「x」キ
ー1cを用いて「A」「x」「B」の式データを入力
すると、この入力データは、R/W制御部4を介して式
バッファ9に書込まれ、表示部10に表示される。この
状態で、「EXE」キー1dを操作すると、式バッファ
9の内容は、R/W制御部4を介して演算部5に読出さ
れ、第2図に示すフローチャートが実行される。ここ
で、xの演算であれば、ステップA1でYESとなり
ステップA2に進む。なお、ステップA1でNOと判断
された場合は、他の演算が実行される。
Now, when the formula data of “A”, “x y ”, and “B” is input from the key input unit 1 by using the numeric keys 1a and the “x y ” key 1c, the input data is transmitted via the R / W control unit 4. Is written in the expression buffer 9 and displayed on the display unit 10. When the "EXE" key 1d is operated in this state, the contents of the expression buffer 9 are read out to the calculation section 5 via the R / W control section 4, and the flow chart shown in FIG. 2 is executed. Here, if it is the calculation of xy , YES is determined in step A1, and the process proceeds to step A2. If NO is determined in step A1, another calculation is executed.

ステップA2では、xの入力値「A」が演算レジスタ3
のXレジスタ31に、yの入力値「B」が演算レジスタ
3のYレジスタ32に書込まれる。そして、ステップA
3でX判断部6により、Xレジスタ31のxが10かを
判断し、ステップA4でY判断部7により、Yレジスタ
32のyが整数かを判断する。ここで、ステップA3、
ステップA4の少なくとも一方でNOを判断すると、ス
テップA5に進み、通常のxの演算が行なわれ、この
結果が演算レジスタ3のZレジスタ33に書込まれ、処
理を終了する。また、ステップA3、ステップA4のい
ずれもがYESを判断すると、ステップA6に進み、Y
レジスタ32のyが演算範囲内かを判断する。ここで、
NOならばエラー処理となる。一方、YESならばステ
ップA7に進み、10演算部8により演算レジスタ3
のZレジスタ33の仮数部に「1」を書込む。
In step A2, the input value "A" of x is calculated in the arithmetic register 3
The input value “B” of y is written in the X register 31 of the Y register 32 of the arithmetic register 3. And step A
In step 3, the X determination unit 6 determines whether x in the X register 31 is 10, and in step A4, the Y determination unit 7 determines whether y in the Y register 32 is an integer. Here, step A3,
If NO is determined in at least one of the steps A4, the process proceeds to step A5, the usual operation of xy is performed, the result is written in the Z register 33 of the operation register 3, and the process ends. When YES is determined in both step A3 and step A4, the process proceeds to step A6 and Y
It is determined whether y of the register 32 is within the calculation range. here,
If NO, error processing is performed. On the other hand, if YES, the process proceeds to step A7, where the 10 y calculation unit 8 calculates the calculation register 3
"1" is written in the mantissa part of the Z register 33 of.

次いで、ステップA8でX判断部6により、Xレジスタ
31のxが負け符号があるかを判断する。ここで、Xが
正でNOを判断すると、ステップA10に進み、10
演算部8により演算レジスタ3のZレジスタ33の指数
部に「y」を書込み、処理を終了する。一方、ステップ
A8においてxが負でYESを判断すると、ステップA
9に進み、Y判断部7により、Yレジスタ32のyが偶
数かを判定する。ここで、yが偶数で、ステップA9で
YESを判断すると、ステップA10に進み、10
算部8により演算レジスタ3のZレジスタ33の指数部
に「y」を書込み、処理を終了する。また、ステップA
9でYレジスタ32のyを奇数と判定し、NOの場合
は、ステップA11に進む。ステップA11では、10
演算部8により演算レジスタ3のZレジスタ33の仮
数部に「−1」を書込み、次いでステップA10で演算
レジスタ3のZレジスタ33の指数部に「y」を書込
み、処理を終了する。
Next, in step A8, the X determination unit 6 determines whether x in the X register 31 has a losing sign. Here, when X is positive and NO is determined, the process proceeds to step A10 and 10 y
The operation unit 8 writes “y” in the exponent part of the Z register 33 of the operation register 3, and the processing is ended. On the other hand, if x is negative and YES is determined in step A8, step A
In step 9, the Y determination unit 7 determines whether y in the Y register 32 is an even number. Here, if y is an even number and YES is determined in step A9, the process proceeds to step A10, in which the 10 y operation unit 8 writes “y” in the exponent part of the Z register 33 of the operation register 3, and the process ends. Also, step A
In 9 it is determined that y in the Y register 32 is an odd number, and if NO, the process proceeds to step A11. In step A11, 10
The y operation unit 8 writes "-1" to the mantissa part of the Z register 33 of the operation register 3, and then writes "y" to the exponent part of the Z register 33 of the operation register 3 to finish the process.

したがって、このようにすれば、xの計算でx=1
0、y=n(nは整数)の場合、従来からのxのルー
チンに代って、xが10でyが整数の場合と、xが−1
0でyが偶数の場合に解の仮数部を「1」、指数部をy
の値とし、xが−10でyが奇数の場合に解の仮数部を
「−1」、指数部をyの値とするような特殊処理を実行
てきるようにしたので、このような簡単な計算のための
ステップを極力少なくでき、これにより演算スピードの
向上を図ることができる。
Therefore, in this way, in the calculation of x y , x = 1
0, y = n (n is an integer), instead of the conventional x y routine, x is 10 and y is an integer, and x is −1.
If 0 and y is an even number, the mantissa part of the solution is "1", and the exponent part is y.
Since x is -10 and y is an odd number, special processing is performed such that the mantissa part of the solution is "-1" and the exponent part is the value of y. The number of steps for accurate calculation can be minimized, and the calculation speed can be improved.

[考案の効果] この考案によれば、xの計算に際して、xが10また
は−10と判断すると、yが整数かを判断するととも
に、yの偶数、奇数を判別し、xが10でyが整数の場
合と、xが−10でyが偶数の場合に解の仮数部を
「1」、指数部をyの値とし、xが−10でyが奇数の
場合に解の仮数部を「−1」、指数部をyの値とするよ
うにしたので、xの計算で、x=10、y=n(nは
整数)の際の演算スピードを向上させることができる。
[Advantage of the Invention] According to the present invention, when x is determined to be 10 or −10 in the calculation of xy , it is determined whether y is an integer and whether y is an even number or an odd number. Is an integer, or x is -10 and y is an even number, the mantissa part of the solution is "1", the exponent part is the value of y, and when x is -10 and y is an odd number, the mantissa part of the solution is "-1", since the exponent was set as the value of y, the calculation of x y, x = 10, y = n (n is an integer) can improve the calculation speed during.

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

第1図はこの考案の一実施例の回路構成を示すブロック
図、第2図は同実施例の動作を説明するためのフローチ
ャートである。 1…キー入力部、1a…数字キー、1b…ファンクショ
ンキー、1c…「x」キー、1d…「EXE」キー、
2…制御部、3…演算レジスタ、31…Xレジスタ、3
2…Yレジスタ、33…Zレジスタ、5…演算部、6…
X判断部、7…Y判断部、8…10演算部、9…式バ
ッファ、10…表示部。
FIG. 1 is a block diagram showing the circuit configuration of an embodiment of the present invention, and FIG. 2 is a flow chart for explaining the operation of the embodiment. 1 ... Key input part, 1a ... Numerical key, 1b ... Function key, 1c ... " xy " key, 1d ... "EXE" key,
2 ... Control unit, 3 ... Operation register, 31 ... X register, 3
2 ... Y register, 33 ... Z register, 5 ... Arithmetic unit, 6 ...
X determination unit, 7 ... Y determination unit, 8 ... 10 y calculation unit, 9 ... Expression buffer, 10 ... Display unit.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】xの演算機能を有する小型電子式計算機
において、xが10または−10であるかを検出する検
出手段と、yが整数であるかを判断する判断手段と、y
の偶数、奇数を判別する判別手段と、xが10でyが整
数の場合とxが−10でyが偶数の場合に解の仮数部を
「1」,指数部をyの値としxが−10でyが奇数の場
合に解の仮数部を「−1」,指数部をyの値にする演算
手段とを具備したことを特徴とする小型電子式計算機。
1. A small electronic computer having an arithmetic function of x y , a detecting means for detecting whether x is 10 or −10, a determining means for determining whether y is an integer, and y.
Discriminating means for discriminating even and odd numbers of x, and when x is 10 and y is an integer, and when x is -10 and y is an even number, the mantissa part of the solution is "1", the exponent part is the value of y, and x is A small electronic calculator comprising: a calculation unit for setting a mantissa part of a solution to "-1" and an exponent part to a value of y when -10 is an odd number.
JP8061088U 1988-06-20 1988-06-20 Small electronic calculator Expired - Lifetime JPH0610435Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8061088U JPH0610435Y2 (en) 1988-06-20 1988-06-20 Small electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8061088U JPH0610435Y2 (en) 1988-06-20 1988-06-20 Small electronic calculator

Publications (2)

Publication Number Publication Date
JPH022754U JPH022754U (en) 1990-01-10
JPH0610435Y2 true JPH0610435Y2 (en) 1994-03-16

Family

ID=31305432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8061088U Expired - Lifetime JPH0610435Y2 (en) 1988-06-20 1988-06-20 Small electronic calculator

Country Status (1)

Country Link
JP (1) JPH0610435Y2 (en)

Also Published As

Publication number Publication date
JPH022754U (en) 1990-01-10

Similar Documents

Publication Publication Date Title
JPH0228830A (en) Integer number dividing circuit
JPH0610435Y2 (en) Small electronic calculator
JPH0371329A (en) Arithmetic control circuit for arithmetic and logicical operation processor
JPS5825287B2 (en) Niyuuriyokuhoushiki
GB2064838A (en) Electronic apparatus with audio output
JP3149862B2 (en) Electronic musical instrument
JP3945122B2 (en) Display control apparatus and storage medium storing display control processing program
JP2560344Y2 (en) Small electronic calculator
JPS5882296A (en) Dot matrix display system
JP3498323B2 (en) Electronic calculator and arithmetic processing method
JPS5839347A (en) Processor
JP3110072B2 (en) Pre-normalization circuit
JPS6132428Y2 (en)
JPS60243762A (en) Data input system
JPS6225208B2 (en)
JP3072942B2 (en) Vehicle operation recording device
JP2899009B2 (en) Information processing device
JPS5940665Y2 (en) Power calculation control device
JPH0383126A (en) Floating-point multiplier
JPH043553B2 (en)
JPS598795B2 (en) Electronics
JPH1011401A (en) Device and method for displaying mathematical expression
JPH0726896U (en) Electronic musical instrument
JPH11316742A (en) Integration execution processing unit/method
JPH023219B2 (en)