Microsoft KB Archive/75248

= PROC w/ Parameters Requires Language Specifier on .MODEL =

Article ID: 75248

Article Last Modified on 10/20/2003

-

APPLIES TO


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

-



This article was previously published under Q75248



SUMMARY
The PROC directive used with arguments requires a language specifier in the .MODEL directive in the Microsoft Macro Assembler (MASM) versions 5.1, 5.1a, and 6.0, and also in the Microsoft QuickAssembler versions 2.01 and 2.51. The language specifier is required because it determines which parameter passing convention will be used with the PROC arguments. If you do not specify a language on the PROC line, the error

A2022: Operand must be type specifier

will be generated by MASM 5.1 and 5.1a, and by QuickAssembler 2.01 and 2.51. The error

A2119: language type must be specified

will be generated by MASM 6.0.



MORE INFORMATION
To correct the code, specify a language in the .MODEL statement. To correct the following program, replace the statement &quot;.MODEL small&quot; with &quot;.MODEL small, language&quot; where language is either FORTRAN, PASCAL, Basic, or C.

Sample Code
; Assemble options needed: none

.MODEL small .CODE PUBLIC proc1 proc1 PROC arg1:WORD proc1 ENDP END

Additional query words: kbinf 5.10 5.10a s_quickasm 6.00

Keywords: KB75248

-

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

© Microsoft Corporation. All rights reserved.