EEPMOV (MOVe data to EEPROM)
EEPMOV
<Description>
This instruction moves a block of data from the memory location specified in general register
R5 to the memory location specified in general register R6. General register R4L gives the
byte length of the block.
Data are transferred a byte at a time. After each byte transfer, R5 and R6 are incremented and
R4L is decremented. When R4L reaches 0, the transfer ends and the next instruction is
executed. No interrupt requests are accepted during the data transfer.
At the end of this instruction, R4L contains H'00. R5 and R6 contain the last transfer address
+1.
Chips in the H8/300 Series having large on-chip EEPROM memories use this instruction to
write data in the EEPROM. For details, see the hardware manual for the particular chip.
The memory locations specified by general registers R5 and R6 are read before the block
transfer is performed.
<Operation>
if R4L
≠
0 then
repeat
@R5+
→
@R6+
R4L – 1
→
R4L
until R4L = 0
else next;
<Assembly-Language Format>
EEPMOV
<Examples>
MOV.B #H'20, R4L
MOV.W #H'FEC0, R5
MOV.W #H'6000, R6
EEPMOV
<Operand Size>
—
<Condition Code>
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Previous value remains unchanged.
Z: Previous value remains unchanged.
V: Previous value remains unchanged.
C: Previous value remains unchanged.
I
H
N
Z
V
C
—
—
—
— —
— —
—
76
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...