JPS62271017A - Addition and subtraction device for decimal number - Google Patents

Addition and subtraction device for decimal number

Info

Publication number
JPS62271017A
JPS62271017A JP11349686A JP11349686A JPS62271017A JP S62271017 A JPS62271017 A JP S62271017A JP 11349686 A JP11349686 A JP 11349686A JP 11349686 A JP11349686 A JP 11349686A JP S62271017 A JPS62271017 A JP S62271017A
Authority
JP
Japan
Prior art keywords
numbers
circuit
operator
addition
code
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
JP11349686A
Other languages
Japanese (ja)
Inventor
Koji Torii
鳥井 浩治
Takeshi Kitahara
北原 毅
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP11349686A priority Critical patent/JPS62271017A/en
Publication of JPS62271017A publication Critical patent/JPS62271017A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the degree of dependence upon software and also to decrease the number of processing steps in order to increase the processing speed of an addition/subtraction device for decimal numbers, by providing a logic arithmetic circuit and using an operator calculated by said arithmetic circuit to perform the operation of absolute values of two numbers. CONSTITUTION:Two numbers are stored in registers 21 and 2$2d respectively and the codes of these numbers are supplied to a logic arithmetic circuit 1 from the digit positions accordant with these code types together with an operator showing the addition or subtraction via code selecting circuits 51 and 52 and code checking circuits 61 and 62. The circuit 1 performs a logic operation to obtain a desired operator from the codes showing the plus and minus of two numbers to undergo operations and said operator. While the absolute value excluding the code parts of those two numbers stored in registers 21 and 22 is sent to a decimal number arithmetic circuit 4. The circuit 4 performs an operation with the operator received from the circuit 1 under the control of an arithmetic indication means 3. If the number (a) obtained by the operation is negative, the obtained plus and minus codes are inverted to obtain a desired arithmetic result.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔概 要〕 十進数の加減算を行うために、加減算される2つの数の
正負を示す符号と加算あるいは減算を示す演算子とから
演算を実行するための演算子を算出する論理演算回路を
設け、この算出された演算子により上記2つの数の絶対
値による演算を行うようにして、処理の簡易化と迅速化
を図った。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Summary] In order to perform addition and subtraction of decimal numbers, an operation is performed using a sign indicating the positive or negative of the two numbers to be added or subtracted and an operator indicating addition or subtraction. A logical operation circuit is provided to calculate an operator for execution, and the calculated operator is used to perform calculations based on the absolute values of the two numbers, thereby simplifying and speeding up the processing.

〔産業上の利用分野〕[Industrial application field]

十進数の加減算の処理を行うプロセッサシステムに適用
される十進数加減算装置に関する。
The present invention relates to a decimal number addition/subtraction device applied to a processor system that performs decimal number addition/subtraction processing.

〔従来の技術〕[Conventional technology]

十進数の加減算を行う従来技術として、次の第1表の第
4欄に示す数式の演算を第5欄の等価な数式の演算に置
き換えて処理する演算処理方法が知られている。
As a conventional technique for adding and subtracting decimal numbers, there is known an arithmetic processing method in which the calculation of the formula shown in the fourth column of Table 1 below is replaced with the calculation of the equivalent formula in the fifth column.

第1表 上表は、第1欄の数aの符号と第2欄の加算あるいは減
算を指定する+あるいは−の演算子と第3欄の数すの符
号との組合わせによる8種の演算を示すもので、第4欄
はこれを数式で示したものである。
The table above shows eight types of operations based on the combination of the sign of the number a in the first column, the + or - operator specifying addition or subtraction in the second column, and the sign of the number in the third column. The fourth column shows this using a mathematical formula.

