238
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
IFC — Assemble If Strings Equal
Syntax
IFC '
string1', 'string2'
Description
string1
Specifies an ASCII string. It can include whitespace and commas.
string2
Specifies an ASCII string. It can include whitespace and commas.
The IFC directive introduces a conditional assembly block. If the specified strings
string1 and string2 are equal, then the statements between this directive and the
first matching ELSEC or ENDC directive are assembled, and the remainder of
the block is skipped. Otherwise, the statements associated with the IFC directive
are skipped and control passes to the aforementioned matching directive.
The IFC directive is useful only within user-defined macros (e.g., testing for null
parameters). The single quotes that enclose each string need not appear literally
in the operand field of this directive prior to macro expansion
i.e., they can be
included in an actual parameter.
Conditional assembly directives can be nested to 40 levels.
Example
IFC '\2',''
MOVE.L #1,match
ENDC