IRP
The IRP built-in macro is defined as follows:
IRP parm-name, <parm-list>
macro-body
ENDM
Where
| parm-name | is the parameter name that is used in the macro-body. Each time the macro is expanded, subsequent values from the parm-list are used to replace parm-name in the macro-body. |
| parm-list | is the list of parm-name replacement values. |
| macro-body | is the text that is expanded when the macro is invoked. |
For example:
IRP regnum, <R0,R1,R2,R3,R4>
PUSH regnum
ENDM
expands as:
PUSH R0
PUSH R1
PUSH R2
PUSH R3
PUSH R4