Omron C60K Video Game Controller User Manual


 
124
When the execution condition is OFF, MUL(32) is not executed and the next
instruction is moved to. When the execution condition is ON, the contents of
Md and Mr are multiplied and the rightmost four digits of the result are placed
in R; the leftmost four digits, in R + 1.
Md word
Mr word
R +1 word R word
X
ER: Md or Mr is not in BCD.
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 0.
When IR 0000 is ON with the following program, the contents of IR 13 and
DM 05 are multiplied and the result is placed in HR 7 and HR 8. Example
data and calculations are shown below the program.
MUL(32)
13
DM 05
HR 7
0000
R+1 : HR 8 R : HR 7
00083900
MD : IR 13
3356
MR : DM 05
0025
X
Address Instruction Operands
0000 LD 0000
0001 MUL(32)
13
DM 05
HR 7
5-16-4 BCD DIVIDE – DIV(33)
Dd : Dividend word (BCD)
IR, SR, DM, HR, TC, #
Ladder Symbol
Dr : Divisor word (BCD)
IR, SR, DM, HR, TC, #
Operand Data Areas
DIV(33)
Dd
Dr
R
R : First result word (BCD)
IR, DM, HR
R and R + 1 must be in the same data area.
Description
Flags
Example
Limitations
BCD Calculations Section 5-16