MOV (MOVe data) (word)
MOV
<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>
<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
<Condition Code>
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.
I
H
N
Z
V
C
—
—
—
—
↕
↕
0
—
Register indirect
MOV.W
Rs, @Rd
6
9
1 rd 0 rs
4
Register indirect
Rs,
with displacement
MOV.W
@(d:16, Rd)
6
F
1 rd 0 rs
disp.
6
Register indirect
with pre-decrement MOV.W
Rs, @-Rd
6
D 1 rd 0 rs
6
Absolute address
MOV.W
Rs, @aa:16
6
B
8
0 rs
abs.
6
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
87
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...