Macro Language

MPASM Assembler

Macro Language


Macros are user defined sets of instructions and directives that will be evaluated in-line with the assembler source code whenever the macro is invoked.

Macros consist of sequences of assembler instructions and directives. They can be written to accept arguments, making them quite flexible. Their advantages are:

  • Higher levels of abstraction, improving readability and reliability.
  • Consistent solutions to frequently performed functions.
  • Simplified changes.
  • Improved testability.
  • Applications might include creating complex tables, frequently used code, and complex operations.


    Microchip Technology Inc.
    Microchip's Web Site
    Voice: (480) 792-7200
    Fax: (480) 899-9210
    Microchip's E-mail Address
    PreviousNext