DOCERR: PROC Directive Will Not Work with Structure TypeLast reviewed: November 3, 1994Article ID: Q34503 |
The information in this article applies to:
SUMMARYPage 38 of the "Microsoft Macro Assembler 5.1 Update" guide states the following about the type that can be specified for an argument in the syntax of PROC
... the type of the argument may be WORD, DWORD, FWORD, QWORD, TBYTE or the name of a structure defined by a STRUC structure declaration...When attempting to use a structure name, the following error will be generated
error A2003: Unknown type specifierThe error is generated because support of the STRUC type for arguments to PROC has not been added to MASM version 5.1. However, it is a feature of MASM version 6.0 and later.
MORE INFORMATIONThe following program illustrates the problem. It will assemble correctly with MASM 6.0 and later.
Sample Code; Assembly options needed: none
.model small,c .datat1 STRUC w1 dw 0t1 ENDS
.codeh1 PROC arg1:t1 ; h1 ENDP
END |
Additional reference words: 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |