AARM User's Guide

Discontinued

IRPC

The IRPC built-in macro is defined as follows:

IRPC parm-name, parm-string
macro-body
ENDM

Where

parm-nameis the parameter name that is used in the macro-body. Each time the macro is expanded, subsequent characters from the parm-string are used to replace parm-name in the macro-body.
parm-stringis the text string whose characters are used to replace parm-name in the macro-body.
macro-bodyis the text that is expanded when the macro is invoked.

For example:

IRPC sendchar, TEST
        MOV     R2, #'sendchar'
        BL      outchar
ENDM

expands as:

        MOV     R2, #'T'
        BL      outchar
        MOV     R2, #'E'
        BL      outchar
        MOV     R2, #'S'
        BL      outchar
        MOV     R2, #'T'
        BL      outchar