240
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.ifdef — Assemble If Symbol Defined
Syntax
.ifdef
symbol
Description
symbol
Specifies a user-defined symbol.
The .ifdef directive introduces a conditional assembly block. If the specified
symbol
symbol is defined when the directive is encountered, then the statements
between this directive and the first matching .elifdef, .else, or .endif directive are
assembled and the remainder of the block is skipped. Otherwise, the statements
associated with the .ifdef directive are skipped and control passes to the
aforementioned matching directive.
Conditional assembly directives can be nested to 40 levels.
Example
.ifdef serial
move.l #serial_dev,io_func
.endif