この第4欄の数式にしたがって演算を行う場合には、例
えば第2段の数式からも明らかなように単純に指定され
た演算子による演算を行うことができず、演算する2つ
の数の符号をそれぞれ識別してから演算を行う必要があ
る。したがって、この演算をプロセ・ノサにより処理す
るには、演算する2つの数の符号を識別するステップと
、これらの符号と指定されている演算子とから実際に処
理するための演算子を求める処理ステップと、演算処理
ステップとの3ステツプが必要となる。
When performing an operation according to the formula in the fourth column, for example, as is clear from the formula in the second column, it is not possible to perform an operation simply using the specified operator, and the sign of the two numbers to be operated cannot be calculated. It is necessary to perform calculations after identifying each. Therefore, in order to process this operation using a processor, there are two steps: identifying the signs of the two numbers to be operated on, and calculating the operator to actually process from these signs and the specified operator. Three steps are required: a step and an arithmetic processing step.

この第4欄の数式を第5欄に示した数式のように変形す
ると、演算すべき2つの数の符号を考慮する必要はなく
この2つの数のそれぞれの絶対値についての演算を行え
ば足りるが、その演算子は第6JI1)の左側に示す演
算子でなければならないので同欄右側に*印で示した4
つの演算については演算子を変更する必要があり、また
、第5段目以下に示した4つの演算の場合、すなわち数
aが負の場合、には得られた演算結果の正負の符号を反
転することが必要であり、ソフトウェアにより処理を行
う場合には上記第4欄の演算をそのまま実行する場合に
比してステ、プ数の大幅な減少を期待することができな
い。
If we transform the formula in the fourth column into the formula shown in the fifth column, there is no need to consider the signs of the two numbers to be calculated, and it is sufficient to perform the calculation on the absolute values of each of these two numbers. However, the operator must be the operator shown on the left side of No. 6 JI1), so the 4 shown with an asterisk on the right side of the same column.
In addition, in the case of the four operations shown in the fifth row and below, that is, when the number a is negative, the sign of the obtained operation result must be reversed. Therefore, if the processing is performed by software, a significant reduction in the number of steps cannot be expected compared to the case where the calculations in the fourth column are directly executed.

従来、十進数の加減算を行う場合には、ソフトウェアに
よって上記のような演算処理を行っていたため、処理の
ステップ数あるいは命令のステップ数が多く、したがっ
てパーソナルコンピュータのような小規模なシステムに
おいては迅速な処理を行うことが困難であった。
Conventionally, when adding or subtracting decimal numbers, the above calculations were performed using software, which required a large number of processing steps or instruction steps, and therefore could not be done quickly in small-scale systems such as personal computers. It was difficult to carry out appropriate treatment.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

本発明は、簡単な論理演算回路を設けることによって、
ソフトウェアへの依存度を少なくするとともに、処理の
ステップ数を減少させることにより十進数の加減算の処
理速度を向上しようとするものである。
The present invention achieves the following by providing a simple logic operation circuit.
This method aims to improve the processing speed of decimal addition and subtraction by reducing the dependence on software and reducing the number of processing steps.

C問題点を解決するための手段〕 第1図は本発明の原理を示すブロック図であって、レジ
スタ21および22に格納された数値aおよびbの正負
を示す符号と加算/減算を示す演算子とから、指定され
た加減算を実行するための演算子を算出する論理演算回
路1と、演算指示手段3の指示によって演算すべき2つ
の数の絶対値と上記論理演算回路からの演算子とにより
演算を行う十進数演算回路4とを設けた。
Means for Solving Problem C] FIG. 1 is a block diagram showing the principle of the present invention, and shows the signs indicating the plus/minus of the numerical values a and b stored in the registers 21 and 22, and the operations indicating addition/subtraction. a logic operation circuit 1 that calculates an operator for executing specified addition/subtraction from the child, and the absolute values of two numbers to be calculated according to instructions from the operation instruction means 3 and the operator from the logic operation circuit. A decimal number arithmetic circuit 4 is provided which performs arithmetic operations.

さらに、本発明の実施態様として、符号形式の異なる数
値を処理するために演算される数の正負を示す符号を選
択して取出す符号選択回路5を設け、また、これら2つ
の数の符号の正当性をチェックするチェック回路6を所
望に応じて付加することができる。
Furthermore, as an embodiment of the present invention, a code selection circuit 5 is provided which selects and extracts a sign indicating the sign of a number to be operated in order to process numerical values having different code formats, A check circuit 6 for checking the accuracy can be added as desired.

