230
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.elifdef — Assemble If Alternative Symbol Defined
Syntax
.elifdef
symbol
Description
symbol
Specifies a user-defined symbol
The .elifdef directive is used in a conditional assembly block. It is equivalent to
the .else directive followed by an .ifdef–.endif block (see .ifdef and .endif
directives). Its use obviates the need for multiple .endif directives in conditional
blocks that have multiple alternatives.
The .elifdef directive is optional within a conditional assembly block.
Example
.ifdef option1
moveq
#1,d0
.elifdef option2
moveq
#2,d0
.elifdef option3
moveq
#3,d0
.endif