User Manual
C166S V2
Detailed Instruction Description
User Manual
8-292
V 1.7, 2001-01
RETI
Return from Interrupt Subroutine
RETI
Group
Return Instructions
Syntax
RETI
Source Operand(s)
none
Destination Operand(s)
none
Operation
(IP)
←
((SP))
(SP)
←
(SP) + 2
IF (CPUCON1.SGTDIS = 0) THEN
(CSP)
←
((SP))
(SP)
←
(SP) + 2
END IF
(PSW)
←
((SP))
(SP)
←
(SP) + 2
Description
Returns from an interrupt routine. The IP, CSP, and PSW are popped off the system
stack. The CSP is only popped if segmentation is enabled. This is indicated by the
SGTDIS bit in the CPUCON1 register.
CPU Flags
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.
Encoding
E
Z
V
C
N
*
*
*
*
*
Mnemonic
Format
Bytes
RETI
FB
88
2
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...