Table of Contents Previous topic Next topic
ASSEMBLER DIRECTIVES->Other Assembler Directives->MACR
MACR Macro Definition
For compatibility, MACRO is also recognised.
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.
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.