English
Language : 

M166 Datasheet, PDF (99/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
RETI
Return from Interrupt Routine
RETI
Syntax
Operation
Description
RETI
(IP) ← ((SP))
(SP) ← (SP) + 2
IF (SYSCON.SGTDIS=0) THEN
(CSP) ← ((SP))
(SP) ← (SP) + 2
END IF
(PSW) ← ((SP))
(SP) ← (SP) + 2
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 indi-
cated by the SGTDIS bit in the SYSCON register.
Condition Flags
E
Z
V
C
N
S
S
S
S
S
Addressing Modes
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
RETI
Format
FB 88
Bytes
2
Semiconductor Group
99
Version 1.2, 12.97