FIX: COMM Directive Produces Error If Count Field Not Specified (74221)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
This article was previously published under Q74221 SYMPTOMS
The Microsoft Macro Assembler (MASM) version 6.0 will produce a syntax
error when multiple variables (separated by commas) are listed following a
COMM directive if any variable, except the last one in the list, does not
have a count field specified. For example, assembling sample code #1 with
MASM 6.0 produces the following error:
error A2008: syntax error: dec
When assembling sample code #2, MASM 6.0 produces this error:
error A2008: syntax error: inc
RESOLUTION
The following methods may be used to work around these problems:
- Place the count field with each variable specified. For example:
COMM NEAR var1:word:1,var2:word:1,var3:word:3
-or-
- Make multiple COMM statements. For example:
COMM NEAR var1:word
COMM NEAR var2:word
STATUS
Microsoft has confirmed this to be a problem in MASM version 6.0.
This problem was corrected in MASM version 6.0a.
Modification Type: | Major | Last Reviewed: | 10/22/2003 |
---|
Keywords: | kbfix KB74221 |
---|
|