
3-4
Optimizing DSP56300/DSP56600 Applications
MOTOROLA
Program Control
The Hardware Stack
The current stack location is pointed by the SP register. A single
stack location can store two words, referred to as occupying the
“high” and “low” halves of the stack location. The current stack
locations pointed by SP (top of stack) are named SSH and SSL,
respectively. A single “push” or “pop” activity can access the SSH
and SSL concurrently. Stack activities are triggered implicitly at
execution of specialized instruction or fulfillment of certain
conditions. These activities are summarized in
Note:
The table only summarizes the effect of those instructions on
the stack. Some instructions update other registers as well.
For complete information on an instruction, refer to
Appendix A
in the
DSP56300
and
DSP56600 Family
Manuals
.
Table 3-1
Implicit Stack Activity
Activity
Triggered by Instruction or
Condition
Implicit Stack
Actions Taken
jump to
subroutine
JSR, BSR
JScc, BScc (condition true)
JSCLR, BSCLR (condition true)
JSSET, BSSET (condition true)
SP: = SP + 1;
SSH: = PC; SSL: = SR.
return from
subroutine
RTS
PC: = SSH
SP: = SP - 1
return from
long interrupt
RTI
PC: = SSH; SR: = SSL
SP: = SP – 1
move to SSH
MOVEC <source>,SSH
SP: = SP + 1
SSH: = <source>
move from SSH MOVEC SSH,<destination>
<destination>: = SSH
SP: = SP – 1
enter DO loop
DO
DOR
DO FOREVER
DOR FOREVER
SP: = SP + 1
SSH: = LA, SSL: = LC
SP: = SP + 1
SSH: = PC, SSL: = SR
exit DO loop at
last address
(LF bit set and FV bit clear
and fetched address = LA
and LC = 0).
ENDDO
SR: = SSL
SP: = SP – 1
LA: = SSH, LC: = SSL
SP: = SP – 1
Содержание DSP56300
Страница 49: ...3 20 Optimizing DSP56300 DSP56600 Applications MOTOROLA Program Control Using Fast Interrupts ...
Страница 95: ...7 10 Optimizing DSP56300 DSP56600 Applications MOTOROLA Compact Opcode Use Special Instructions ...
Страница 99: ...A 4 Optimizing DSP56300 DSP56600 Applications MOTOROLA Saving Power Disabling Functional Blocks ...
Страница 103: ...B 4 Optimizing DSP56300 DSP56600 Applications MOTOROLA Debug and Test Support Address Tracing ...