Microsoft KB Archive/61502

= .MODEL with a Language Makes Procedure Names PUBLIC =

Article ID: 61502

Article Last Modified on 10/17/2003

-

APPLIES TO


 * Microsoft Macro Assembler 5.1 Standard Edition
 * Microsoft Macro Assembler 6.0 Standard Edition
 * Microsoft Macro Assembler 6.0a
 * Microsoft Macro Assembler 6.0b

-



This article was previously published under Q61502



SUMMARY
When you use the .MODEL directive including a language, the Microsoft Macro Assembler version 5.1 and later automatically make all procedure names PUBLIC. This is a feature of the assembler. This information can be found on Page 34 in the &quot;High-Level-Language Support&quot; section of the &quot;Microsoft Macro Assembler&quot; version 5.1 update manual.

There is no option that will make the procedures PRIVATE.



MORE INFORMATION
The following is an example using the C language specifier with the MODEL directive. Note that myadd will be PUBLIC.

Sample Code:
; Assemble options needed: none

.MODEL MEDIUM, C

.CODE myadd   PROC arg1:WORD, arg2:WORD

MOV  ax, arg1 ADD  ax, arg2

RET

myadd   ENDP END

Additional query words: 5.10 6.00 6.00a 6.00b

Keywords: KB61502

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.