ID Number: Q61502
5.10 | 5.10
MS-DOS | OS/2
Summary:
When you use the .MODEL directive followed by a parameter (for
example, C, FORTRAN, etc.), there is no means of having the procedures
considered private.
The Microsoft Macro Assembler automatically makes 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.
More Information:
An example using the C parameter following the .MODEL directive is as
follows:
;PUBLIC myadd was required in version 5.0 of MASM to declare
; the procedure public.
.MODEL MEDIUM,C
.CODE
myadd PROC arg1:WORD, arg2:WORD
mov ax,arg1
add ax,arg2
ret
myadd ENDP
END