![Hitachi H8/3152 Hardware Manual Download Page 42](http://html.mh-extra.com/html/hitachi/h8-3152/h8-3152_hardware-manual_140481042.webp)
36
Figure 2.9 shows the object code formats of the system control instructions.
IMM
RTE, SLEEP, NOP
LDC, STC (Rn)
ANDC, ORC,
XORC, LDC (#xx:8)
op
15
8
7
0
op
rn
15
8
7
0
op
15
8
7
0
Legend:
op:
Operation field
rn:
Register field
IMM: Immediate data
Figure 2.9 System Control Instruction Object Code Formats
2.5.8
EEPROM Write Instruction
Table 2.11 describes the EEPROM write instruction.
Table 2.11
EEPROM Write Instruction
Instruction
Size
Function
EEPMOV
—
If R4L
≠
0 then
repeat @R5+
→
@R6+, R4L – 1
→
R4L
until
R4L = 0
else next;
Transfers a data block to EEPROM according to parameters set in
general registers R4L, R5, and R6.
R4L: size of block (bytes)
R5:
starting source address
R6:
starting destination address
Execution of the next instruction begins as soon as the EEPROM
write operation is completed. The transfer cannot cross an
EEPROM page boundary.