300
Binary Calculation Instructions Section 5-21
of Dr and the result is placed in R and R+1: the quotient in R, the remainder in
R+1.
Flags ER: Dr contains 0.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ: ON when the result is 0.
5-21-5 DOUBLE BINARY ADD – ADBL(––)
Limitations This instruction is available in the CQM1-CPU4@-E/-EV1 only.
Au and Au+1 must be in the same data area, as must Ad and Ad+1, and R
and R+1.
DM 6142 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, ADBL(––) is not executed. When the
execution condition is ON, ADBL(––) adds the eight-digit contents of Au+1
and Au, the eight-digit contents of Ad+1 and Ad, and CY, and places the result
in R. CY will be set if the result is greater than FFFF FFFF.
ADBL(––) can also be used to add signed binary data. The underflow and
overflow flags (SR 25404 and SR 25405) indicate whether the result has
exceeded the lower or upper limits of the 32-bit signed binary data range.
Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
CY: ON when the result is greater than FFFF FFFF.
EQ: ON when the result is 0.
OF: ON when the result exceeds +2,147,483,647 (7FFF FFFF).
Dd Dr
R R + 1
Quotient Remainder
Au: First augend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Ad: First addend word (binary)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R: First result word
IR, SR, AR, DM, HR, LR
ADBL(––)
Au
Ad
R
@ADBL(––)
Au
Ad
R
Au + 1 Au
Ad + 1 Ad
R + 1 R
+
CY
CY