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

           LD D6,\1

           ST D6,\2

         ENDM

CodeSec: SECTION

Start:

         cpChar char1, char2

         LD D6,char1

         ST D6,char2