4.5. Directives for Conditional Assembly and Control Flow

Conditional assembly directives enable you to instruct the assembler to assemble certain sections of code according to a true or false evaluation of an expression.

.if absolute expression
.elseif absolute expression
.ifdef symbol
.ifb text
.ifc string1, string2
.ifeq absolute expression
.ifeqs string1, string2
.ifge absolute expression
.ifgt absolute expression
.ifle absolute expression
.iflt absolute expression
.ifnb text
.ifnc string1, string2
.ifndef symbol
.ifnotdef symbol
.ifne absolute expression
.ifnes string1, string2

The following control flow directives provide ways to repeat a set of statements or to end assembly prior to the end of the source assembly file.

.irp symbol, values
.irpc symbol, values
.rept count