Section 3: Assembler
231
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.else — Assemble If Converse True
Syntax
.else
Description
The
.else
directive is used in a conditional assembly block. This directive
matches the immediately preceding
.ifdef
,
.ifndef
, or
.elifdef
directive that is not
matched by a
.endif
or
.else
directive. If this preceding directive fails, then the
statements between the
.else
directive and the matching
.endif
directive are
assembled; otherwise, these statements are skipped.
The
.else
directive is optional within a conditional assembly block.
Example
.ifdef debug
moveq #1,d0
.else
moveq #0,d0
.endif
ELSEC — Assemble If Converse True
Syntax
ELSEC
Description
The
ELSEC
directive is used in a conditional assembly block. This directive
matches the immediately preceding
IFC
,
IFNC
, or
IFcc
directive that is not
matched by an
ENDC
or
ELSEC
directive. If this preceding directive fails, then
the statements between the
ELSEC
directive and the matching
ENDC
directive
are assembled; otherwise, these statements are skipped.
The
ELSEC
directive is optional within a conditional assembly block.
Example
IFNE debug
MOVEQ #1,D0
ELSEC
MOVEQ #0,D0
ENDC