Everything
5.4.6 Error processing

Errors regarding the correspondence between the .MACRO, .REPT, or .IRP directive and the .ENDM directive are output in the following cases.

-

If no corresponding .ENDM directive is found for a .MACRO, .REPT, or .IRP directive until the end of the source program, an error will be output at the end of the source program.

-

If no corresponding .MACRO, .REPT, or .IRP directive is found for an .ENDM directive, an error will be output.

-

If an error is found in the line where a .MACRO directive is defined, the line will be ignored and processing will continue. Therefore, the macro name will not be defined and if the macro name is referenced, an error will be output.