また、プロセッサに対して割込みがあった場合に他の記
憶手段にその記憶内容を退避するようにした演算子レジ
スタ7および符号レジスタ8を設け、この演算子レジス
タ7には論理演算回路から得られた演算子をストアし、
符号レジスタ8には演算する2つの数の符号をストアす
るようにすることができる。
In addition, an operator register 7 and a sign register 8 are provided so that when an interrupt occurs to the processor, the stored contents are saved in another storage means. store the operator,
The code register 8 can store the codes of two numbers to be operated.

〔作 用〕[For production]

第1図に示す原理図においては、加減算する2つの数を
それぞれレジスタ21.22にストアしてこれらの数の
符号をその数の符号形式に応じた桁位置から符号選択回
路51.52、符号チェック回路61.62を経て加算
あるいは減算を示す演算子とともに論理演算回路1に供
給し、論理演算回路1は、前記第1表の第1欄ないし第
3欄に示した、演算する2つの数の正負を示す符号と加
算/減算を示す演算子とか4.ら同表第6欄の左側に示
した演算子を得るための□論理演算を行う。
In the principle diagram shown in FIG. 1, two numbers to be added and subtracted are stored in registers 21 and 22, respectively, and the codes of these numbers are selected from the digit positions corresponding to the code format of the numbers by code selection circuits 51 and 52. It is supplied to the logic operation circuit 1 together with an operator indicating addition or subtraction via check circuits 61 and 62, and the logic operation circuit 1 operates on the two numbers to be operated as shown in the first to third columns of Table 1 above. 4. Signs indicating the positive/negative of and operators indicating addition/subtraction. Perform the □ logical operation to obtain the operators shown on the left side of column 6 of the same table.

なお、符号選択回路5および符号チェック回路6は本発
明の必須の構成要件ではなく、実施態様としてのもので
あるからその詳細な説明は後述する。
Note that the code selection circuit 5 and the code check circuit 6 are not essential components of the present invention, but are provided as embodiments, and detailed explanations thereof will be given later.

一方、上記レジスタ21.22にストアされている2つ
の数の正負を示す符号部を除く絶対値は十進数演算回路
4に送られ、演算指示手段3の制御のもとに上記論理演
算回路lからの演算子により演算を行い、演算された数
aが負であればその得られた結果の正負の符号を反転し
て、所要の演算結果を得る。なお、演算された結果の絶
対値のみが必要であれば、この符号の反転を要しないこ
とは明らかであろう。
On the other hand, the absolute values of the two numbers stored in the registers 21 and 22, excluding the sign part indicating the sign, are sent to the decimal arithmetic circuit 4, and are sent to the decimal arithmetic circuit 4 under the control of the arithmetic instruction means 3. Calculations are performed using operators from , and if the calculated number a is negative, the sign of the obtained result is reversed to obtain the desired calculation result. Note that if only the absolute value of the calculated result is required, it is clear that this sign inversion is not required.

この本発明による演算装置によれば、十進数演算回路4
は2つの数の正負と無関係に論理演算回路1からの演算
子による演算を行えばよく、この十進数演算回路に対す
る1種類の演算命令によって加減算処理を実行すること
が出来るので、処理速度が向上し、またプログラムも簡
単になる。
According to the arithmetic device according to the present invention, the decimal number arithmetic circuit 4
The operation can be performed using the operator from the logic operation circuit 1 regardless of whether the two numbers are positive or negative, and addition and subtraction processing can be performed by one type of operation instruction to this decimal number operation circuit, so the processing speed is improved. It also makes programming easier.

