5.61. Extended Precision Floating Point Add


Addr
Mode  Mnemonic          Format/Opcode
                           8      4      4
                        ----------------------
R     EFAR  RA,RB       |  AB  |  RA  |  RB  |
                        ----------------------
                           8      4      4           16
D     EFA   RA,ADDR     --------------------------------------
DX    EFA   RA,ADDR,RX  |  AA  |  RA  |  RX  |  |    ADDR    |
                        --------------------------------------

Description. The extended precision floating point Derived Operand, DO, is extended floating point added to the contents of register RA, RA+1, and RA+2. The result is stored in register RA, RA+1, and RA+2. The process of this operation is as follows: the mantissa of the number with the smaller algebraic exponent is shifted right and the exponent is incremented by one for each bit shifted. When the exponents are equal, the mantissas are added. If the sum overflows the 39-bit mantissa, then the sum is shifted right one position, the sign bit restored, and the exponent is incremented by one. If the exponent exceeds 7F16 as a result of this incrementation, overflow occurs and the operation is terminated. If the sum does not result in exponent overflow, the result is normalized. If in the normalization process the exponent is decremented below 8016, then underflow occurs and a zero is inserted for the result.

Register Transfer Description.

n = EA - EO;
EA <-- E0, if MA = 0;
MO <-- MO Shifted Right Arithmetic n positions, if n >= 0 and MA /= 0;
MA <-- MA Shifted Right Arithmetic -n positions, EA <-- E0, if n < 0 and MO /= 0;
MA <-- MA + MO;
                                              
MA <-- MA Shifted Right Arithmetic 1 position, MA 0 <-- ~MA0, EA <-- EA+1, if OVM = 1;
PI3 <-- 1, EA <-- 7F 16, MA <-- 7FFF FF FFFF 16, exit, if EA >= 7F 16 and MA0 = 0;
PI3 <-- 1, EA <-- 7F 16, MA <-- 8000 00 0000 16, exit, if EA >= 7F 16 and MA0 = 1; 
EA, MA <-- normalized EA, MA;
PI6 <-- 1, EA <-- 0, MA <-- 0, if EA < 80 16;
(CS) <-- 0010  if (RA, RA+1, RA+2) = 0;
(CS) <-- 0001  if (RA, RA+1, RA+2) < 0;
(CS) <-- 0100  if (RA, RA+1, RA+2) >= 0;

Registers Affected. RA, RA+1, RA+2, CS, PI