UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
134
Examples
•
If Working Register Pair RR6 (R6 and R7) contains the value
404AH
, Data Memory
location 404AH and 404BH contain the values
ABH
and
C3H
respectively, and
Working Register R2 contains the value
22H
, the statement:
LDEI @R2, @RR6
Object Code: 83 26
loads the value
ABH
into Register 22H.
Working Register Pair RR6 increments to
404BH
and Working Register R2
increments to
23H
.
A second
LDEI @R2, @RR6
Object Code: 83 26
loads the value
C3H
into Register 23H. Working Register Pair RR6 increments to
404CH
and Working Register R2 increments to
24H
.
•
If Working Register R2 contains the value
22H
, Register 22H contains the value
ABH
,
Register 23H contains the value
C3H
, and Working Register Pair R6 and R7 contains
the value
404AH
, the statement:
LDEI @RR6, @R2
Object Code: 93 26
loads the value
ABH
into Data Memory location 404AH. Working Register R2
increments to 23H and Working Register Pair RR6 increments to 404BH. A second
LDEI @RR6, @R2
Object Code: 93 26
loads the value
C3H
into Data Memory location 404BH. Working Register R2
increments to 24H and Working Register Pair RR6 increments to 404CH.