| |||||||||||||||||||
| |||||||||||||||||||
The IRPC (iteration repeat with character substitution) directive is similar to the IRP directive. The difference is in how the variable parameter values are specified. Its syntax is IRPC parameter, string statments ENDMThe statements in the macro body are repeated once for each character in string. Like in the IRP directive, string specifies the number of iterations as well as the character to be used in each iteration.
Note that the angle brackets around the string argument in the IRPC macro are needed to allow for spaces in the string. Also, it is important to note here that the LOCAL definition has to be in the IRPC macro body and not in the DSTRU macro body. The macro invocation DSTRU Hello will produce the macro expansion as shown in the next figure.
|