Keil Logo

Standard Macro Controls

The Ax51 Assembler provides a number of control statements that are used specifically for standard macros.

Control Description
MACRO Defines a macro specifying the macro name, parameter list, and macro body.
EXITM Causes macro expansion to terminate immediately.
ENDM Marks the end of a macro definition.
LOCAL Specifies up to 16 local labels used within the macro.
REPT Specifies a block that is expanded a specified number of times.
IRP Specifies a list of arguments that are substituted, one at a time, for a specified parameter in the specified macro block.
IRPC Specifies an argument to be substituted, one character at a time, for a specified parameter in the specified macro block.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.