289
BCD Calculation Instructions Section 5-20
Description When the execution condition is OFF, MUL(32) is not executed. When the
execution condition is ON, MUL(32) multiplies Md by the content of Mr, and
places the result In R and R+1.
Example When IR 00000 is ON with the following program, the contents of IR 013 and
DM 0005 are multiplied and the result is placed in HR 07 and HR 08. Example
data and calculations are shown below the program.
Flags ER: Md and/or Mr 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.
5-20-6 BCD DIVIDE – DIV(33)
Limitations R and R+1 must be in the same data area. DM 6143 to DM 6655 cannot be
used for R.
Md
Mr
R +1 R
X
MUL(32)
013
DM 0005
HR 07
00000
R+1: HR 08 R: HR 07
00083900
Md: IR 013
335 6
Mr: DM 0005
002 5
X
Address Instruction Operands
00000 LD 00000
00001 MUL(32)
013
DM 0005
HR 07
Dd: Dividend word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
DIV(33)
Dd
Dr
R
Ladder Symbol
Dr: Divisor word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Operand Data Areas
R: First result word (BCD)
IR, SR, AR, DM, HR, LR