Rtr return from subroutine with restore rtr – Motorola DSP96002 User Manual

Page 486

Advertising
background image

A - 298

DSP96002 USER’S MANUAL

MOTOROLA

RTR

Return from Subroutine with Restore

RTR

Operation:

SSH

PC; SSL

SR; SP – 1

SP

Assembler Syntax:

RTR

Description:

The program counter and the status register are pulled from the system stack. The subroutine program

counter and status register are lost. RTR if functionally identical to RTI but has been made a separate in-

struction to be upward compatible with future parts and to simplify porting software.

Due to pipelining, the RTR instruction must not be immediately preceded by some instructions. See Sec-

tion A.10 for the list of restricted instructions.

CCR Condition Codes:

C

- Set according to value pulled from stack.

V

- Set according to value pulled from stack.

Z

- Set according to value pulled from stack.

N

- Set according to value pulled from stack.

I

- Set according to value pulled from stack.

LR

- Set according to value pulled from stack.

R

- Set according to value pulled from stack.

A

- Set according to value pulled from stack.

ER Status Bits:

INX

-Set according to value pulled from stack.

DZ

-Set according to value pulled from stack.

UNF

-Set according to value pulled from stack.

OVF

-Set according to value pulled from stack.

OPERR-Set according to value pulled from stack.

SNAN -Set according to value pulled from stack.

NAN

-Set according to value pulled from stack.

UNCC -Set according to value pulled from stack.

IER Flags:

SINX

-Set according to value pulled from stack.

SDZ

-Set according to value pulled from stack.

SUNF -Set according to value pulled from stack.

SOVF -Set according to value pulled from stack.

SIOP

-Set according to value pulled from stack.

Advertising