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

Table of Contents

Advertisement

MOV (MOVe data) (word)
<Operation>
Rs → (EAd)
<Assembly-Language Format>
MOV.W Rs, <EAd>
<Examples>
MOV.W R3, @R4
MOV.W R2, @(H,0030,R5)
MOV.W R1, @–R7
MOV.W R0, @H'FED6
<Operand Size>
Word
<Description>
This instruction moves one word of data from a general register to memory and sets condition
code flags according to the data value.
The destination address in memory must be even.
MOV.W Rs, @–R7 is identical in machine language to PUSH.W Rs.
The instruction MOV.W Rn, @–Rn decrements register Rn by 2, then moves the decremented
result to memory.
<Instruction Formats>
Addressing
mode
Register indirect
Register indirect
with displacement
Register indirect
with pre-decrement MOV.W
Absolute address
Mnem.
Operands
MOV.W
Rs, @Rd
Rs,
MOV.W
@(d:16, Rd)
Rs, @-Rd
MOV.W
Rs, @aa:16
<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
6
9 1 rd 0 rs
6
F 1 rd 0 rs
6
D 1 rd 0 rs
6
B
8
0 rs
87
H
N
Z
3rd byte
4th byte
disp.
abs.
MOV
V
C
0
No. of
states
4
6
6
6

Advertisement

Table of Contents
loading

Table of Contents