ST10 FAMILY PROGRAMMING MANUAL
RETI
Syntax
Operation
Description
Returns from an interrupt routine. The PSW, IP, and CSP are popped off the system stack. Execution
resumes at the instruction which had been interrupted. The previous system state is restored after the
PSW has been popped. The CSP is only popped if segmentation is enabled. This is indicated by the
SGTDIS bit in the SYSCON register.
Flags
E
S
E
Restored from the PSW popped from stack.
Z
Restored from the PSW popped from stack.
V
Restored from the PSW popped from stack.
C
Restored from the PSW popped from stack.
N
Restored from the PSW popped from stack.
Addressing Modes
Mnemonic
RETI
106/172
Return from Interrupt Routine
RETI
(IP)
(SP)
IF (SYSCON.SGTDIS=0) THEN
(CSP)
(SP)
END IF
(PSW)
(SP)
Z
S
Format
FB 88
<-- ((SP))
<-- (SP) + 2
<-- ((SP))
<-- (SP) + 2
<-- ((SP))
<-- (SP) + 2
V
S
Bytes
2
C
N
S
S
Need help?
Do you have a question about the ST10 Series and is the answer not in the manual?
Questions and answers