225
Precautions DVB(53)
cannot be used
to divide signed binary data. Use DBS(––) instead. Re
-
fer to 5-20-9 SIGNED BINAR
Y DIVIDE – DBS(––)
for details.
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.
Example
DVB(53)
001
LR 20
HR 05
Address Instruction Operands
00000 LD 00000
00001 DVB(53)
001
LR 0020
HR 05
00000
Dd:
IR 001
10F7
Dr: LR 20
0003
R: HR 05
05A7
R+1: HR 06
0002
Remainder (2)
Quotient (1447)
5-20-5 DOUBLE BINARY ADD – ADBL(––)
Au: First augend word (binary)
IR, SR, AR, DM, HR, LR
Ad: First addend word (binary)
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
R: First result word
IR, SR, AR, DM, HR, LR
ADBL(––)
Au
Ad
R
@ADBL(––)
Au
Ad
R
Limitations Au
and Au+1 must be in the same data area, as must Ad and Ad+1, and R and
R+1.
Description
When the execution condition is OFF
, ADBL(––) is not executed. When the ex
-
ecution 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.
Au
+ 1
Au
Ad + 1
Ad
R + 1
R
+
CY
CY
Binary Calculations Section 5-20