Motorola HC12 Manuale Utente

Pagina di 328
Assembler Messages
Message Codes
MCUez HC12 Assembler
User’s Manual
MOTOROLA
Assembler Messages
247
12.3.1  A1000: Conditional Directive not Closed
Type:
Error
Description:
One of the conditional blocks is not closed. A conditional
block can be opened using one of these directives:
IF, IFEQ, IFNE, IFLT, IFLE, IFGT, IFGE, IFC, IFNC, IFDEF,
IFNDEF
Example:
    IFEQ (defineConst)
const1:  DC.B 1
const2:  DC.B 2
Tip:
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 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 the macro.
MyMacro: MACRO
    IFEQ (SaveRegs)
         NOP
         NOP
         ENDM
         NOP
    ENDIF