4.9.17 Error Directive

The error directive produces a user-defined build-time error message that will halt the assembler. The message to be printed should this directive be executed is specified as a string. Typically this directive will be made conditional, to detect an invalid situation.

For example:
IF MODE
  call process
ELSE
  ERROR "no mode defined"
ENDIF