RTI
Return from Interrupt
The RTI instruction is used at the end of an interrupt handler. It pulls both the status register and program counter from the stack. For 16bit processors running in native mode it also pulls the program bank register from the stack.
Unlike RTS, the address on the stack is the actual return address. (RTS expects it to be the address before the next instruction).
Instructions
Syntax | Opcode | Available on: | # of | # of | Addressing Mode | ||
---|---|---|---|---|---|---|---|
(hex) | 6502 | 65C02 | 65816 | bytes | cycles | ||
RTI | 40 | x | x | x | 1 | 61 | Implied |
Notes:
- 65816: Add 1 cycle in 65816 native mode (e=0)
Last modified November 5, 2021: Add instruction categories (6b74ff9)