7-21
Section
BCD Calculation Instructions
466
7-21-9
DOUBLE BCD MULTIPLY – MULL(56)
Md
: First multiplicand word (BCD)
IR, SR, AR, DM, HR, TC, LR
Mr
: First multiplier word (BCD)
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R
: First result word
IR, SR, AR, DM, HR LR
MULL(56)
Md
Mr
R
@MULL(56)
Md
Mr
R
DM 6144 to DM 6655 cannot be used for R.
When the execution condition is OFF, MULL(56) is not executed. When the
execution condition is ON, MULL(56) multiplies the eight-digit content of Md and
Md+1 by the content of Mr and Mr+1, and places the result in R to R+3.
Md + 1
Md
Mr + 1
Mr
R + 1
R
R + 3
R + 2
x
Flags
ER:
Md, Md+1,Mr, or Mr+1 is not BCD.
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 there is a carry in the result.
EQ
:
ON when the result is 0.
7-21-10 DOUBLE BCD DIVIDE – DIVL(57)
Dd
: First dividend word (BCD)
IR, SR, AR, DM, HR, TC, LR
Dr
: First divisor word (BCD)
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R
: First result word
IR, SR, AR, DM, HR LR
DIVL(57)
Dd
Dr
R
@DIVL(57)
Dd
Dr
R
DM 6144 to DM 6655 cannot be used for R.
When the execution condition is OFF, DIVL(57) is not executed. When the
execution condition is ON, DIVL(57) the eight-digit content of Dd and D+1 is di-
vided by the content of Dr and Dr+1 and the result is placed in R to R+3: the quo-
tient in R and R+1, the remainder in R+2 and R+3.
R+1
R
Quotient
Remainder
Dd+1
Dd
Dr+1
Dr
R+3
R+2
Limitations
Description
Limitations
Description