as: Irp
1
1 7.47 '.irp SYMBOL,VALUES'...
1 ============================
1
1 Evaluate a sequence of statements assigning different values to SYMBOL.
1 The sequence of statements starts at the '.irp' directive, and is
1 terminated by an '.endr' directive. For each VALUE, SYMBOL is set to
1 VALUE, and the sequence of statements is assembled. If no VALUE is
1 listed, the sequence of statements is assembled once, with SYMBOL set to
1 the null string. To refer to SYMBOL within the sequence of statements,
1 use \SYMBOL.
1
1 For example, assembling
1
1 .irp param,1,2,3
1 move d\param,sp@-
1 .endr
1
1 is equivalent to assembling
1
1 move d1,sp@-
1 move d2,sp@-
1 move d3,sp@-
1
1 For some caveats with the spelling of SYMBOL, see also ⇒Macro.
1