Tells the assembler to repeatedly expand a series of statements described between .IRP directive and the .ENDM directive the number of times equivalent to the number of actual parameters while replacing the formal parameter with the actual parameters (from the left, the order) specified in the operand field.
Symbol field |
Mnemonic field |
Operand field |
Comment field |
[label:] |
.IRP : |
formal-parameter[ actual-parameter[, ... ]] |
[; comment] |
If no corresponding .ENDM directive is found for an .IRP directive within a single file, an error will occur. |
The code is expanded as shown below after assembling.