.irpc symbol,values
…Evaluate a sequence of statements assigning different values to symbol.
The sequence of statements starts at the line following the .irpc
directive, and is terminated by an .endr
directive. For each character
in each (possibly double quoted) values, symbol is set to the
character, and the sequence of statements is assembled. If no values is
listed, the sequence of statements is assembled once, with symbol set to
the null string. To refer to symbol within the sequence of statements,
use \symbol.
For example, assembling
.irpc param,123 move d\param,sp@- .endr
is equivalent to assembling
move d1,sp@- move d2,sp@- move d3,sp@-
For some caveats with the spelling of symbol, see also the discussion
at See .macro
.