MACRO

Description
The MACRO directive is used to define a macro. The macro name and any arguments required are included on the line with the MACRO directive. For example:

symbol  MACRO  ¤ argument ¤ , argument … ¥ ¥

where:

symbol    is the symbol name that is assigned to the macro.

argument    is an argument to the macro. Arguments must be separated by commas and must be valid symbol names. Each argument must be unique.

A macro definition must be terminated with the ENDM directive.

Refer to the chapter entitled “Macro Processor” for more information about this directive.

See Also
ENDM
Example
CLEAR	MACRO	G1, G2	;macro definition
MOV R0, #G1
MOV A, #G2
MOV @R0, A
ENDM