Infineon Technologies C166S V2 User Manual page 292

16-bit microcontroller
Table of Contents

Advertisement

RETI
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(IP) ← ((SP))
(SP) ← (SP) + 2
IF (CPUCON1.SGTDIS = 0) THEN
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
Mnemonic
RETI
User Manual
Return from Interrupt Subroutine
Return Instructions
RETI
none
none
(CSP) ← ((SP))
(SP) ← (SP) + 2
E
Z
*
*
Detailed Instruction Description
V
C
*
*
Format
FB 88
8-292
User Manual
C166S V2
RETI
N
*
Bytes
2
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents