
<
2
.75
7UGT U/CPWCN
=L/2*
#FFTGUU5RCEG
7/<:
IRET
Interrupt Return
Instruction Format:
IRET
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.
Flags:
When the instruction is executed, the flags are set as follows:
Example: Stack Pointer Low
(
register
FFH)
currently contains the value
45H
. Register
45H
contains the
value
00H
. Register
46H
contains
6FH
. Register
47
Contains
E4H
. The following statement restores the
Flags 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 is at location
6FE4H
.
IRET
Op Code: BF
C:
The value prior to the issuance of the interrupt.
Z:
The value prior to the issuance of the interrupt.
S:
The value prior to the issuance of the interrupt.
V:
The value prior to the issuance of the interrupt.
D:
The value prior to the issuance of the interrupt.
H:
The value prior to the issuance of the interrupt.
OPC
OPC (Hex)
BF