.MODEL with a Language Makes Procedure Names PUBLIC (61502)



The information in this article applies to:

  • Microsoft Macro Assembler (MASM) 5.1
  • Microsoft Macro Assembler (MASM) 6.0
  • Microsoft Macro Assembler (MASM) 6.0a
  • Microsoft Macro Assembler (MASM) 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 "High-Level-Language Support" section of the "Microsoft Macro Assembler" 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
				

Modification Type:MajorLast Reviewed:10/17/2003
Keywords:KB61502