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.

RTS Return from Subroutine RTSOperation:SSH -+ PC; SP-1 -+ SPAssembler Syntax:RTSDescription: Pull the program counter (PC) from the system stack. The previous programcounter is lost. The status register (SR) is not affected.Restrictions: Due to pipelining in the program controller and the fact that the RTSinstruction accesses certain controller registers, the RTS instruction must not be immediatelypreceded by any <strong>of</strong> the following instructions:Immediately before RTSMOVEC to SSH, SSL, or SPMOVEM to SSH, SSL, or SPMOVEP to SSH, SSL, or SPMOVEC from SSHMOVEM from SSHMOVEP from SSHAn RTS instruction cannot be the last instruction in a DO loop (at LA).An RTS instruction cannot be repeated using the REP instruction.Example:RTS;pull PC from system stackExplanation <strong>of</strong> Example: The RTS instruction pulls the 16-bit program counter (PC)from the system stack and updates the system stack pointer (SP).Condition Codes:15 14 13 12 11 10 9 8 7 6 5 4 3 2 01 LF 10M 1 T 1** 181 180 111 1 10 18 I LIE I u I N I z v I :.1.~ MR •. l1li( CCR _.The condition codes are not affected by this instruction.

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

Saved successfully!

Ooh no, something went wrong!