ZiLOG Z8 User Manual page 179

Hide thumbs Also See for Z8:
Table of Contents

Advertisement

ZiLOG
LD
LOAD
Example:
If Register 45H contains the value CFH and Register CFH contains the value FFH, the statement:
loads the value FFH into Register 34H. The contents of Register 45H and Register CFH are not affected.
Example:
The statement:
loads the value A4H into Register 34H.
Example:
If Working Register R14 contains the value 7FH, the statement:
loads the value FCH into Register 7FH. The contents of Working Register R14 are not affected.
Example:
If Register 34H contains the value CFH and Register 45H contains the value FFH, the statement:
loads the value FFH into Register CFH. The contents of Register 34H and Register 45H are not affected.
Example:
IIf Working Register R0 contains the value 08H and Register 2CH (24H + 08H = 2CH) contains the value 4FH, the
statement:
loads Working Register R10 with the value 4FH. The contents of Working Register R0 and Register 2CH are not
affected.
Example:
If Working Register R0 contains the value 0BH and Working Register R10 contains 83H the statement:
loads the value 83H into Register FBH (F0H + 0BH = FBH). Since this is the Interrupt Mask Register, the LOAD
statement has the effect of enabling IRQ0 and IRQ1. The contents of Working Registers R0 and R10 are unaffected
by the load.
UM001601-0803
LD 34H, @45H
Op Code: E5 45 34
LD 34H, #A4H
Op Code: E6 34 A4
LD @R14, #FCH
Op Code: E7 EE FC
LD @34H, 45H
Op Code: F5 45 34
LD R10, 24H(R0)
Op Code: C7 A0 24
LD F0H(R0), R10
Op Code: D7 A0 F0
Z8 Microcontrollers
Instruction Descriptions and Formats
12-39

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8 and is the answer not in the manual?

Table of Contents