Assembler Directives - FAIL (Programmer Generated Error)


DESCRIPTION - The FAIL directive forces an assembler error and prints the optional message. If no message is provided the message: "ERROR: Unspecified user defined error." is used. The total error count is incremented as with any other error. The FAIL directive is normally used with conditional assembly directives. The assembly proceeds normally after the error has been printed.

Usage:
[label] FAIL  message

Example:


foo   MACRO
      IFC \1,''   ;if argument 1 is missing
        FAIL ERROR, Argument missing in call to foo macro.
        MEXIT
      ENDC
      .
      .
      ENDM