Renesas Electronics
MUL
Multiplication
MULtiply
[Syntax]
(1)MUL src, dest
(2)MUL src, src2, dest
[Operation]
(1)dest = src * dest;
(2)dest = src * src2;
[Function]
-
(1)This instruction multiplies src and dest and places the result in dest.
The calculation is performed in 32 bits and the lower-order 32 bits of the result are placed.
The operation result will be the same whether a singed or unsigned multiply is executed.
(2)This instruction multiplies src and src2 and places the result in dest.
Note
The accumulator (ACC) is used to perform the function. The value of ACC after executing the instruction is undefined.
[Instruction Format]
Syntax
Processng Size
src
src2
dest
Code size
(Byte)
L
#UIMM:4
Rd
2
#SIMM:8
3
#SIMM:16
4
#SIMM:24
5
#IMM:32
6
Rs
[Rs].memex
2 (memex == UB)
3 (memex != UB)
dsp:8[Rs].memex
3 (memex == UB)
4 (memex != UB)
dsp:16[Rs].memex
4 (memex == UB)
5 (memex != UB)
Rs2
[Flag Change]
This instruction does not affect the states of flags.
[Description Example]
MUL #10, R2
MUL R1, R2
MUL [R1], R2
MUL 4[R1].W, R2
MUL R1, R2, R3