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

Table of Contents

Advertisement

MOV (MOVe data) (byte)
<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
<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>
Addressing
mode
Register indirect
Register indirect
with displacement
Register indirect
with pre-decrement MOV.B Rs, @-Rd
Absolute address
Absolute address
Mnem.
Operands
MOV.B Rs, @Rd
Rs,
MOV.B @(d:16,Rd)
MOV.B Rs,@aa:8
MOV.B 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
8
1 rd rs
6
E
1 rd rs
6
C
1 rs
rs
3
rs
abs
6
A
8
rs
86
H
N
Z
3rd byte
4th byte
disp.
abs.
MOV
V
C
0
No. of
states
4
6
6
4
6

Advertisement

Table of Contents
loading

Table of Contents