Assembler Directives
FAIL — Generate Error Message
MCUez HC12 Assembler User’s Manual
MOTOROLA Assembler Directives 179
8.16 FAIL — Generate Error Message
Syntax: FAIL <arg> | <string>
Description: FAIL directive operation depends on the operand specified. If
<arg> is in the range [500–$FFFFFFFF], the assembler
generates a warning message, including the line number and
argument of the directive.
Example: The following code segment:
cpChar: MACRO
IFC "\1", ""
FAIL 200
MEXIT
ELSE
LDD \1
ENDIF
IFC "\2", ""
FAIL 600
ELSE
STD \2
ENDIF
ENDM
codeSec: SECTION
Start:
cpChar char1
Generates this error message:
>> in "Y:\DEMO\HC12A\cbe.asm", line 14, col 19, pos 242
IFC "\2", ""
FAIL 600
^
WARNING A2332: FAIL found
If <arg> is in the range [0–499], the assembler generates an
error message, including the line number and argument of the
directive. The assembler does not generate an object file.