XA User Guide 6-148 4/17/98
RETI Return from Interrupt
Syntax: RETI
Operation: (PSW) <-- ((SSP))
(PC.23-0) <-- ((SSP))
(SSP) <-- (SSP) + 6
Description: A 24-bit return address is popped from the stack and used to replace the entire
program counter value. The Program Status Word is also restored by being popped from the stack.
This instruction is a privileged instruction (limited to system mode) and is used to return from an
interrupt/exception. An attempt to use RETI in user mode will generate a trap.
Note: if the XA is in page 0 mode, only a 16-bit address will be popped from the stack.
Size: None
Flags Updated: All PSW bits are written by the POP of the PSW value in System mode.
Bytes: 2
Clocks: 10/8 (PZ)
Encoding:
1 1 0 1 0 1 1 0
1 0 0 1 0 0 0 0