5.57. Single Precision Absolute Value of Register


Addr
Mode  Mnemonic          Format/Opcode
                           8      4      4
                        ----------------------
R     ABS   RA,RB       |  A4  |  RA  |  RB  |
                        ----------------------

Description. If the sign bit of the Derived Operand, DO (i.e., the sign bit of register RB), is a one, its negative or 2's complement is stored into register RA. However, if the sign bit of DO is a zero, it is stored, unchanged, into RA. The condition status, CS, is set based on the result in register RA.

Note: RA may equal RB.

Note: The absolute value of a number with a 1 in the sign bit and all other bits zero is the same word, and causes fixed point overflow to occur.

Register Transfer Description.

(RA) <-- |DO|;
PI4 <-- 1, exit, if DO = 8000 16;
(CS) <-- 0001  if (RA) = 8000 16;
(CS) <-- 0010  if (RA) = 0;
(CS) <-- 0100  if (RA) >= 0;

Registers Affected. RA, CS, PI