
.loop/.break/.endloop
Assemble Code Block Repeatedly
6-24
Syntax
.loop
well-defined expression
.endloop
Description
Two directives enable you to repeatedly assemble a block of code:
-
The .loop directive begins a repeatable block of code. The optional ex-
pression evaluates to the loop count (the number of loops to be per-
formed). If there is no expression, the loop count defaults to 246.
-
The .endloop directive terminates a repeatable block of code; it executes
when the number of loops performed equals the loop count given by .loop.
Example
This example shows the .loop directive.
;==================================================
; Create an FFT Twiddle table
;==================================================
.start ”TABLES”,0x809A00
.sect ”TABLES”
pi .set 3.1415926
N .set 4
;–––––––––––––––––––––––––;
TR ; REAL twiddles
;–––––––––––––––––––––––––;
.loop N/2
.float cos(($–TR)*pi/N);
.endloop
;–––––––––––––––––––––––––;
TI ; IMAG twiddles ;
;–––––––––––––––––––––––––;
.loop N/2
.float –1*sin(($–TI)*pi/N)
.endloop
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...