PROC w/ Parameters Requires Language Specifier on .MODEL

This article was previously published under Q75248
This article has been archived. It is offered "as is" and will no longer be updated.
The PROC directive used with arguments requires a language specifierin the .MODEL directive in the Microsoft Macro Assembler (MASM)versions 5.1, 5.1a, and 6.0, and also in the Microsoft QuickAssemblerversions 2.01 and 2.51. The language specifier is required because itdetermines which parameter passing convention will be used with thePROC arguments. If you do not specify a language on the PROC line, theerror
A2022: Operand must be type specifier
will be generated by MASM 5.1 and 5.1a, and by QuickAssembler 2.01 and2.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. Tocorrect the following program, replace the statement ".MODEL small"with ".MODEL small, language" where language is either FORTRAN,PASCAL, Basic, or C.

Sample Code

; Assemble options needed: none      .MODEL small      .CODE      PUBLIC proc1proc1 PROC arg1:WORDproc1 ENDP      END				
kbinf 5.10 5.10a s_quickasm 6.00

Article ID: 75248 - Last Review: 10/26/2013 02:04:00 - Revision: 4.0

Microsoft Macro Assembler 6.0 Standard Edition

  • kbnosurvey kbarchive KB75248