本発明の1実施態様として、数を示す符号形式によりそ
の正負の符号の桁位置が相違することに鑑み、レジスタ
などにストアされている数値データの正負を示す桁位置
のデータを選択して取出す符号選択回路51.52を設
けて、2つの数の正、負の符号を選択して論理演算回路
lに供給し得るようにすることができる。すなわち、数
を示す符号形式として、PACK形式あるいはZone
形式などが知られており、第3図に示すように±123
の正負を示す符号はPACK形式では最下位桁に、Zo
ne形式では最下位桁の上位桁にそれぞれ配置されるも
のであり、第1図の原理図では最上位桁あるいは最下位
桁にこの正負を示す符号がストアされる場合について例
示した。
As an embodiment of the present invention, in view of the fact that the digit positions of the positive and negative signs differ depending on the code format indicating the number, data in the digit positions indicating the positive and negative signs of numerical data stored in a register or the like is selected and retrieved. Sign selection circuits 51, 52 can be provided to select the positive and negative signs of the two numbers and supply them to the logical operation circuit l. In other words, the PACK format or Zone code format is used to represent numbers.
The format is known, and as shown in Figure 3, ±123
In the PACK format, the sign indicating the positive or negative of
In the ne format, they are placed in the upper digits of the least significant digit, and the principle diagram of FIG. 1 illustrates a case where a sign indicating the positive/negative is stored in the most significant digit or the least significant digit.

他の実施態様として、上記のようにして読出された符号
あるいは予め定められた桁位置から直接読出された符号
について誤りの存在をチェックするチェック回路61.
62を設けることができ、これにより正を示す符号(i
1)常は、A、C,E、F)および負を示す符号(通常
は、B、D)以外の数あるいは記号などが存在するとき
には、エラー信号をこのチェック回路から送出するよう
にすることができる。
In another embodiment, a check circuit 61 checks for the presence of an error in the code read out as described above or the code read out directly from a predetermined digit position.
62 can be provided, which allows the positive sign (i
1) When there are numbers or symbols other than (usually A, C, E, F) and negative signs (usually B, D), an error signal should be sent from this check circuit. Can be done.

また、別の実施態様として、論理演算回路1に入力され
る2つの数の符号をストアする符号レジスタ81.82
を設けるとともに、プロセッサに割込みがあった場合に
このレジスタの内容を退避するようにし、さらに論理演
算回路1から出力された演算子をストアする演算子レジ
スタ7を設けてこのレジスタの内容もプロセッサに対す
る割込みがあった場合に退避するようにしてお(ことに
より、演算の途中でプロセッサに割込みがあったときに
も誤りな(所要の演算を完了するようにすることができ
る。
Further, as another embodiment, code registers 81 and 82 that store the codes of two numbers input to the logic operation circuit 1
In addition, the contents of this register are saved when the processor is interrupted. Furthermore, an operator register 7 is provided to store the operator output from the logic operation circuit 1, and the contents of this register are also saved to the processor. If there is an interrupt, it is saved (by this, even if the processor is interrupted in the middle of an operation, it is possible to complete the required operation without error).

〔実施例〕〔Example〕

第2図は本発明の実施例を示すもので、第1図の原理図
と対応する構成要素には同一の符号を付して示した。 
゛ 数値レジスタ21.22にはそれぞれ数aおよび数すが
ストアされており、いずれもその最下位桁にこれらの数
の正負の符号がストアされているものとし、また演算レ
ジスタ1)にはこの2つの数の加算あるいは減算を指示
する+あるいは−の演算子がストアされる。
FIG. 2 shows an embodiment of the present invention, and components corresponding to those in the principle diagram of FIG. 1 are denoted by the same reference numerals.
゛Numeric registers 21 and 22 store numbers a and numbers respectively, and the positive and negative signs of these numbers are stored in the least significant digits, and the arithmetic register 1) stores this value. A + or - operator is stored that indicates the addition or subtraction of two numbers.

