Conditional Assembly Directives
4-20
4.8
Conditional Assembly Directives
Conditional assembly directives enable you to instruct the assembler to
assemble 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 /.elseif /.else /.endif directives tell the assembler to conditionally
assemble a block of code according to the evaluation of an expression.
.if
expression
marks the beginning of a conditional block and
assembles code if the .if condition is true.
.elseif
expression
marks a block of code to be assembled if the .if
condition is false and .elseif is true.
.else
marks a block of code to be assembled if the .if
condition is false.
.endif
marks the end of a conditional block and termi-
nates the block.
-
The .loop /.break /.endloop directives tell the assembler to repeatedly
assemble a block of code according to the evaluation of an expression.
.loop
expression
marks the beginning a repeatable block of code.
.break
expression
tells the assembler to continue to repeatedly
assemble when the .break expression is false, and
to go to the code immediately after .endloop when
the expression is true.
.endloop
marks the end of a repeatable block.
The assembler supports several relational operators that are useful for
conditional expressions. For more information about relational operators, see
subsection 3.9.4,
Conditional Expressions, on page 3-27.
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......