Omron C200HX Computer Hardware User Manual


 
254
Example In the following example, MBS(––) is used to multiply the signed binary contents
of IR 001 with the signed binary contents of DM 0020 and output the result to
LR 21 and LR 22.
MBS(––)
001
DM 0020
LR 21
Address Instruction Operands
00000 LD 00000
00001 MBS(––)
001
DM 0020
LR 21
00000
Md: 001
15B1
Mr: DM 0020
FC13
R: LR 21
D823
X
R+1: LR 22
FFAA
(5,553)
(1,005)
(5,580,765)
5-20-8 DOUBLE SIGNED BINARY MULTIPLY MBSL(––)
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
Limitations Md and Md+1 must be in the same data area, as must Mr and Mr+1, and R
through R+3.
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. Refer to page 27 for details on signed binary
data.
Md + 1 Md
Mr + 1 Mr
R + 1 RR + 3 R + 2
x
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), other-
wise OFF.
N: ON when bit 15 of R+3 is set to 1.
Binary Calculations Section 5-20