Microsoft KB Archive/75247

= LOCAL Requires Language Specifier on .MODEL =

Article ID: 75247

Article Last Modified on 10/22/2003

-

APPLIES TO


 * Microsoft Macro Assembler 6.0 Standard Edition

-



This article was previously published under Q75247



SUMMARY
The LOCAL directive used inside a procedure requires a language specifier on the .MODEL directive in the Microsoft Macro Assembler (MASM) versions 5.1 and 5.1a, and in the Microsoft QuickAssembler versions 2.01 and 2.51. If a language is not specified on the PROC line, the warning

A4001: Extra characters on line

will be generated by MASM 5.1 and 5.1a. The error

A2135: feature requires language specifier on .MODEL

will be generated by QuickAssembler 2.01 and 2.51.



MORE INFORMATION
To correct the code, specify a language on 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.

MASM 6.0 does not require a language specifier on the .MODEL statement to use the LOCAL directive.

Sample Code
; Assemble options needed: none

.MODEL small .CODE PUBLIC proc1 proc1 PROC LOCAL loc1:WORD proc1 ENDP END

Additional query words: kbinf 5.10 5.10a 6.00 s_quickasm

Keywords: KB75247

-

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

© Microsoft Corporation. All rights reserved.