Crossware

Table of Contents        Previous topic       Next topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->MACR Macro Definition

The MACR directive specifies that the following statement block is a macro definition.  The directive ENDM marks the end of the statement block.  

The MACR directive requires a label which is subsequently used to reference that definition during a macro call statement.  More details are given in section 4.5.

A 'C' can be optionally included in the operand field.  If present, all comment statements beginning which a semicolon will be stored as part of the macro definition so that they can be listed when the macro is expanded.  When a 'C' is not present, these comment lines will not be stored, thus saving memory (since the macro definition is stored in ram).  

Macro definitions cannot be nested.
Formats:

<label>      MACR        <comment>
<label>      MACR    C    <comment>