AARM User's Guide

Discontinued

IRP

The IRP built-in macro is defined as follows:

IRP parm-name, <parm-list>
macro-body
ENDM

Where

parm-nameis 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-listis the list of parm-name replacement values.
macro-bodyis the text that is expanded when the macro is invoked.

For example:

IRP sendreg, <R0,R1,R3,R4>
        MOV     R2,sendreg
        BL      outchar
ENDM

expands as:

        MOV     R2,R0
        BL      outchar
        MOV     R2,R1
        BL      outchar
        MOV     R2,R3
        BL      outchar
        MOV     R2,R4
        BL      outchar