Page 98 - DCAP507_SYSTEM_SOFTWARE
P. 98
System Software
Notes 7.1.3 Basic Macro Processor Functions
The fundamental functions familiar to all macro processors are:
1. Macro Definition
2. Macro Invocation
3. Macro Expansion
Macro Definition and Expansion
Two new assembler directives are utilized in macro definition:
MACRO: identify the beginning of a macro definition
MEND: identify the end of a macro definition
Prototype for the macro:
Each parameter begins with '&
'label op operands
name MACRO parameters
:
Body
:
MEND
Body: The statements that will be produced as the expansion of the macro.
Contd...
92 LOVELY PROFESSIONAL UNIVERSITY