Renesas Electronics
MOV
Transferring data
MOVe
[Syntax]
MOV.size src, dest
[Operation]
dest = src;
[Function]
-
This instruction transfers src to dest as listed in the following table.
[Instruction Format]
Syntax
size
Processng Size
src
dest
Code size
(Byte)
B/W/L
Rs
(Rs=R0~R7)
dsp:5[Rd]
(Rd=R0~R7)
2
L
dsp:5[Rs]
Rd
(Rd=R0~R7)
#UIMM:4
B
#IMM:8
3
W/L
#UIMM:8
#SIMM:8
#SIMM:16
4
#SIMM:24
5
#IMM:32
6
B/W
[Rd]
dsp:8[Rd]
dsp:16[Rd]
W
#IMM:16
7
8
[Rs]
dsp:8[Rs]
dsp:16[Rs]
[Ri, Rb]
[Rd+]
[-Rd]
[Rs+]
[-Rs]
[Flag Change]
This instruction does not affect the states of flags.
[Description Example]
MOV.L #0, R2
MOV.L #128:8, R2
MOV.L #-128:8, R2
MOV.L R1, R2
MOV.L #0, [R2]
MOV.W [R1], R2
MOV.W R1, [R2]
MOV.W [R1, R2], R3
MOV.W R1, [R2, R3]
MOV.W [R1], [R2]
MOV.B R1, [R2+]
MOV.B [R1+], R2
MOV.B R1, [-R2]
MOV.B [-R1], R2