331
Binary Calculation Instructions
Section 5-22
Description
When the execution condition is OFF, MLB(52) is not executed. When the exe-
cution condition is ON, MLB(52) multiplies the content of Md by the contents
of Mr, places the rightmost four digits of the result in R, and places the left-
most four digits in R+1.
Flags
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON when the result is 0.
5-22-4 BINARY DIVIDE – DVB(53)
Limitations
DM 6143 to DM 6655 cannot be used for R.
DVB(53) cannot be used to divide signed binary data, but DBS(––) can be
used. Refer to
5-22-9 SIGNED BINARY DIVIDE – DBS(––)
for details.
Description
When the execution condition is OFF, DVB(53) is not executed. When the exe-
cution condition is ON, DVB(53) divides the content of Dd by the content 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 EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON when the result is 0.
Md
Mr
R +1
R
X
Dd
:
Dividend word (binary)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Dr
:
Divisor word (binary)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Ladder Symbols
Operand Data Areas
R
:
First result word
IR, SR, AR, DM, EM, HR, LR
DVB(53)
Dd
Dr
R
@DVB(53)
Dd
Dr
R
Dd
Dr
R
R + 1
Quotient Remainder