Z8 Microcontrollers
Instruction Descriptions and Formats ZiLOG
12-38 UM001601-0803
LD
LOAD
Example:
The statement:
LD R15, #34H
Op Code: FC 34
loads the value 34H into Working Register R15.
Example:
If Register 34H contains the value FCH, the statement:
LD R14, 34H
Op Code: F8 34
loads the value FCH into Working Register R15. The contents of Register 34H are not affected.
Example:
If Working Register R14 contains the value 45H, the statement:
LD 34H, R14
Op Code: E9 34
loads the value 45H into Register 34H. The contents of Working Register R14 are not affected.
Example:
If Working Register R12 contains the value 34H, and Register 34H contains the value FFH, the statement:
LD R13, @R12
Op Code: E3 DC
loads the value FFH into Working Register R13. The contents of Working Register R12 and Register R34 are not
affected.
Example:
If Working Register R13 contains the value 45H, and Working Register R12 contains the value 00H the statement:
LD @R13, R12
Op Code: F3 DC
loads the value 00H into Register 45H. The contents of Working Register R12 and Working Register R13 are not
affected.
Example:
If Register 45H contains the value CFH, the statement:
LD 34H, 45H
Op Code: E4 45 34
loads the value CFH into Register 34H. The contents of Register 45H are not affected.