[ERROR]
One of the conditional blocks is not closed. A conditional block can be opened using one of the following directives: IF, IFEQ, IFNE, IFLT, IFLE, IFGT, IFGE, IFC, IFNC, IFDEF, IFNDEF.
IFEQ (defineConst)
const1: DC.B 1
const2: DC.B 2
Close the conditional block with an ENDIF or ENDC directive.
IFEQ (defineConst)
const1: DC.B 1
const2: DC.B 2
ENDIF
Be careful: A conditional block, which starts inside of a macro, must be closed within the same macro.
The following portion of code generates an error, because the conditional block "IFEQ" is opened within the macro "MyMacro" and is closed outside from the macro.
MyMacro: MACRO
IFEQ (SaveRegs)
DC.B 1
DC.B 1
ENDM
DC.B 1
ENDIF