GNU Info

Info Node: (nasm.info)Chapter 4

(nasm.info)Chapter 4


Next: Section 4.1 Prev: Section 3.9 Up: Top
Enter node , (file) or (file)node

Chapter 4: The NASM Preprocessor
********************************

   NASM contains a powerful macro processor, which supports conditional
assembly, multi-level file inclusion, two forms of macro (single-line
and multi-line), and a `context stack' mechanism for extra macro power.
Preprocessor directives all begin with a `%' sign.

   The preprocessor collapses all lines which end with a backslash (\)
character into a single line. Thus:

     %define THIS_VERY_LONG_MACRO_NAME_IS_DEFINED_TO \
             THIS_VALUE

   will work like a single-line macro without the backslash-newline
sequence.

Section 4.1
Single-Line Macros
Section 4.2
String Handling in Macros: `%strlen' and `%substr'
Section 4.3
Multi-Line Macros: `%macro'
Section 4.4
Conditional Assembly
Section 4.5
Preprocessor Loops: `%rep'
Section 4.6
Including Other Files
Section 4.7
The Context Stack
Section 4.8
Standard Macros
Section 4.9
TASM Compatible Preprocessor Directives
Section 4.10
Other Preprocessor Directives

automatically generated by info2www version 1.2.2.9