Topic : MC56001 Documentation Author : JAY Software Version : 1.0 (19/11/1997) Subject : Programming/Assembler Nodes : 152 Index Size : 4106 HCP-Version : 4 Compiled on : Atari @charset : atarist @lang : @default : @help : @options : -i +y +z -t4 @width : 100 View Ref-FileRTI Return from Interrupt Operation: SSH -> PC SSL -> SR SP - 1 -> SP Assembler Syntax: RTI Description: Pull the program counter (PC) and the status register (SR) from the stack. The previous program counter and status register are lost. Restrictions: Due to pipelining in the program controller and the fact that the RTI instruction accesses certain controller registers, the RTI instruction must be immediately preceded by any of the following instructions: Immediately before RTI: MOVEC to LA, LC, SSH, SSL, or SP MOVEM to LA, LC, SSH, SSL, or SP MOVEP to LA, LC, SSH, SSL, or SP MOVEC from SSH MOVEM from SSH MOVEP from SSH ANDI MR or ANDI CCR ORI MR or ORI CCR An RTI instruction cannot be the LAST instruction in a DO loop (at LA). An RTI instruction cannot be repeated using the REP instruction. Condition Codes: L- Set according to the value pulled from the stack E- Set according to the value pulled from the stack U- Set according to the value pulled from the stack N- Set according to the value pulled from the stack Z- Set according to the value pulled from the stack V- Set according to the value pulled from the stack C- Set according to the value pulled from the stack Instruction Format: RTI Timing: 4+rx oscillator clock cycles Memory: 1 program word