This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

RTI

Return from Interrupt

Table of Contents

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
SyntaxOpcode Available on: # of # of Addressing Mode
(hex) 6502 65C02 65816 bytes cycles
RTI 40 x x x 1 61 Implied

Notes:

  1. 65816: Add 1 cycle in 65816 native mode (e=0)