304
Binary Calculation Instructions Section 5-21
5-21-8 DOUBLE SIGNED BINARY MULTIPLY – MBSL(––)
Limitations This instruction is available in the CQM1-CPU4@-E/-EV1 only.
Md and Md+1 must be in the same data area, as must Mr and Mr+1.
R and R+3 must be in the same data area.
DM 6143 to DM 6655 cannot be used for R.
Description MBSL(––) multiplies the 32-bit (8-digit) signed binary data in Md+1 and Md
with the 32-bit signed binary data in Mr+1 and Mr, and outputs the 16-digit
signed binary result to R+3 through R.
Note Refer to 1-10 Calculating with Signed Binary Data for more details.
Flags ER: 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 zero (content of R+3 through R all zeroes), oth-
erwise OFF.
Example In the following example, MBSL(––) is used to multiply the signed binary con-
tents of IR 101 and IR 100 with the signed binary contents of DM 0021 and
DM 0020 and output the result to LR 24 through LR 01.
Md: First multiplicand word
IR, SR, AR, DM, HR, TC, LR, #
Mr: First multiplier word
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R: First result word
IR, SR, AR, DM, HR LR
MBSL(––)
Md
Mr
R
@MBSL(––)
Md
Mr
R
Md + 1 Md
Mr + 1 Mr
R + 1 RR + 3 R + 2
x
MBSL(––)
100
DM 0020
LR 01
Address Instruction Operands
00000 LD 00000
00001 MBSL(––)
100
DM 0020
LR 21
00000
Md: IR 100
7938
Mr: DM 0020
A81 2
R: LR 01
45F0
R+1: LR 02
FCA 5
(555,320)
(–1,005,550)
(–55,840,206,000)
Md+1: IR 101
0008
Mr+1: DM 0021
FFF 0
X
R+2: LR 03
FF7 D
R+3: LR 04
FFF F