dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 534

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Operation:
Description: Pull the program counter (PC) from the system stack. The previous pro-
gram counter is lost. The status register (SR) is not affected.
Restrictions: Due to pipelining in the program controller and the fact that the RTS
instruction accesses certain controller registers, the RTS instruction must not be immedi-
ately preceded by any of the following instructions:
Immediately before RTS
An RTS instruction cannot be the last instruction in a DO loop (at LA).
An RTS instruction cannot be repeated using the REP instruction.
Example:
Explanation of Example: The RTS instruction pulls the 16-bit program counter (PC)
from the system stack and updates the system stack pointer (SP).
Condition Codes:
The condition codes are not affected by this instruction.
A - 268
RTS
SSH
RTS
15
LF
PC; SP–1
:
:
DM
14
13
T
Freescale Semiconductor, Inc.
**
12
For More Information On This Product,
MR
SP
;pull PC from system stack
INSTRUCTION DESCRIPTIONS
S1
11
INSTRUCTION SET DETAILS
MOVEC to SSH, SSL, or SP
MOVEM to SSH, SSL, or SP
MOVEP to SSH, SSL, or SP
MOVEC from SSH
MOVEM from SSH
MOVEP from SSH
S0
10
Go to: www.freescale.com
Return from Subroutine
I1
9
I0
8
S
7
Assembler Syntax:
6
L
RTS
E
5
U
4
CCR
N
3
Z
2
V
1
C
0
MOTOROLA
RTS

Related parts for dsp56000