ENDM - End macro definition

Syntax
  ENDM
  
  
Synonym

None

Description

The ENDM directive terminates the macro definition.

Example

The ENDM statement in the following listing terminates the cpChar macro.

Listing: Using ENDM to terminate a macro definition

cpChar:  MACRO
           LDA   \1

           STA   \2

         ENDM

CodeSec: SECTION

Start:

         cpChar char1, char2

         LDA   char1

         STA   char2