dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 358

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Example:
END2
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:
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
DO
DO #cnt1, END1
DO #cnt2, END2
MOVE A,X:(R0)+
ADD A,B X:(R1)+,X0
LF
15
:
:
:
:
:
:
:
DM
14
13
T
Freescale Semiconductor, Inc.
**
12
For More Information On This Product,
MR
INSTRUCTION DESCRIPTIONS
S1
11
INSTRUCTION SET DETAILS
S0
10
Go to: www.freescale.com
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
I1
9
I0
8
S
7
L
6
E
5
U
4
CCR
N
3
Z
2
V
1
C
0
MOTOROLA
DO

Related parts for dsp56000