Assembler Directives
IFCC — Conditional Assembly
MCUez HC12 Assembler User’s Manual
MOTOROLA Assembler Directives 183
8.18 IFCC — Conditional Assembly
Syntax: IFCC <condition>
[<assembly language statements>]
[ELSE]
[<assembly language statements>]
ENDIF
Description: These directives can be replaced by the IF directive. If IFCC
<condition> is true, the statements immediately following the
IFCC directive are assembled. Assembly continues until the
corresponding ELSE or ENDIF directive is reached, after
which assembly moves to the statements followingthe ENDIF
directive. Nesting of conditional blocks is allowed. The
maximum level of nesting is limited by the available memory
at assembly time.
Table 8-9 lists the available conditional types.
Table 8-9. Conditional Types
IFCC Condition Meaning
IFEQ <expression> IF <expression> == 0
IFNE <expression> IF <expression> != 0
IFLT <expression> IF <expression> < 0
IFLE <expression> IF <expression> <= 0
IFGT <expression> IF <expression> > 0
IFGE <expression> IF <expression> >= 0
IFC <string1>, <string2> IF <string1> == <string2>
IFNC <string1>, <string2> IF <string1> != <string2>
IFDEF <label> IF <label> was defined
IFNDEF <label> IF <label> was not defined