dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 402

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Operation:
SP+1 SP; PC SSH; SR SSL; 0xxx PC
SP+ SP; PC SSH; SR SSL; ea PC
Description: Jump to the subroutine whose location in program memory is given by the
instruction’s effective address. The address of the instruction immediately following the
JSR instruction (PC) and the system status register (SR) is pushed onto the system
stack. Program execution then continues at the specified effective address in program
memory. All memory alterable addressing modes may be used for the effective address.
A fast short jump addressing mode may also be used. The 12-bit data is zero extended
to form the effective address.
Restrictions: A JSR instruction used within a DO loop cannot specify the loop
address (LA) as its target.
A JSR instruction used within a DO loop cannot begin at the address LA within that DO
loop.
A JSR instruction cannot be repeated using the REP instruction.
Example:
Explanation of Example: In this example, program execution is transferred to the sub-
routine at address P:(R5) in program memory, and the contents of the R5 address regis-
ter are then updated.
Condition Codes:
The condition codes are not affected by this instruction.
A - 136
JSR
JSR (R5)+
15
LF
:
:
DM
14
13
T
Freescale Semiconductor, Inc.
**
12
For More Information On This Product,
MR
INSTRUCTION DESCRIPTIONS
S1
11
INSTRUCTION SET DETAILS
;jump to subroutine at (R5), update R5
Jump to Subroutine
S0
10
Go to: www.freescale.com
I1
9
I0
8
S
7
Assembler Syntax:
6
L
JSR xxx
JSR ea
E
5
U
4
CCR
N
3
Z
2
V
1
C
0
MOTOROLA
JSR

Related parts for dsp56000