符号チェック回路61.62は、各桁が2進4桁でBC
D符号を用いているとすると、符号を示す桁の値がA−
Fであればその符号は正常であるので“0”を出力し、
0〜9であれば誤りであるのでエラーを示す“l”を出
力し、少なくとも一方の符号チェック回路がエラーを検
出したときにはOR回路14を経てエラー信号を送出す
る。
The code check circuits 61 and 62 are BC with each digit being 4 binary digits.
If D code is used, the value of the digit indicating the code is A-
If it is F, the sign is normal, so output “0”.
If it is 0 to 9, it is an error, so it outputs "l" indicating an error, and when at least one code check circuit detects an error, it sends out an error signal via the OR circuit 14.

この符号チェック回路61.62は上記の符号を示す桁
の値がA−F(16進数で“1010”〜″1)1)″
)である場合には、その値がA、C,E、Fであれば正
の値であることを示す“0゛を、またB、Dであれば負
の値であることを示す“1”を論理演算回路1に出力す
る。
The code check circuits 61 and 62 have the values of the digits indicating the above code A-F (“1010” to “1)1)” in hexadecimal notation.
), if the value is A, C, E, F, it will be ``0'' indicating a positive value, and if it is B, D, it will be ``1'' indicating a negative value. ” is output to the logical operation circuit 1.

仮に、数aと数すとの加算を行う場合には、演算レジス
タ1)から加算を示す“O”が出力され、論理演算回路
1の第1の排他的論理和回路(以下、EOR回路、とい
う)12により数aの正負を示す“O”または“1”と
論理演算されるが、故aの符号が正であれば正を示す“
O”と論理演算されて“1”が出力され、次に第2のE
OR回路13により数すの正負を示す“O”または“1
′と論理演算されるが若し数すが正であれば“0゛と上
記第1のEOR回路12からの“1”により加算を指示
する“O”出力を十進数演算回路4に出力する。
If the number a and the number square are to be added, "O" indicating addition is output from the arithmetic register 1), and the first exclusive OR circuit (hereinafter referred to as EOR circuit) of the logical arithmetic circuit 1 is outputted from the arithmetic register 1). ) 12 is logically operated as "O" or "1" indicating the sign of the number a, but if the sign of a is positive, then "
O” is logically operated and “1” is output, and then the second E
“O” or “1” indicating the positive or negative of the number by the OR circuit 13
If the number is positive, "0" and "1" from the first EOR circuit 12 are used to output an "O" output that instructs addition to the decimal number calculation circuit 4. .

次の第2表はこの論理演算回路の論理値表である(但し
、負論理で示しである)。
The following Table 2 is a logic value table of this logic operation circuit (however, it is shown in negative logic).

第2表 上表で、+1)および(5)欄の“0″は加算、“l″
は減算を、(2)および(4)欄の“0”は正、“工”
は負をそれぞれ示しており、(3)欄は論理演算回路l
の第1のEOR回路12の出力、(5)欄は論理演算回
路1の第2のEOR回路13の出力であり、(5)欄の
*は演算子が変更されたことを示す。
In the above table of Table 2, "0" in the +1) and (5) columns is addition, "l"
indicates subtraction, “0” in columns (2) and (4) is positive, “work”
indicates a negative value, and column (3) indicates the logic operation circuit l.
The column (5) is the output of the second EOR circuit 13 of the logic operation circuit 1, and the * in the column (5) indicates that the operator has been changed.

十進数演算回路4はレジスタ2i、22からの数aおよ
び数すの絶対値間で上記論理演算回路lからの演算子に
より演算を行うとともに、演算された数aの符号が負で
あればこの演算出力の正負の符号を反転することにより
所要の演算結果が得られる。なお、正負を示す符号とし
てA−Fが用いられることを先に述べたが、一般にプロ
セッサ内部では正ならば“C” (2進法で“1)00
”)、負ならば“D゛ (2進法で“1)01”)とい
うように統一した符号が用いられているから、この例で
は符号の最下位桁を′0”と“1”との間で反転すれば
、正の数あるいは負の数が負の数あるいは正の数に変換
されたことになる。
The decimal number calculation circuit 4 performs calculations between the numbers a from the registers 2i and 22 and the absolute value of the numbers using the operator from the logic calculation circuit l, and if the sign of the calculated number a is negative, this A desired calculation result can be obtained by inverting the sign of the calculation output. As mentioned earlier, A-F is used as the sign to indicate positive or negative, but generally speaking, inside a processor, if it is positive, it is represented as “C” (“1” in binary) 00
”), and if it is negative, it is “D゛ (“1)01” in binary system), so in this example, the least significant digit of the code is “0” and “1”. If it is reversed between, a positive or negative number is converted into a negative or positive number.

