ADSP-BF53x/BF56x Blackfin Processor Programming Reference
10-3
Stack Control
higher memory
lower memory
The Stack Pointer must already be 32-bit aligned to use this instruction. If
an unaligned memory access occurs, an exception is generated and the
instruction aborts.
Push/pop on
RETS
has no effect on the interrupt system.
Push/pop on
RETI
does affect the interrupt system.
Pushing
RETI
enables the interrupt system, whereas popping
RETI
disables
the interrupt system.
Pushing the Stack Pointer is meaningless since it cannot be retrieved from
the stack. Using the Stack Pointer as the destination of a pop instruction
(as in the fictional instruction
SP=[SP++]
) causes an undefined instruction
exception. (Refer to
“Register Names” on page 1-13
for more
information.)
Flags Affected
None
Required Mode
User & Supervisor for most cases.
Explicit accesses to
USP
,
SEQSTAT
,
SYSCFG
,
RETI
,
RETX
,
RETN
, and
RETE
requires Supervisor mode. A protection violation exception results if any
of these registers are explicitly accessed from User mode.
P5
[--sp]=p5 ;
P1
[--sp]=p1 ;
R3
<-------- SP
[--sp]=r3 ;
...
Содержание ADSP-BF53x Blackfin
Страница 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 780: ...Product Identification Register 21 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 994: ...Instructions Listed By Operation Code C 194 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...