MACRO - Begin macro definition

Syntax
  <label>: MACRO
  
  
Synonym

None

Description

The <label> of the MACRO directive is the name by which the macro is called. This name must not be a processor machine instruction or assembler directive name. For more information on macros, see the Macros chapter.

Example

See the following listing for a macro definition.

Listing: Example macro definition

         XDEF  Start
MyData:  SECTION

char1:   DS.B  1

char2:   DS.B  1

cpChar:  MACRO

           LDA   \1

           STA   \2

         ENDM

CodeSec: SECTION

Start:

         cpChar char1, char2

         LDA    char1

         STA    char2