Motorola DSP56000 Manual page 361

24-bit digital signal processor
Hide thumbs Also See for DSP56000:
Table of Contents

Advertisement

DO
Example:
:
DO #cnt1, END1
:
DO #cnt2, END2
:
:
MOVE A,X:(R0)+
:
END2
ADD A,B X:(R1)+,X0
END1
:
:
Explanation of Example: This example illustrates a nested DO loop. The outer DO loop
will be executed "cnt1" times while the inner DO loop will be executed ("cnt1" * "cnt2")
times. Note that the labels END1 and END2 are located at the first instruction past the end
of the DO loop, as mentioned above, and are nested properly.
Condition Codes:
15
14
13
LF
DM
For source operand A or B:
LF — Set when a DO loop is in progress
S — Computed according to the definition. See Notes on page A-97.
L — Set if data limiting occurred. See Notes on page A-97.
For other source operands:
LF — Set when a DO loop is in progress
A - 92
INSTRUCTION DESCRIPTIONS
Start Hardware Loop
;begin outer DO loop
;begin inner DO loop
;last instruction in inner loop
;(in outer loop)
;last instruction in outer loop
;first instruction after outer loop
12
11
10
9
T
**
S1
S0
I1
MR
INSTRUCTION SET DETAILS
8
7
6
5
4
I0
S
L
E
U
CCR
DO
3
2
1
0
N
Z
V
C
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56k

Table of Contents