11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RTI Return from Interrupt RTIOperation:SSH ~ PC; SSL ~ SR; SP-1 ~ SPAssembler Syntax:RTIDescription: Pull the program counter (PC) and the status register (SR) from the systemstack. The previous program counter and status register are lost.Restrictions: Due to pipelining in the program controller and the fact that the RTIinstruction accesses certain program controller registers, the RTI instruction must not beimmediately preceded by any <strong>of</strong> the following instructions:Imm~dlately before RTIMOVEC to SR, SSH, SSL, or SPMOVEM to SR, SSH, SSL, or SPMOVEP to SR, SSH, SSL, or SPMOVEC from SSHMOVEM from SSHMOVEP from SSHANDI MR or ANDI CCRORI MR or ORI CCRAn RTI instruction cannot be the last instruction in a DO loop (at LA).An RTI instruction cannot be repeated using the REP instruction.Example:RTI;pull PC and SR from system stackExplanation <strong>of</strong> Example: The RTI instruction pulls the 16-bit program counter (PC) andthe 16-bit status register (SR) from the system stack and updates the system stackpointer (SP).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!