Macro call directive Format .MCALL macro-name-list
1 – Parameter
macro-name-list A list of macros to be defined for this assembly. Separate the macro names with commas.
2 – Description
.MCALL specifies the names of the system and user-defined macros that are required to assemble the source program but are not defined in the source file. If any named macro is not found upon completion of the search (that is, if the macro is not defined in any of the macro libraries), the assembler displays an error message.
3 – Notes
o Using the .MCALL directive is optional unless the macro name is the same as an opcode or assembler directive. The assembler automatically searches for a library macro when it encounters an identifier that is not an opcode or directive in the opcode field. If your macro name is the same as an opcode or directive, you must use the .MCALL directive. You can also use the .MCALL directive in your program to document which macros are used by your program.
4 – Example
.MCALL TRAPB ; Substitute macro in library for ; TRAPB instruction