macro Add x, y
Load y
Mul x
Store y
end macro
In the given macro definition: x
and y
are formal parameters of the macro.
Formal Parameters: These are placeholders or symbols used in the definition of a macro. They act as variables within the macro definition and are replaced by actual values or expressions when the macro is invoked. In the provided macro definition, x
and y
are formal parameters. When you use this macro, you would provide actual values for x
and y
as arguments, and the macro would substitute those values into the macro body.
For example, if you invoke the macro as follows:
Add a, b
It would be replaced as:
Load b
Mul a
Store b