FIX: Error A2057 With DOS.INC, .386, and MASM 5.1 or 5.1a (60267)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
This article was previously published under Q60267 SYMPTOMS
The Microsoft Macro Assembler (MASM) versions 5.1 and 5.1a generate the
following error when the DOS.INC include file is used in conjunction with
the .386 or .386P directive.
error A2057: Illegal size of operand
RESOLUTION
No errors occur if the USE16 use type is used in the SEGMENT statement.
This generates a 16-bit offset for the DOS.INC macros, whereas a 32-bit
offset is generated without the USE16, and produces an error.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 5.1 and 5.1a.
This problem was corrected in MASM version 6.0.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbfix KB60267 |
---|
|