Ax51 User's Guide

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.