Writing Macro Functions and Using the EXITM Directive (72701)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
This article was previously published under Q72701 SUMMARY
Beginning with the Microsoft Macro Assembler (MASM) version 6.0, a
macro can be written that will return either a text or numeric value.
This is called a "Macro Function" and is implemented with the EXITM
directive.
In MASM versions earlier than 6.0, the EXITM directive was used to
exit a macro immediately. There were no arguments or parameters. With
versions 6.0 and later, the EXITM directive takes an optional argument
that specifies the return value. This argument must be either text, a
text equate name, or the result of another macro function. In
addition, the EXITM directive must be at the end of a macro block if
it is to be used to return a value.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | KB72701 |
---|
|