Back to results
US 5,086,406 AGranted
Circuit arrangement for decimal arithmetic
AssigneeNEC Corporation
InventorsShinichi Okugawa, Shigenobu Sugimoto
Life of this patent
Estimating the term…
Abstract
A circuit for performing decimal subtraction at high speed has an execution time which is independent of the existence of a borrow condition. The subtraction circuit is particularly suited for use in microcoded computer circuits.
Claims2
A circuit for decimal arithmetic comprising:
- (a) a first register for storing a minuend in Binary Coded Decimal (BCD) representation,
- (b) a second register for storing a subtrahend in BCD representation,
- (c) a third register,
- (d) a carry status decision means for producing a first signal as a carry status when the subtrahend is larger than the minuend and a second signal as the carry status when the subtrahend is less than the minuend in a first subtraction,
- (e) a carry status register connected to the carry status decision means for holding the carry status sent from the carry status decision means,
- (f) a zero generation means for generating a zero in BCD representation;
- (g) a binary coded decimal subtraction means for receiving the minuend from the first register and the subtrahend from the second register, performing the first subtraction and after the first subtraction of the subtrahend from the minuend, storing a result of the first subtraction in the second register and in the third register, and subsequently storing the zero in the first register, and for subtracting the result of the first subtraction from the zero in the first register, and
- (h) an inhibition means for preventing the third register from storing the result of the second subtraction when the carry status register holds the second signal, the inhibition means further assigning a positive sign to the result in the third register if the preventing takes place and a negative sign to the result in the third register if no preventing occurs.
5 more elements
A circuit for performing decimal arithmetic, comprising:
- (a) a first register, a second register, a third register and a carry status register,
- (b) a means for storing a first BCD number in the first register and a second BCD number in the second register,
- (c) a means for clearing the carry status register,
- (d) a subtracting means for performing a first subtraction by subtracting the second BCD number in the second register from the first BCD number in the first register,
- (e) a means for generating a carry signal when the second BCD number is larger than the first BCD number,
- (f) a means for setting the carry status register when the carry signal is generated,
- (g) a means for storing a result of the first subtraction in the second register and in the third register,
- (h) a means for generating a BCD zero and storing the BCD zero in the first register,
- (i) the subtracting means also being for performing a second subtraction by subtracting the result of the first subtraction in the second register from the zero in the first register, and
- (j) a means for storing a result of the second subtraction in the third register if the carry status register is set.
7 more elements
Dependencies are inferred from the claim text.