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 #174 background imageLoading...
Page #174 background image
Z8 Microcontrollers
Instruction Descriptions and Formats ZiLOG
12-34 UM001601-0803
IRET
INTERRUPT RETURN
IRET
Interrupt RETURN
IRET
Instruction Format:
Operation:
FLAGS <— @SP
SP <— SP + 1
PC <— @SP
SP <— SP + 2
IMR (7) <— 1
This instruction is issued at the end of an interrupt service routine. It restores the Flag Register (Control Register
FCH) and the PC. It also re-enables any interrupts that are potentially enabled.
Example:
If Stack Pointer Low Register FFH currently contains the value 45H, Register 45H contains the value 00H, Register
46H contains 6FH, and Register 47 Contains E4H, the statement:
IRET
Op Code: BF
restores the FLAG Register FCH with the value 00H, restores the PC with the value 6FE4H, re-enables the
interrupts, and sets the Stack Pointer Low to 48H. The next instruction to be executed will be at location 6FE4H.
Flags: C: Restored to original setting before the interrupt occurred.
Z: Restored to original setting before the interrupt occurred.
S: Restored to original setting before the interrupt occurred.
V: Restored to original setting before the interrupt occurred.
D: Restored to original setting before the interrupt occurred.
H: Restored to original setting before the interrupt occurred.

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