Analog Devices ADSP-BF53x Blackfin Reference page 157

Table of Contents

Advertisement

Listing 4-1. Loop Example
P5 = 0x20 ;
LSETUP ( lp_start, lp_end ) LCO = P5 ;
lp_start:
R5 = R0 + R1(ns) || R2 = [P2++] || R3 = [I1++] ;
lp_end:
R5 = R5 + R2 ;
When executing an
address of the loop's last instruction into
first instruction into
computed as PC-relative addresses from the
offset. In each case, the offset value is added to the location of the
instruction.
The
and
LC0
LC1
32
2
–1 iterations through the loop.
When
LCx = 0
executes. If the loop counter is derived from a variable with a range
that may include zero, it is recommended to guard the loop against
the zero case.
P5 = [P4];
CC = P5 == 0;
IF CC JUMP lp_skip;
LSETUP (lp_start, lp_end) LC0 = P5;
lp_start:
lp_end:
lp_skip:
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
instruction, the program sequencer loads the
LSETUP
. The top and bottom addresses of the loop are
LTx
registers are unsigned 32-bit registers, each supporting
, the loop is disabled, and a single pass of the code
...
...
/* first instruction outside the loop */
Program Sequencer
and the address of the loop's
LBx
instruction, plus an
LSETUP
LSETUP
4-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents