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

Table of Contents

Advertisement

MOV (MOVe data) (byte)
<Operation>
(EAs) → Rd
<Assembly-Language Format>
MOV.B <EAs>, Rd
<Examples>
MOV.B @R1, R2H
MOV.B @R5+, R0L
MOV.B @H'FFF1, R1H
MOV.B #H'A5, R3L
<Operand Size>
Byte
<Description>
This instruction moves one byte of data from a source operand to a destination register and
sets condition code flags according to the data value. The source operand can be memory
contents or immediate data.
The MOV.B @R7+, Rd 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.
<Instruction Formats>
Addressing
mode
Immediate
Register indirect
Register indirect
with displacement
Register indirect
with post-increment MOV.B @Rs+, Rd
Absolute address
Absolute address
Mnem.
Operands
MOV.B #xx:8, Rd
MOV.B @RS, Rd
MOV.B @(d:16,Rs),Rd
MOV.B @aa:8, Rd
MOV.B @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
F
rd
IMM
6
8
0 rs
rd
6
E
0 rs
rd
6
C
0 rs
rd
2
rd
abs
6
A
0
rd
84
H
N
Z
3rd byte
4th byte
disp.
abs.
MOV
V
C
0
No. of
states
2
4
6
6
4
6

Advertisement

Table of Contents
loading

Table of Contents