The information in this article applies to:
SYMPTOMSThe Microsoft Macro Assembler (MASM) version 6.0 may generate an incorrect alignment for the ALIGN or EVEN directives if a statement containing the DUP operator or a structure definition is placed before the directive. For the problem to occur, the DUP operator or structure definition can be placed anywhere before the directive but within the segment. STATUSMicrosoft has confirmed this to be a problem in MASM version 6.0. This problem was corrected in MASM version 6.0a. MORE INFORMATIONThe sample programs below demonstrate the problem with the ALIGN directive. In Sample Code 1, a statement with the DUP operator is used before the ALIGN statement. The assembly listing shows:
It can be seen in the assembly listing that the offset for the
variable "nextvar" is incorrectly set to 7 rather than 8.
In Sample Code 2, a structure definition is placed before the ALIGN statement. The assembly listing below shows the results:
Note that "nextvar" is incorrectly assigned offset 9 rather than 8.
Sample Code 1
Sample Code 2
Additional query words: 6.00 buglist6.00 fixlist6.00a
Keywords : |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |