EasyManuals Logo

ZiLOG Z8 User Manual

ZiLOG Z8
220 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #179 background imageLoading...
Page #179 background image
Z8 Microcontrollers
ZiLOG Instruction Descriptions and Formats
UM001601-0803 12-39
LD
LOAD
Example:
If Register 45H contains the value CFH and Register CFH contains the value FFH, the statement:
LD 34H, @45H
Op Code: E5 45 34
loads the value FFH into Register 34H. The contents of Register 45H and Register CFH are not affected.
Example:
The statement:
LD 34H, #A4H
Op Code: E6 34 A4
loads the value A4H into Register 34H.
Example:
If Working Register R14 contains the value 7FH, the statement:
LD @R14, #FCH
Op Code: E7 EE FC
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:
LD @34H, 45H
Op Code: F5 45 34
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:
LD R10, 24H(R0)
Op Code: C7 A0 24
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:
LD F0H(R0), R10
Op Code: D7 A0 F0
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.

Table of Contents

Other manuals for ZiLOG Z8

Questions and Answers:

Question and Answer IconNeed help?

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

ZiLOG Z8 Specifications

General IconGeneral
BrandZiLOG
ModelZ8
CategoryDesktop
LanguageEnglish

Related product manuals