|Home > Overview of the Assembler > Directives that can be omitted in pass 2 of the assembler|
Most directives must appear in both passes of the assembly process. You can omit some directives from the second pass over the source code by the assembler, but doing this is strongly discouraged.
Directives that can be omitted from pass 2 are:
The code in the following example assembles without error although the
directive does not appear in pass 2:
AREA ||.text||,CODE x EQU 42 IF :LNOT: :DEF: sym ASSERT x == 42 ENDIF sym EQU 1 END
Directives that appear in pass 2 but do not appear in pass 1 cause an assembly error.
However, this does not cause an assembly error when using the
ELIF directives if their matching
IF directive appears
in pass 1. The following example assembles without error because the
appears in pass 1:
AREA ||.text||,CODE x EQU 42 IF :DEF: sym ELSE ASSERT x == 42 ENDIF sym EQU 1 END