calling a macro

Once a macro is defined, it may be called by a program to generate code. A macro is called by placing the macro name in the operation field of the assembly language statement, followed by the actual values of the parameters to be used (if any). The following form is used for a macro call:

	mname [parameters]
	

mname is the name previously assigned in the macro definition.

parameters refer to the optional list of input parameters. When a macro is defined without parameters, the parameter list is omitted from the call.

A call to the simple IND1 macro, previously defined, is expanded as follows:

		source program     Assembled Program
                 .                  .
                IND1		   IND1 
		 .		   LD	A,#1
		 .		   X	A,[B]
	

Note: The macro call (IND1), the expanded macro opcodes, and source code will appear on the assembler listing if the appropriate controls are enabled. The macro call statement (IND1) itself does not generate code.