FIX: LOCAL Directive with a StructureLast reviewed: September 11, 1997Article ID: Q59585 |
5.10 5.10a | 5.10 5.10a
MS-DOS | OS/2kbtool kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSOn Page Update-42 of the "Microsoft Macro Assembler 5.1 Updates and Microsoft Editor" manual, it states that you can use the LOCAL directive with a structure type. When this is done, you may receive the following errors:
A2003 Unknown Type Specifier A2010 Syntax Error CAUSEThis feature was not implemented in MASM versions 5.1 or 5.1a.
RESOLUTIONTo avoid the A2003 Unknown type specifier error, include the PTR keyword in the LOCAL directive. For example:
LOCAL stuff:parmsbecomes
LOCAL stuff:ptr parms STATUSMicrosoft has confirmed this to be a problem in MASM version 5.1. This problem has been corrected in MASM version 6.0.
MORE INFORMATIONThe following code can bed used to demonstrate this problem.
Sample Code; Assemble options needed: none .MODEL small, c .STACK 4096 parms STRUC p1 DW ? p2 DW ?parms ENDS .CODE
CALL test_functest_func PROC LOCAL stuff:parms ; A2003 Unknown type specifier MOV ax, 0ffffh MOV stuff. p1,ax ; A2010 Syntax error MOV stuff. p2,ax ; A2010 Syntax error RETtest_func ENDP END
|
Additional reference words: 5.10 5.10a buglist5.10 buglist5.10a fixlist6.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |