Assembler Messages
Message Codes
MCUez HC12 Assembler User’s Manual
MOTOROLA Assembler Messages 283
12.3.43 A2338: <Message String>
Type: Error
Description: The FAIL directive followed by a string 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 "A char must be specified as first parameter"
MEXIT
ELSE
LDD \1
ENDIF
IFC "\2", ""
FAIL 600 ; Warning
ELSE
STD \2
ENDIF
ENDM
codeSec: SECTION
Start:
cpChar , char2