JPS592059B2 - calculator - Google Patents

calculator

Info

Publication number
JPS592059B2
JPS592059B2 JP51107142A JP10714276A JPS592059B2 JP S592059 B2 JPS592059 B2 JP S592059B2 JP 51107142 A JP51107142 A JP 51107142A JP 10714276 A JP10714276 A JP 10714276A JP S592059 B2 JPS592059 B2 JP S592059B2
Authority
JP
Japan
Prior art keywords
data
register
calculation
gate
arithmetic control
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
JP51107142A
Other languages
Japanese (ja)
Other versions
JPS5331928A (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.)
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 JP51107142A priority Critical patent/JPS592059B2/en
Publication of JPS5331928A publication Critical patent/JPS5331928A/en
Publication of JPS592059B2 publication Critical patent/JPS592059B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Description

【発明の詳細な説明】 本発明はシグナム( Signam)計算(符号関数計
算)を簡単に実行させ得る計算機を提供するものである
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a computer that can easily perform Signum calculations (sign function calculations).

即ち、演算式の中にはある変数Xの条件(X>0、X:
0、X<0・)によつて演算式が変る場合あり、この様
な変数を使用した計算を実行するにおいて簡単な操作で
その計算の実行を可能にしたものであり、この計算のた
めの特別のキー(「Π口キー)を備えた計算機にある。
In other words, the condition (X>0, X:
0, It is located on a calculator with a special key (the "Π mouth key").

今、例えがf(x)=(−1)nA+(−1)mBの演
算を行う場合にn、mの条件によつて次の4つの演算式
を必要とする。
For example, when performing the calculation f(x)=(-1)nA+(-1)mB, the following four calculation expressions are required depending on the conditions of n and m.

従来、この様な計算を実行させる場合には各変数((−
1)n、(−1)m)の符号によつて4つの演算式を用
意しており、変数部分の解に応じて4つの演算式の一つ
を選択し、そしてその計算の実行を行うものであつた。
Conventionally, when performing such calculations, each variable ((-
1) Four calculation formulas are prepared depending on the sign of n, (-1)m), one of the four calculation formulas is selected depending on the solution of the variable part, and the calculation is executed. It was hot.

即ち、第1図に従来の計算機の動作を示すフローチャー
トを示したものであり、Cは変数部分(−1)nについ
てのジヤツジ、Dは変数部分(−1)mについてのジヤ
ツジである。
That is, FIG. 1 shows a flowchart showing the operation of a conventional computer, where C is the difference for the variable part (-1)n, and D is the difference for the variable part (-1)m.

そしてジヤツジC及びDの符合に応じて4つの演算式の
一つが選択されるものである。この様に従来の計算機に
おいては上記計算例の実行を行わせるに4つの演算式を
用意させる必要があるため、プログラムのステップ数が
増加しまた複雑な計算になるとそのためのプログラムの
ステップ数が膨大となつてしまうものであり、またその
計算操作も面倒であつた。
One of the four arithmetic expressions is selected depending on the sign of the arrows C and D. In this way, in conventional calculators, it is necessary to prepare four arithmetic expressions to execute the above calculation example, so when the number of steps in the program increases and the calculation becomes complex, the number of steps in the program becomes enormous. In addition, the calculation operation was troublesome.

本発明は上記の様な従来欠点に鑑みて特にシダナム計算
に関してその変数部分のデータについての符合のジヤツ
ジを命令させるシグナム・キーを特別に設け、このジヤ
ツジに応答して演算制御部が演算制御信号を出力するこ
とによつて各種演算を実行させ、これによつて操作並び
にプログラム .″ステツプが簡単になるものとしたも
のである。
In view of the above-mentioned conventional drawbacks, the present invention provides a special signum key that commands the matching sign of the data of the variable part regarding the Sydanum calculation, and in response to this judge, the calculation control unit sends the calculation control signal. By outputting , various calculations are executed, and thereby operations and programs can be executed. ``It is designed to simplify the steps.

以下本発明について図のプロツク回路を説明するに、該
実施例では例示的にf(x)−(−1)NA+(−1)
MBの演算について示す。図において、1及び2は演算
用レジスタであり、ノメモリ一から読出されたデータ或
は数値キー等のキー操作により入力されたデータが入力
A或は入力Bから夫々対応するレジスタに導入される。
In the following, the present invention will be described with reference to the block circuit shown in the figure. In this embodiment, f(x)-(-1)NA+(-1)
The calculation of MB will be explained. In the figure, numerals 1 and 2 are registers for calculations, and data read from memory 1 or data input by key operations such as numeric keys are introduced from input A or input B to the corresponding registers, respectively.

この人力Aは演算制御部7からライン51に出力される
制御信号によつてアンドゲート21、オアゲート23を
介してレジスタ1に導入され、該レジスタ1の1Aは符
合桁である。又、入力Bは演算制御部7からライン53
に出力される制御信号によつてアンドゲート24、オア
ゲート26を介してレジスタ2に導入され、該レジスタ
2の2Aは符合桁である。
This human power A is introduced into the register 1 via an AND gate 21 and an OR gate 23 by a control signal output from the arithmetic control section 7 to a line 51, and 1A of the register 1 is a sign digit. Input B is also connected to the line 53 from the arithmetic control section 7.
The signal is input to the register 2 via the AND gate 24 and the OR gate 26 by the control signal output to the register 2, and 2A of the register 2 is the sign digit.

上記演算用レジスタ1,1のデータは演算制御部7から
ライン52に出力される制御信号が導入されたアンドゲ
ート22.25を介する夫々循壌路を構成しており、ま
た演算制御部7からライン56及び57に出力される演
算制御信号によつてゲート29〜34の内の指示された
ゲートを介して加減算器5に導入される。
The data in the arithmetic registers 1 and 1 constitute circulation paths through AND gates 22 and 25 into which the control signal output from the arithmetic control section 7 to the line 52 is introduced, and the data from the arithmetic control section 7 The arithmetic control signals output on lines 56 and 57 lead to the adder/subtractor 5 via the designated gate of gates 29-34.

前記加減算器5はa入力とb入力の加算或はa入力から
b入力の減算を実行するものとなつており、演算制御部
7からライン63に出力される信号;つまり出力017
で加減算器5に加算命令また出力″07で減算命命;に
よつて加算或は減算の指示が行われる。
The adder/subtractor 5 is configured to add the a input and b input or subtract the b input from the a input, and outputs a signal from the arithmetic control section 7 to the line 63; that is, output 017.
An addition or subtraction instruction is given to the adder/subtractor 5 by an addition command and a subtraction command by an output "07."

この加減算器5の出力は1桁バツフア6を通つて演算制
御部7からライン50によつて制御信号が与えられたア
ンドゲート20そしてオアゲート23を介してレジスタ
1に導入される。
The output of the adder/subtractor 5 is introduced into the register 1 via a one-digit buffer 6, an AND gate 20 to which a control signal is applied via a line 50 from the arithmetic control section 7, and an OR gate 23.

3及び4はシグナム(Signam)計算用レジスタで
あり、変数部分についてのデータが該データの記憶され
ている記憶手段から入力C或はDから夫々対応するレジ
スタに導入される。
3 and 4 are signum calculation registers, and data regarding the variable portion is introduced into the corresponding register from the input C or D from the storage means in which the data is stored.

即ち、シグナム計算の命令を行わせる操作キー(D亘田
キー)に関連して記憶手段のデータを指示する操作キー
或はプログラムによる命令に応答して演算制御部7から
ライン54及び55に出力される制御信号によつてアン
ドゲート27,28が制御され、入力Cからのデータは
アンドゲート27を介してレジスタ3に導入され、該レ
ジスタ3の3Aは符合桁となつている。
That is, in response to an instruction from an operation key or program that instructs data in the storage means in conjunction with an operation key (D Watata key) that instructs a signum calculation, the arithmetic control section 7 outputs it to lines 54 and 55. The AND gates 27 and 28 are controlled by the control signal given to the register 3, and the data from the input C is introduced into the register 3 through the AND gate 27, and 3A of the register 3 is a sign digit.

また入力Dからのデータはアンドゲート28を介してレ
ジスタ4に導人され、該レジスタ4の4Aは符合桁とな
つている。上記レジスタ3及び4の符合桁3A及び4A
はデータがマイナス(−)であれば論理7ビが導入され
またプラス(+)であれば論理″0″が導入されるもの
となつており、符合桁3Aからの出力ライン61はアン
ドゲート35に入力されまた符合桁4Aからの出力ライ
ン62はアンドゲート36に入力されている。
Further, data from input D is conducted to register 4 via AND gate 28, and 4A of register 4 is a sign digit. Sign digits 3A and 4A of registers 3 and 4 above
If the data is negative (-), a logic 7 bit is introduced, and if it is positive (+), a logic "0" is introduced, and the output line 61 from the sign digit 3A is an AND gate 35. and output line 62 from sign digit 4A is input to AND gate 36.

このアンドゲート35及び36の他方の入力として演算
制御部7からのライン58,59が接続され、操作キー
(匿亘団・キー)の操作に応答してライン58,59に
出力される。
Lines 58 and 59 from the arithmetic control section 7 are connected as the other inputs of the AND gates 35 and 36, and output is made to the lines 58 and 59 in response to the operation of the operation key.

また、これらのアンドゲート35及び36のゲート出力
はオアゲート37を介してフリツプフロツプ8に導入さ
れる。
Furthermore, the gate outputs of these AND gates 35 and 36 are introduced into the flip-flop 8 via an OR gate 37.

このフリツプフロツプ8は上記したレジスタ3,4の符
合桁がマイナスであればセツトされまたプラスであれば
りセツトされるものとなつている。
This flip-flop 8 is set if the sign digits of the registers 3 and 4 mentioned above are negative, and otherwise set if they are positive.

即ち、レジスタ3の符合桁3Aがマイナスである場合に
出力0ピがライン61からアンドゲート35に導入され
、ライン58に出力があるとアンドゲート35が導通し
て出力71/′がフリツプフロツプ8のセツト側に導入
される。また、符合桁3Aがプラスである場合にライン
61は出力2・02であり、ライン58に出力があつて
もアンドゲート35は非導通となつてゲート出力がなく
、その結果インバータ38を介するフリツプフロツプ8
のりセツト側が出力712となつてりセツトされる。こ
れと同様にレジスタ4の符合桁4Aのマイナス或はプラ
スの状態によつてアンドゲート36が導通、非導通とな
つてマイナス時にフリツプフロツプ8がセツトされまた
プラスの時にフリツプフロツプ8がりセツトされる。こ
のフリツプフロツプ8のセツト出力はライン60から演
算制御部7に導入され、セツト出力〃1!′の時に該演
算制御部7内の内部レジスタに一1が記憶される。
That is, when the sign digit 3A of the register 3 is negative, the output 0 pin is introduced from the line 61 to the AND gate 35, and when there is an output on the line 58, the AND gate 35 becomes conductive and the output 71/' becomes the output of the flip-flop 8. Introduced on the set side. Further, when the sign digit 3A is positive, the line 61 is output 2.02, and even if there is an output on the line 58, the AND gate 35 becomes non-conductive and there is no gate output. 8
The set side becomes the output 712 and is set. Similarly, the AND gate 36 is made conductive or non-conductive depending on the negative or positive state of the sign digit 4A of the register 4, and the flip-flop 8 is set when it is negative and the flip-flop 8 is set when it is positive. The set output of the flip-flop 8 is introduced from the line 60 to the arithmetic control section 7, and the set output 1! 1 is stored in the internal register in the arithmetic control section 7.

またこのセツト出力がIO″の時にはレジスタ3及び4
のデータをライン64,65から演算制御部7に導入さ
せてデータが10Iか否かを判定し、その結果データが
I/0Iである時内部レジスタに10Iを導入し更に〃
olでない時に内部レジスタにII″を導入するものと
なしている。
Also, when this set output is IO'', registers 3 and 4
The data is introduced into the arithmetic control unit 7 from lines 64 and 65, and it is determined whether the data is 10I or not, and when the result is that the data is I/0I, 10I is introduced into the internal register and further.
II'' is introduced into the internal register when it is not ol.

結局、操作キー(区亘団・キー)の操作によつて変数部
分のデータについてその符合及びデータから変数部分の
条件(X〉0,X=0,X〈0)を検出し、その条件が
演算制御部7内に記憶導入されるものとなつている。演
算制御部7はシグナム計算の命令を行わせる操作キー(
区亘\・キー)、数値キー及びその他フアツシヨンキ一
からの入力信号が導入されている。
In the end, by operating the operation keys (Kuwadan/keys), the condition (X>0, X=0, X<0) of the variable part is detected from the sign and data of the variable part data, and the condition is confirmed. It is designed to be stored and introduced into the arithmetic control section 7. The arithmetic control unit 7 uses operation keys (
Input signals from the keyboard, numeric keys, and other fashion keys are introduced.

上記した制御回路の動作について説明するに、演算例の
(−1)n及び(−1)mの変数部分はN,mの変数の
奇偶によつて−1,+1或はOになり、この変数部分の
データを記憶手段に導入させている。そしてシグナム計
算の実行に際し操作キー(SGN・キー)を操作してシ
グナム計算の命令を行い、この操作に関連して変数部分
のデータを指示するキー操作を行う。
To explain the operation of the above-mentioned control circuit, the variable parts of (-1)n and (-1)m in the calculation example become -1, +1 or O depending on whether the variables of N and m are odd or even. The data of the variable part is introduced into the storage means. When executing the signum calculation, an operation key (SGN key) is operated to issue a command for the signum calculation, and in connection with this operation, a key operation is performed to specify the data of the variable part.

即ち、上記(−1)nのデータが記憶手段(メモリー)
Cに導入されまた(−1)mのデータが記憶手段Dに導
入されていたとすると、上記演算例f(x)=(−1)
NA+(−1)MBに関してはSGNTEL閃因m区亘
団m閃とキー操作を行うことによりこのシグナム計算を
実行,するものである。
That is, the above (-1)n data is stored in the storage means (memory).
Suppose that data of (-1)m is introduced into C and also introduced into storage means D, then the above calculation example f(x)=(-1)
As for NA+(-1)MB, this signum calculation is executed by performing key operations such as SGNTEL flash, m ward, and m flash.

このキー操作に関連して順次説明するに、囲・キーの操
作によつて演算制御部7にシグナム計算命令が導入され
その後の団キーによつて記憶手段Cの変数部分(−1)
nのデータが指示され、この命令が演算制御部7に導入
される。
To explain sequentially in relation to this key operation, a signum calculation command is introduced into the arithmetic control unit 7 by the operation of the box key, and the variable part (-1) of the storage means C is input by the subsequent group key.
The data of n is specified, and this instruction is introduced into the arithmetic control section 7.

演算制御部7は上記入力に応答してライン54に信号を
出力させてアンドゲート27を有効とし、入力Cから記
憶手段Cのデータがシグナム計算用レジスタ3に導入さ
れる。そして、その導入されたデータに関する符合が符
合桁3Aに導入され、マイナスでは11″がまたプラス
では″10Iが導入されている。
The arithmetic control section 7 outputs a signal on the line 54 in response to the above input to enable the AND gate 27, and the data in the storage means C is introduced from the input C into the signum calculation register 3. Then, the sign related to the introduced data is introduced into the code digit 3A, and 11'' is introduced for minus and 10I is introduced for plus.

また、[互阻・キーに応答してライン58に信号を出力
させてアンドゲート35を有効となして上記符合桁3A
からの出力がアンドゲート35、オアゲート37を介し
てフリツプフロツプ8に入力され、符合桁3Aがマイナ
スであればセツトされまたプラスであればりセツトされ
る。
In addition, in response to the [mutual block key], a signal is output on the line 58, and the AND gate 35 is enabled, and the above-mentioned code digit 3A is output.
The output from the digit 3A is inputted to the flip-flop 8 via an AND gate 35 and an OR gate 37, and if the sign digit 3A is negative, it is set, and if it is positive, it is set.

このフリツプフロツプ8のセツト出力はライン60から
演算制御部7に導入され、セツト出力が11Iである場
合(符合桁3Aがマイナス)に演算制御部7の内部レジ
スタに7一1″を発生させる。
The set output of the flip-flop 8 is introduced from the line 60 to the arithmetic control unit 7, and when the set output is 11I (sign digit 3A is negative), 7-1'' is generated in the internal register of the arithmetic control unit 7.

また、前記セツト出力がIOIである場合(符合桁3A
がプラス)にシグナム計算用レジスタ3のデータをライ
ン64から演算制御部7に導入させてデータがIOIか
否かを判定させ、データがIOlの時に内部レジスタに
LOIを発生させ又データがIO″でない時に内部レジ
スタに7+11を発生させる。この動作は区亘刈キーに
よる指示に応答して変数部分のデータについての条件(
X>0,X二0,X<O)を検出するものである。
Also, when the set output is IOI (sign digit 3A
is positive), the data in the signum calculation register 3 is introduced from the line 64 to the arithmetic control unit 7 to determine whether the data is IOI, and when the data is IOI, an LOI is generated in the internal register, and when the data is IO'' 7+11 is generated in the internal register when it is not.This operation is performed by setting the condition (
It detects X>0, X20, X<O).

続いて演算指示信号である閃キーと演算レジスタ1に入
力すべきデータAを導入させる囚キーを操作する(囚キ
ーはデータであるので実際には数値キー操作であるが、
今この実施例ではデータが記憶手段Aに導入されていて
因キーによつて記憶手段(メモリー)囚を指定した場合
であり、またBキーについても記憶手段(メモリー)を
指定した場合として示している。
Next, operate the flash key, which is a calculation instruction signal, and the prison key, which introduces data A to be input into calculation register 1 (the prison key is data, so it is actually a numeric key operation,
In this example, data is introduced into storage means A and the storage means (memory) is specified by the cause key, and the storage means (memory) is also specified for the B key. There is.

)。すると演算制御部7からライン51に信号が出力さ
れてアンドゲート21が有効となり、入力Aより記憶手
段Aのデータがアンドゲート21、オアゲート23を介
して演算レジスタ1に導入されると共に上記演算制御部
7の内部レジスタに発生させた検出結果のデータと演算
レジスタ1のデータとの掛算を行わせこの結果が演算レ
ジスタ1に導入される(この掛算を行わせる回路構成部
分については図において特に記載していないが、通常の
掛算操作と同様に行ない得る)。
). Then, a signal is output from the arithmetic control unit 7 to the line 51, and the AND gate 21 becomes valid, and the data in the storage means A is introduced from the input A to the arithmetic register 1 via the AND gate 21 and the OR gate 23, and the above arithmetic control is performed. The data of the detection result generated in the internal register of section 7 is multiplied by the data of calculation register 1, and this result is introduced into calculation register 1. (However, it can be performed just like a normal multiplication operation.)

次に円キー操作によつて加算指示されるが、これを演算
制御部7が記憶する。
Next, an addition instruction is given by operating the Yen key, which is stored in the arithmetic control section 7.

続いて区亘団キーの操作とその後のmキーの操作によつ
て記憶手段Dの変数部分(−1)mについてのデータが
指示され、この命令が演算制御部7に導入される。
Subsequently, data regarding the variable portion (-1) m of the storage means D is specified by operating the group key and then the m key, and this command is introduced into the arithmetic control section 7.

演算制御部7は上記入力に応答してライン55に信号を
出力させてアンドゲート28を有効とし、入力Dから記
憶手段Dのデータがシグナム計算用レジスタ4に導入さ
れる。
The arithmetic control section 7 outputs a signal on the line 55 in response to the above input to enable the AND gate 28, and the data in the storage means D is introduced from the input D into the signum calculation register 4.

そして、その導入されたデータに関する符合が符合桁4
Aに導入される。また、区亘団・キーに応答してライン
59に信号を出力させてアンドゲート36を有効となし
て上記符合桁4Aからの出力がアンドゲート36、オア
ゲート37を介してフリツプフロツプ8に入力され、符
合桁4Aがマイナスであればセツトされまたプラスであ
ればりセツトされる。このフリツプフロツプ8のセツト
出力はライン60から演算制御部7に導入され、上記し
た条件の検出と同様な動作で演算制御部7の内部レジス
タに′1−11,″0″,〃+1〃かが発生される。
Then, the code regarding the introduced data is 4 sign digits.
introduced into A. In addition, in response to the ward key, a signal is outputted to the line 59 to enable the AND gate 36, and the output from the sign digit 4A is inputted to the flip-flop 8 via the AND gate 36 and the OR gate 37. If the sign digit 4A is negative, it is set, and if it is positive, it is set. The set output of the flip-flop 8 is introduced from the line 60 to the arithmetic control unit 7, and '1-11,'0','+1' are stored in the internal register of the arithmetic control unit 7 in the same manner as in the detection of the above-mentioned condition. generated.

つまり、セツト出力が111/であると−1を発生させ
またセツト出力がIOIであるとレジスタ4のデータを
ライン65から演算制御部7に導入してデータが//O
//か否かを判定して70!I/′+11の検出を行う
ものである。続いて演算指数の因キーと演算レジスタ2
に入力すべきデータBを導入させるmキーを操作すると
演算制御部7からライン53に信号が出力されてアンド
ゲート24が有効となり、入力Bより記憶手段Bのデー
タがアンドゲート24、オアゲート26を介して演算レ
ジスタ2に導入されると共に上記演算制御部7の内部レ
ジスタに発生させた検出結果のデータと演算レジスタ1
のデータとの掛算を行わせ、この結果が演算レジスタ1
に導入させる。
In other words, if the set output is 111/, -1 is generated, and if the set output is IOI, the data in register 4 is introduced from line 65 to arithmetic control section 7, and the data is output to //O.
//Determine whether or not and 70! This is to detect I/'+11. Next, the factor key of the arithmetic exponent and the arithmetic register 2
When the m key is operated to introduce data B to be input into the input circuit, a signal is output from the arithmetic control section 7 to the line 53, and the AND gate 24 becomes valid. The data of the detection result generated in the internal register of the arithmetic control section 7 and the arithmetic register 1 are introduced into the arithmetic register 2 via the
This result is stored in calculation register 1.
be introduced.

そして演算制御部7内には円キーによる加算指示命令と
シグナム計算用レジスタ3のデータに関する条件結果と
レジスタ4のデータに関する条件結果が記憶されている
ことから、これらによつてレジスタ1と2に導入された
データについてA+B,A−B,−A+B,−A−B1
の演算の内の一つが選択されることになる。
Since the arithmetic control unit 7 stores an addition instruction command using the Yen key, a condition result regarding the data in the signum calculation register 3, and a condition result regarding the data in the register 4, these are stored in the registers 1 and 2. Regarding the introduced data A+B, A-B, -A+B, -A-B1
One of the operations will be selected.

演算制御部7がA+Bを検出する吉ライン63に信号″
ビを出力して加減算器5に加算命令を指示しまたライン
57に信号を出力させてアンドゲート30,32を有効
となし、レジスタ1のデータをアンドゲート30、オア
ゲート31を介して加減算器5のa側に導入させまたレ
ジスタ2のデータをアンドゲート32、オアゲート34
を介して加減算器5のb側に導入させて加算を行わせる
The arithmetic control unit 7 sends a signal to the Yoshi line 63 where it detects A+B.
It outputs a signal B to instruct the adder/subtractor 5 to add, and outputs a signal to the line 57 to enable the AND gates 30 and 32. The data of register 2 is introduced into the a side of the AND gate 32 and the OR gate 34.
is introduced into the b side of the adder/subtractor 5 through the adder/subtractor 5 to perform addition.

その加算結果はバツフア6そして演算制御部7からライ
ン50に信号が出力されて有効となつているアンドゲー
ト20、オアゲート23を介してレジスタ1に導入され
る。演算制御部7がA−Bと検出するとライン63に信
号IO″を出力して加減算器5に減算命令を指示しまた
上記と同様にアンドゲート30,32を有効となしてレ
ジスタ1のデータを加減算器5のa側にそしてレジスタ
2のデータを加減算器5のb側に導入させ、その結果を
レジスタ1に導入させる。
The result of the addition is input to the register 1 via the AND gate 20 and OR gate 23, which are output as signals from the buffer 6 and the arithmetic control section 7 to the line 50 and are enabled. When the arithmetic control unit 7 detects A-B, it outputs a signal IO'' to the line 63 to instruct the adder/subtractor 5 to perform a subtraction command, and similarly to the above, it enables the AND gates 30 and 32 to read the data in the register 1. The data of register 2 is introduced into the a side of adder/subtractor 5 and the data of register 2 is introduced into the b side of adder/subtractor 5, and the result is introduced into register 1.

演算制御部7が−A+Bを検出するとライン63に信号
IO′5を出力して加減算器5に減算命令を指示しまた
ライン56に信号を出力させてアンドゲート29,33
を有効となし、レジスタ1のデータをアンドゲート38
、オアゲート34を介して加減算器5のb側に導入させ
そしてレジスタ2のデータをアンドゲート29、オアゲ
ート31を介して加減算器5のa側に導入させ、その結
果をレジスタ1に導入させる。
When the arithmetic control unit 7 detects -A+B, it outputs a signal IO'5 to the line 63 to instruct the adder/subtractor 5 to perform a subtraction command, and outputs a signal to the line 56 to output the signal IO'5 to the AND gates 29, 33.
is valid, and the data in register 1 is passed to AND gate 38.
, the data in the register 2 is introduced into the a side of the adder/subtractor 5 via the AND gate 29 and the OR gate 31, and the result is introduced into the register 1.

演算制御7が−A−Bを検出するとライン63に信号″
11を出力して加減算器5に加算命令を指示しまたアン
ドゲート30,32を有効となしてレジスタ1のデータ
を加減算器5のa側にそしてレジスタ2のデータを加減
算器5のb側に導入しその結果をレジスタ1に導入させ
る。
When the arithmetic control 7 detects -A-B, a signal is sent to the line 63.
11 to instruct the adder/subtractor 5 to add an instruction, and enable AND gates 30 and 32 to transfer the data in register 1 to the a side of adder/subtractor 5 and the data in register 2 to the b side of adder/subtractor 5. and cause the result to be introduced into register 1.

以上の様に本発明においては変数部分に関するデータに
ついての条件(X〉0,X:10,X<O)検出を指示
する操作キーと前記キーの指示に応答して前記データの
条件検出を実行する検出手段とその検出結果に応答して
演算制御信号を出力する演算制卸部を有し、その演算制
御部が検出結果に応答して演算制御信号を制御すること
で各種演算を実行させることができ、上記操作キー(区
亘団キー)によつて変数部分の条件が簡単に検出できる
ことからこの操作が極めて簡単になると共に上記実施例
の演算式f(x)=(−1)NA+(−1)MBの場合
にf(x)=SGN.C.X.A+SGN.D.X.B
という演算式を一つ用意させるだけで各種の演算が可能
となりそのためプログラムステツプも極めて簡単にする
ことができるという特徴がある。
As described above, in the present invention, the operation key instructs to detect the condition (X>0, and an arithmetic control unit that outputs an arithmetic control signal in response to the detection result, and the arithmetic control unit controls the arithmetic control signal in response to the detection result to execute various calculations. Since the conditions of the variable part can be easily detected using the above operation keys (ku wadan keys), this operation becomes extremely simple, and the arithmetic expression f(x)=(-1)NA+( -1) f(x)=SGN. C. X. A+SGN. D. X. B
It has the feature that various calculations can be performed by simply preparing one calculation formula, and the program steps can therefore be extremely simplified.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来計算機のシグナム計算におけるフローチヤ
ート、第2図は本発明計算機のシグナム計算の実行を制
御する制御回路を示すプロツク図である。 1及び2:演算用レジスタ、3及び4:シグナム計算用
レジスタ、5:加減算器、7:演算制御部、8:フリツ
プフロツプ。
FIG. 1 is a flowchart for signum calculation by a conventional computer, and FIG. 2 is a block diagram showing a control circuit for controlling execution of signum calculation by the computer of the present invention. 1 and 2: register for calculation, 3 and 4: register for signum calculation, 5: adder/subtractor, 7: calculation control section, 8: flip-flop.

Claims (1)

【特許請求の範囲】[Claims] 1 演算式中のある変数Xの条件(X>0、X=0、X
<0)によつて使用する演算式が異なる様なシグナム計
算の実行において、変数部分に関するデータを記憶する
記憶手段と、その変数部分に関するデータについての条
件(X>0、X=0、X<0)の検出を指示する操作キ
ーと、前記キーの指示に応答して前記データの条件を検
出する検出手段と、前記検出手段の結果に応答して演算
制御信号を出力する演算制御部を有し、この演算制御部
の演算制御信号により変数部分の条件に応じた演算の実
行を行わせることを特徴とする計算機。
1 Conditions for a certain variable X in an arithmetic expression (X>0, X=0,
<0) In executing signum calculations in which the calculation formula used differs depending on 0), a detection means for detecting the condition of the data in response to an instruction from the key, and an arithmetic control section for outputting an arithmetic control signal in response to the result of the detection means. A computer characterized in that the calculation control signal of the calculation control section causes calculations to be executed according to the conditions of the variable part.
JP51107142A 1976-09-06 1976-09-06 calculator Expired JPS592059B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51107142A JPS592059B2 (en) 1976-09-06 1976-09-06 calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51107142A JPS592059B2 (en) 1976-09-06 1976-09-06 calculator

Publications (2)

Publication Number Publication Date
JPS5331928A JPS5331928A (en) 1978-03-25
JPS592059B2 true JPS592059B2 (en) 1984-01-17

Family

ID=14451566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51107142A Expired JPS592059B2 (en) 1976-09-06 1976-09-06 calculator

Country Status (1)

Country Link
JP (1) JPS592059B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62271018A (en) * 1987-01-09 1987-11-25 Casio Comput Co Ltd Arithmetic system

Also Published As

Publication number Publication date
JPS5331928A (en) 1978-03-25

Similar Documents

Publication Publication Date Title
JPS6351287B2 (en)
US4773035A (en) Pipelined data processing system utilizing ideal floating point execution condition detection
JPH0480815A (en) Absolute value computing circuit
JPS6227412B2 (en)
JPS592059B2 (en) calculator
JP2567134B2 (en) Bit field logical operation processing device and monolithic microprocessor having the same
JPS6161416B2 (en)
JPS58205253A (en) Arithmetic device
JPS622328B2 (en)
JPS59184944A (en) Rounding arithmetic system
JPS60237503A (en) High-speed processing system of sequence controller
JP2856452B2 (en) Mask register control method
JPS6146856B2 (en)
SU679986A1 (en) Electronic keyboard computor
JPS6336432A (en) Floating point arithmetic unit
JPS5835660A (en) Microprocessor
JP3110072B2 (en) Pre-normalization circuit
JPH0646387B2 (en) Micro computer
JPS5834852B2 (en) Enzanshiyorihoushiki
JPS6237413B2 (en)
JPH01112429A (en) Microcomputer
JPS61177536A (en) Arithmetic device
JPS60536A (en) Mantissa input control circuit of floating adder
JPH06301521A (en) Device and method for arithmetic processing
JPS60225936A (en) Operation controlling system