Keil Logo

MPL Macro Overview

Using MPL macros in your assembler programs is relatively easy.

  1. Use the MPL assembler directive to enable the MPL macro processor. More importantly, make certain MPL macro expansion is not disabled by the NOMACRO directive.
  2. Define the macros you wish to use. You may create an include file that contains macro definitions you wish to share between source files.
  3. Call or invoke the defined macro functions in your program source. The macro processor expands macro functions (at macro processing time) which the assembler assembles.

All MPL predefined and user-defined functions must begin with the meta character. By default, the meta character is the percent ('%') character. However, the meta character may be changed by the METACHAR MPL function.

  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.