ST10 FAMILY PROGRAMMING MANUAL
106/172
RETI
Return from Interrupt Routine
Syntax
RETI
Operation
(IP) <--
((SP))
(SP)
<-- (SP) + 2
IF (SYSCON.SGTDIS=0) THEN
(CSP) <--
((SP))
(SP)
<-- (SP) + 2
END IF
(PSW) <--
((SP))
(SP)
<-- (SP) + 2
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
Addressing Modes
E
Z
V
C
N
S
S
S
S
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.
Mnemonic
Format
Bytes
RETI
FB 88
2
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...