Discuss MACRO assembler directive with example.
MACRO: A sequence of instructions to that has a name is assigned is termed as macro. Macros and subroutines are the same. These are used for short sequence of instructions while subroutines for longer ones. It executes faster than subroutines.
The MACRO directive informs assembler the starting of a macro. It is used along with ENDM directive to include a macro. The general format of the MACRO directive is as:
Macro Name that is MACRO ARG1, ARG2, ARG N