Method and apparatus for packed BCD sign arithmetic employing a two's complement binary adder
AssigneeSignetics Corporation
InventorsDavid Larry Zemel, Robert Gerald Kirk
Life of this patent
Estimating the term…
Loading patent…
AssigneeSignetics Corporation
InventorsDavid Larry Zemel, Robert Gerald Kirk
Estimating the term…
Disclosed is a BCD arithmetic method and BCD arithmetic apparatus for use in a data processing system. The binary adder included in a data system for binary arithmetic operations is additionally utilized in the invention to provide BCD sign-magnitude addition and subtraction of packed digits. The apparatus is utilized to carry out the method steps of preconditioning one of the operands by adding a predetermined binary number to each BCD digit, performing a binary addition, and applying a decimal adjust to form the decimal arithmetic sum. Subtraction steps include performing a two's complement binary subtraction of each BCD digit, and applying a decimal adjust to form the decimal difference. The method and apparatus may be utilized with other base number systems having members which may be represented by a binary sequence that does not use all of the 2.sup.N binary combinations in the set.
A data processing system storing a BCD encoded number N and a BCD encoded number P which are operated upon in low to high order information bytes to form a decimal arithmetic sum and a decimal arithmetic difference where each byte includes least and most significant decimal digits each encoded as four BCD bits, said system comprising,
A data processing system storing a BCD encoded addend A.sub.d and a BCD encoded auguend A.sub.v which are operated upon in low to high order information bytes to form a decimal arithmetic sum S.sub.a, where each byte includes least and most significant decimal digits each encoded as four BCD bits, said system comprising,
A data processing system storing a BCD encoded subtrahend S.sub.d and a BCD encoded minuend S.sub.m which are operated upon in low to high order information bytes to form a decimal arithmetic difference D, where each byte includes least and most significant decimal digits each encoded as four BCD bits, said system comprising,
A method for arithmetic operation in a data processing system storing a BCD encoded number N and a BCD encoded number P which are operated upon in low to high order information bytes to form a decimal arithmetic sum and a decimal arithmetic difference where each byte includes least and most significant decimal digits each encoded as four BCD bits, said system having a first unit having carry outputs for adding and for two's complementing operands, having an input control unit for directing data to said first unit and providing a predetermined translation value and plural predetermined adjust values, having a plurality of registers for storing operands, having control means for controlling the processing of operands, having a carry storage unit for storing the adder carry outputs, the steps comprising,
A method for arithmetic operation in a data processing system storing a BCD encoded number N and a BCD encoded number P which are operated upon in low to high order information bytes to form a decimal arithmetic sum and a decimal arithmetic difference where each byte includes least and most significant decimal digits each encoded as four BCD bits, said system having a first unit having carry outputs for adding and for two's complementing operands, having an input control unit for directing data to said first unit and providing a predetermined translation value and plural predetermined adjust values, having a plurality of registers for storing operands, having control means for controlling the processing of operands, having a carry storage unit for storing the adder carry outputs, the steps comprising,
Dependencies are inferred from the claim text.