[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MACRO Initiate Macro Definition Directive
name MACRO [dummyparameter,,,]
Initiates the definition of a macro, containing the name and statements
within the macro. In TASM Ideal mode, the name of the macro comes after
the keyword MACRO, like this: MACRO name arguments.
Notes: The name must be valid and unique.
Any number of dummy parameters may be declared, provided
they all fit on one line. These dummy parameters act as
place holders; on expansion they are replaced by actual
parameters passed in the macro call.
Macros may be nested to any depth, may call other
macros, and may call themselves. They may also be
Macros generate code when they are called, not when
defined. All addresses generated are relative to the
position of where the macro is called, not where it is
Be careful in using the word MACRO in TITLE, SUBTTL, and
NAME directives. Since MACRO will override these
directives, using MACRO with these directives could
cause the user to have macros called TITLE, SUBTTL, and
See Also: ENDM TITLE SUBTTL NAME
Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson