IFNDEF


Control based on symbol (assembly performed when the symbol is not defined).

[Syntax]

[Δ]$[Δ]IFNDEF[Δ]switch-name[Δ][;comment]

[Function]

-

If the switch name specified by the operand is defined.

Skips to the ELSEIF, ELSEIFN, ELSE, or ENDIF control instruction corresponding to this control instruction.

 

-

If the specified switch name is not defined.

(a)

If this control instruction and the corresponding ELSEIF, ELSEIFN, or ELSE control instruction exist, assembles the block enclosed within this control instruction and the corresponding control instruction.

(b)

If none of the corresponding control instruction detailed above exist, assembles the block enclosed within this control instruction and the corresponding ENDIF control instruction.

[Use]

-

With these conditional assembly control instructions, source statements subject to assembly can be changed without major modifications to the source program.

-

If a statement for debugging that becomes necessary only during the program development is described in a source program, whether or not the debugging statement should be assembled (translated into machine language) can be specified by setting switches for conditional assembly.

[Description]

-

The rules of describing switch names are the same as the conventions of symbol description (for details, see "(2) Symbol").

-

Switch names can overlap with user-defined symbols other than reserved words. Note, however, that overlapping between switch names is checked.

-

Switch names are not output to the assembly list file's symbol-list information.