MOV (MOVe data) (byte)
MOV
<Description>
This instruction moves one byte of data from a source register to memory and sets condition
code flags according to the data value.
The MOV.B Rs, @–R7 instruction should never be used, because it leaves an odd value in the
stack pointer. This may result in loss of data, since the stack is always accessed a word at a
time at an even address.
The instruction MOV.B RnH, @–Rn or MOV.B RnL, @–Rn decrements register Rn, then
moves the upper or lower byte of the decremented result to memory.
<Instruction Formats>
<Operation>
Rs
→
(EAd)
<Assembly-Language Format>
MOV.B
Rs, <EAd>
<Examples>
MOV.B R1L, @R0
MOV.B R3H, @(H'8001, R0)
MOV.B R5H, @–R4
MOV.B R6L, @H'FE77
<Operand Size>
Byte
<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.B
Rs, @Rd
6
8
1 rd
rs
4
Register indirect
Rs,
with displacement
MOV.B
@(d:16,Rd)
6
E
1 rd
rs
disp.
6
Register indirect
with pre-decrement MOV.B
Rs, @-Rd
6
C
1 rs
rs
6
Absolute address
MOV.B
Rs,@aa:8
3
rs
abs
4
Absolute address
MOV.B
Rs,@aa:16
6
A
8
rs
abs.
6
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
86
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...