IFDEF


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

[Syntax]

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

[Function]

-

If the symbol specified by the switch name is 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.

-

If the symbol specified by the switch name is not defined

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

[Description]

-

The rules of describing switch names are the same as the conventions of symbol description "(3) Symbol".

-

The maximum number of nest level of the conditional assembly control instruction is 4,294,967,294 (=0xFFFFFFFE) (theoretical value). The actual number that can be used depends on the amount of memory, however.