A1000: Conditional directive not closed

[ERROR]

Description

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.

Example
      IFEQ (defineConst)

  const1:  DC.B 1

  const2:  DC.B 2
  
Tips

Close the conditional block with an ENDIF or ENDC directive.

Example
      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.

Example

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