Node:If, Next:Incbin, Previous:Ident, Up:Pseudo Ops
.if absolute expression
.if marks the beginning of a section of code which is only
considered part of the source program being assembled if the argument
(which must be an absolute expression) is non-zero. The end of
the conditional section of code must be marked by
.endif); optionally, you may include code for the
alternative condition, flagged by
If you have several conditions to check,
.elseif may be used to avoid
nesting blocks if/else within each subsequent
The following variants of
.if are also supported:
.ifeq absolute expression
.ifc. The strings must be quoted using double quotes.
.ifge absolute expression
.ifgt absolute expression
.ifle absolute expression
.iflt absolute expression
.ifc, but the sense of the test is reversed: this assembles the following section of code if the two strings are not the same.
.ifne absolute expression
.ifeqs, but the sense of the test is reversed: this assembles the following section of code if the two strings are not the same.