
Directives That Enable Conditional Assembly
6-10
6.5
Directives That Enable Conditional Assembly
Conditional assembly directives enable you to instruct the assembler to as-
semble certain sections of code according to a true or false evaluation of an
expression. Two sets of directives allow you to assemble conditional blocks of
code:
-
The .if/.else/.endif directives tell the assembler to assemble a block of
code according to a true or false evaluation of an expression. Note that you
cannot nest if statements.
.if
well-defined expression
marks the beginning of a conditional
block and assembles code if the .if
well-
defined expression is true.
.else
marks a block of code to be assembled
if the .if
well-defined expression is
false.
.endif
marks the end of a conditional block
and terminates the block.
-
The .loop /.break /.endloop directives tell the assembler to repeatedly as-
semble a block of code according to the evaluation of an expression.
.loop
well-defined expression
marks the beginning a repeatable
block of code. The optional expression
evaluates to the loop count.
.endloop
marks the end of a repeatable block.
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...