Analog Devices ADSP-BF53x Blackfin Reference page 415

Table of Contents

Advertisement

The stack grows down from high memory to low memory, therefore the
decrement operation is used for pushing, and the increment operation is
used for popping values. The Stack Pointer always points to the last used
location. When a pop operation is issued, the value pointed to by the
Stack Pointer is transferred and the
The illustration below shows what the stack would look like when a pop
such as
R3 = [ SP ++ ]
higher memory
Word0
Word1
Word2
<------- SP
...
lower memory
higher memory
Word0
Word1
Word2
<------
...
lower memory
higher memory
Word0
Word1
<------
Word2
...
lower memory
The value just popped remains on the stack until another push instruction
overwrites it.
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
occurs.
BEGINNING STATE
LOAD REGISTER R3 FROM STACK
SP
========>
R3 = Word2
POST-INCREMENT STACK POINTER
SP
is replaced by
SP
SP+4
Stack Control
.
10-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents