34 mul (multiply word data), Mul (multiply word data) – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual
Page 144
Advertising

120
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.34
MUL (Multiply Word Data)
Multiplies the word data in "Rj" by the word data in "Ri" as signed numbers, and stores
the resulting signed 64-bit data with the high word in the multiplication/division register
(MDH), and the low word in the multiplication/division register (MDL).
■
MUL (Multiply Word Data)
Assembler format:
MUL Rj, Ri
Operation:
Rj × Ri
→
MDH, MDL
Flag change:
N:
Set when the MSB of the "MDL" of the operation result is "1", cleared when the MSB is "0".
Z:
Set when the operation result is "0", cleared otherwise.
V:
Cleared when the operation result is in the range -2147483648 to 2147483647, set otherwise.
C:
Unchanged
Execution cycles:
5 cycles
Instruction format:
N
Z
V
C
C
C
C
–
MSB
LSB
1
0
1
0
1
1
1
1
Rj
Ri
Advertising