Download Print this page

Motorola Freescale Semiconductor DSP56000 User Manual page 72

Hide thumbs Also See for Freescale Semiconductor DSP56000:

Advertisement

ENDDO
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:
15
14
13
LF
**
T
The condition codes are not affected by this instruction.
Instruction Format:
ENDDO
Opcode:
23
0
0
0
0
0
Instruction Fields:
None
Timing: 2 oscillator clock cycles
Memory: 1 program word
A - 72
Freescale Semiconductor, Inc.
End Current DO Loop
12
11
10
9
8
S1
S0
I1
I0
**
MR
16 15
0
0
0
0
0
0
0
DSP56000/DSP56001 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
7
6
5
4
3
2
L
E
U
N
Z
**
CCR
8
7
0
0
0
0
1
0
0
ENDDO
1
0
V
C
0
0
1
1
0
0
MOTOROLA

Advertisement

loading

This manual is also suitable for:

Freescale semiconductor dsp56001