The information in this article applies to:
SYMPTOMSWhen using the DUP operator in the Microsoft Macro Assembler (MASM), you must place a whitespace character before the DUP operator if using the "?" operator. If no whitespace is present, no error message is produced by the assembler, and incorrect code will be generated. The assembler will generate one data item for the specified type, initialized to the value of the repeat size for the DUP operator. RESOLUTIONTo work around the problem, place a space between the repeat size and the DUP operator. Initializing the variable will cause a syntax error to be generated. STATUSMicrosoft has confirmed this to be a problem in MASM version 6.0, 6.0a, and 6.0b. This problem was corrected in MASM for MS-DOS version 6.1. MORE INFORMATION
The code example below generates a listing file that shows the size
generated for the respective DUP statements. It can be seen that the
first DUP operation generates 4 data bytes; however, the second
generates 1 data byte initialized to 4.
Sample Code
Additional query words: 6.00 6.00a 6.00b buglist6.00 buglist6.00a buglist6.00b fixlist6.10
Keywords : |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |