Copyright (C) 2000-2012 |
GNU Info (nasm.info)Section 4.44.4. Conditional Assembly ========================= Similarly to the C preprocessor, NASM allows sections of a source file to be assembled only if certain conditions are met. The general syntax of this feature looks like this: %if<condition> ; some code which only appears if <condition> is met %elif<condition2> ; only appears if <condition> is not met but <condition2> is %else ; this appears if neither <condition> nor <condition2> was met %endif The `%else' clause is optional, as is the `%elif' clause. You can have more than one `%elif' clause as well.
automatically generated by info2www version 1.2.2.9 |