Motorola HC12 User Manual

Page of 328
User’s Manual
MCUez HC12 Assembler
276
Assembler Messages
MOTOROLA
Assembler Messages
12.3.36  A2329: FAIL Found
Type:
Error
Description:
The FAIL directive followed by a number smaller than 500 has
been detected in the source file. This is the normal behavior for
the FAIL directive. The FAIL directive is intended for use with
conditional assembly to detect a user-defined error or warning
condition.
Example:
cpChar: MACRO
          IFC "\1", ""
            FAIL 200   ; Error
            MEXIT
          ELSE
            LDD \1
          ENDIF
          IFC "\2", ""
            FAIL 600   ; Warning
          ELSE
            STD \2
          ENDIF
        ENDM
codeSec: SECTION
Start:
        cpChar , char2