Mov(Move Data) (Word) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

MOV (MOVe data) (word)
<Operation>
(EAs) → Rd
<Assembly-Language Format>
MOV.W <EAs>, Rd
<Examples>
MOV.W @R3, R4
MOV.W @(H'0004,R5), R6
MOV.W @R7+, R0
MOV.W #H'B00A, R1
<Operand Size>
Word
<Description>
This instruction moves one word of data from a source operand to a destination register and
sets condition code flags according to the data value.
If the source operand is in memory, it must be located at an even address.
MOV.W @R7+, Rd is identical in machine language to POP.W Rd.
<Instruction Formats>
Addressing
mode
Immediate
Register indirect
Register indirect
with displacement
Register indirect
with post-increment MOV.W @Rs+, Rd
Absolute address
Mnem.
Operands
MOV.W #xx:16, Rd
MOV.W @RS, Rd
MOV.W @(d:16,Rs),Rd
MOV.W @aa:16, Rd
<Condition Code>
I
— — — —
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Set to "1" if the data value is negative;
otherwise cleared to "0."
Z: Set to "1" if the data value is zero;
otherwise cleared to "0."
V: Cleared to "0."
C: Previous value remains unchanged.
Instruction code
1st byte
2nd byte
7
9
0
0 rd
6
9 0 rs 0 rd
6
F 0 rs 0 rd
6
D 0 rs 0 rd
6
B
0
0 rd
85
H
N
Z
3rd byte
4th byte
IMM
disp.
abs.
MOV
V
C
0
No. of
states
4
4
6
6
6

Advertisement

Table of Contents
loading

Table of Contents