UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
126
Examples
•
The statement:
LD R15, #34H
Object Code: FC 34
loads the value
34H
into Working Register R15.
•
If Register 34H contains the value
FCH
, the statement:
LD R14, 34H
Object Code: E4 34 EE
loads the value
FCH
into Working Register R14. The contents of Register 34H are not
affected.
•
If Working Register R14 contains the value
45H
, the statement:
LD 34H, R14
Object Code: E4 EE 34
loads the value
45H
into Register 34H. The contents of Working Register R14 are not
affected.
•
If Working Register R12 contains the value
34H
, and Register 34H contains the value
FFH
, the statement:
LD R13, @R12
Object Code: E3 DC
loads the value
FFH
into Working Register R13. The contents of Working Register
R12 and Register R34 are not affected.
•
If Working Register R13 contains the value
45H
, and Working Register R12 contains
the value
00H
the statement:
LD @R13, R12
Object Code: F3 DC
loads the value
00H
into Register 45H. The contents of Working Register R12 and
Working Register R13 are not affected.
•
If Register 45H contains the value
CFH
, the statement:
LD 34H, 45H
Object Code: E4 45 34
loads the value
CFH
into Register 34H. The contents of Register 45H are not affected.
•
If Register 45H contains the value
CFH
and Register CFH contains the value
FFH
, the
statement:
LD 34H, @45H
Object Code: E5 45 34