この演算を行うために十進数演算回路4に与える演算命
令は、数a、bの正負にかかわらず同一の命令でよく、
したがってソフトウェア上でもこれら数値の符号を考慮
する必要がないので、プログラマの負担を減少すること
ができる。
The operation instruction given to the decimal number operation circuit 4 to perform this operation may be the same instruction regardless of whether the numbers a and b are positive or negative.
Therefore, since there is no need to consider the signs of these numerical values in software, the burden on the programmer can be reduced.

〔発明の効果〕〔Effect of the invention〕

本発明においては、与えられた演算式を実行するに適し
た演算式に変形する手段をハードウェアにより構成した
ことにより、演算される数の正負に関係なく1種類かつ
1つの演算命令によって演算が実行されるので、処理速
度が著しく向上するばかりでなく、プログラムの作成中
に演算される数値の正負を考慮する必要もないという格
別の作用効果を達成することができる。
In the present invention, by configuring the means for transforming a given arithmetic expression into an arithmetic expression suitable for execution using hardware, an arithmetic operation can be performed by one type and one arithmetic instruction regardless of whether the number to be operated on is positive or negative. Since the program is executed, not only the processing speed is significantly improved, but also the special effect of not having to consider the sign of the numerical value calculated during program creation can be achieved.

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

第1図は本発明の原理を示すブロック図、第2図は本発
明の実施例、第3図は数値を示すための符号形式の例で
ある。 1は論理演算回路、2は数値レジスタ、3は演算指示手
段、4は十進数演算回路、5は符号選択回路、6は符号
チェック回路、7は演算子レジスタ、8は符号レジスタ
である。
FIG. 1 is a block diagram showing the principle of the invention, FIG. 2 is an embodiment of the invention, and FIG. 3 is an example of a code format for indicating numerical values. 1 is a logic operation circuit, 2 is a numerical value register, 3 is an operation instruction means, 4 is a decimal number operation circuit, 5 is a code selection circuit, 6 is a code check circuit, 7 is an operator register, and 8 is a code register.

Claims (5)

