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.
The .irp directive tells the assembler to repeatedly expand a series of statements described between this directive and the .endm directive (called the IRP-ENDM block) 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. |
Use the .irp and .endm directives to describe a series of statements, only some of which become variables, repeatedly in a source program. |
If the .endm directive corresponding to .irp directive does not exist, the assembler outputs the message. |
If the .exitm directive appears in the IRP-ENDM block, subsequent expansion of the IRP-ENDM block by the assembler is terminated. |
.cseg text .irp PARA 0xA, 0xB, 0xC ; (1) ; IRP-ENDM block add PARA, r12 mov r11, r12 .endm ; (2) ; Source text |