dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 365

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Explanation of Example: This example illustrates the use of the ENDDO instruction to
terminate the current DO loop. The value of the loop counter (LC) is compared with the
value in the Y1 register to determine if execution of the DO loop should continue. Note
that the ENDDO instruction updates certain program controller registers but does not
automatically jump past the end of the DO loop. Thus, if this action is desired, a JMP
instruction (i.e., JMP NEXT as previously shown) must be included after the ENDDO
instruction to transfer program control to the first instruction past the end of the DO loop.
Condition Codes:
The condition codes are not affected by this instruction.
Instruction Format:
Opcode:
Instruction Fields:
Timing: 2 oscillator clock cycles
Memory: 1 program word
MOTOROLA
ENDDO
ENDDO
None
23
0
15
LF
0
0
DM
14
0
13
T
0
Freescale Semiconductor, Inc.
**
0
12
For More Information On This Product,
MR
0
INSTRUCTION DESCRIPTIONS
S1
11
INSTRUCTION SET DETAILS
16 15
0
S0
10
Go to: www.freescale.com
0
End Current DO Loop
0
I1
9
0
I0
8
0
S
7
0
0
6
L
0
E
5
0
8
U
4
7
CCR
1
N
3
0
0
Z
2
0
V
1
ENDDO
1
C
0
1
0
0
0
A - 99

Related parts for dsp56000