【特許請求の範囲】[Claims] (1)加減算を行う2つの数の符号と加減算を指定する
演算子とによって演算子を選択する論理演算回路(1)
と、 上記2つの数の絶対値をそれぞれストアする2つの数値
レジスタ(2_1、2_2)と、このレジスタにストア
された2つの数の絶対値の加減算の実行を指示する演算
指示手段(3)と、 上記論理演算回路により選択された演算子と、上記演算
指示回路からの加減算実行指示とにより上記2つの数の
絶対値間の演算を行う十進数演算回路(4)と からなることを特徴とする十進数加減算装置。
(1) Logical operation circuit that selects an operator based on the signs of two numbers to be added and subtracted and an operator that specifies addition and subtraction (1)
and two numerical registers (2_1, 2_2) that respectively store the absolute values of the two numbers mentioned above, and an operation instruction means (3) that instructs execution of addition and subtraction of the absolute values of the two numbers stored in these registers. , comprising a decimal number calculation circuit (4) that performs calculations between the absolute values of the two numbers based on the operator selected by the logic calculation circuit and addition/subtraction execution instructions from the calculation instruction circuit. A decimal number addition/subtraction device.
(2)十進数の符号形式に応じて加減算する2つの数の
符号をそれぞれ選択する符号選択回路(5_1、5_2
)を設け、この符号選択回路からの符号を示す出力を上
記論理演算回路に供給するようにしたことを特徴とする
特許請求の範囲第1項記載の十進数加減算装置。
(2) Code selection circuit (5_1, 5_2) that selects the codes of two numbers to be added or subtracted according to the decimal code format.
2. The decimal number addition/subtraction device according to claim 1, further comprising: a decimal number adding/subtracting apparatus according to claim 1, wherein an output indicating a code from the code selection circuit is provided to the logic operation circuit.
(3)加減算を行う2つの数の符号の誤りをチェックす
る符号チェック回路(6_1、6_2)を設け、符号に
誤りがないときに上記論理演算回路が論理演算を行うよ
うにしたことを特徴とする特許請求の範囲第1項または
第2項記載の十進数加減算装置。
(3) A sign check circuit (6_1, 6_2) is provided to check for errors in the signs of two numbers to be added or subtracted, and the logic operation circuit performs a logical operation when there is no error in the signs. A decimal number addition/subtraction device according to claim 1 or 2.
(4)上記論理演算回路が選択した演算子をストアし、
かつ、プロセッサに割込みがあったときにその内容を退
避するようにした演算子レジスタ(7)を設けたことを
特徴とする特許請求の範囲第1項ないし第3項記載の十
進数加減算装置。
(4) Store the operator selected by the logic operation circuit,
A decimal number addition/subtraction device according to any one of claims 1 to 3, further comprising an operator register (7) whose contents are saved when the processor is interrupted.
(5)上記論理演算回路に入力される2つの数の符号を
ストアし、かつ、プロセッサに割込みがあったときにそ
の内容を退避するようにした符号レジスタ(8_1、8
_2)を設けたことを特徴とする特許請求の範囲第1項
ないし第4項記載の十進数加減算装置。
(5) Code registers (8_1, 8
_2) A decimal number addition/subtraction device according to any one of claims 1 to 4.
JP11349686A 1986-05-20 1986-05-20 Addition and subtraction device for decimal number Pending JPS62271017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11349686A JPS62271017A (en) 1986-05-20 1986-05-20 Addition and subtraction device for decimal number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11349686A JPS62271017A (en) 1986-05-20 1986-05-20 Addition and subtraction device for decimal number

Publications (1)

Publication Number Publication Date
JPS62271017A true JPS62271017A (en) 1987-11-25

Family

ID=14613786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11349686A Pending JPS62271017A (en) 1986-05-20 1986-05-20 Addition and subtraction device for decimal number

Country Status (1)

Country Link
JP (1) JPS62271017A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018116483A1 (en) * 2016-12-21 2018-06-28 和己 阿部 Calculation using numerical values represented inside a computer in undecimal or higher positional notation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018116483A1 (en) * 2016-12-21 2018-06-28 和己 阿部 Calculation using numerical values represented inside a computer in undecimal or higher positional notation

Similar Documents

Publication Publication Date Title
JPS5811652B2 (en) Arithmetic unit
JPS62191926A (en) Arithmetic unit
JPH0228830A (en) Integer number dividing circuit
JPS6227412B2 (en)
JPH034936B2 (en)
JPS62271017A (en) Addition and subtraction device for decimal number
JPS638971A (en) Polynomial vector arithmetic and control unit
JPS63111535A (en) Data processor
JP3137636B2 (en) Data processing device
JPS62288936A (en) Generating system for conditional code in decimal operation
JPS5856040A (en) Data processor
JPH02284225A (en) Arithmetic processor
JPH0991118A (en) Floating point arithmetic unit
JP2615746B2 (en) Bit operation circuit
JPH02148140A (en) Conditional branch control system for information processor
JPH02178833A (en) Adder for adding data different in bit length
JPS5839336B2 (en) Digital processing method for automatic control system
JPH06168104A (en) Electronic computer
JPS62293432A (en) Information processor
JPS6222144A (en) Decimal arithmetic circuit
JPS5911141B2 (en) arithmetic device
JPS63150748A (en) Data processor
JPH01258129A (en) Arithmetic and logic unit
JPH02176849A (en) Electronic calculator
JPS6244657B2 (en)