ZiLOG Z8 User Manual page 158

Hide thumbs Also See for Z8:
Table of Contents

Advertisement

Z8 Microcontrollers
Instruction Descriptions and Formats
Example:
If the contents of the PC are 1A47H and the contents of the SP (Registers FEH and FFH) are 3002H, the statement:
causes the SP to be decremented to 3000H, 1A4AH (the address following the CALL instruction) to be stored in
external data memory 3000 and 3001H, and the PC to be loaded with 3521H. The PC now points to the address of
the first statement in the procedure to be executed.
Example:
If the contents of the PC are 1A47H, the contents of the SP (Register FFH) are 72H, the contents of Register A4H
are 34H, and the contents of Register Pair 34H are 3521H, the statement:
causes the SP to be decremented to 70H, 1A4AH (the address following the CALL instruction) to be stored in R70H
and 71H, and the PC to be loaded with 3521H. The PC now points to the address of the first statement in the
procedure to be executed.
12-18
CALL 3521H
Op Code: D6 35 21
CALL @A4H
Op Code: D4 A4
ZiLOG
CALL
Call Procedure
UM001601-0803

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