Q46919: MASM ALIGN Directive May Not Work Properly
Article: Q46919
Product(s): See article
Version(s):
Operating System(s): 5.00 5.10 5.10a | 5.00 5.10 5.10a
Keyword(s): MS-DOS | OS/2 | mspl13_masm
Last Modified: 30-AUG-1989
ENDUSER |
The ALIGN directive for MASM may not work properly. It aligns values 2
bytes beyond where they should be aligned, e.g. if ALIGN 4 is being
used, values align only at the following offsets:
02h, 06h, 0Ah, 0Eh, ... etc.
If ALIGN 16 (decimal) is being used, values are aligned only at the
following offsets:
02h, 12h, 22h, 32h, ... etc.
This is not a problem for word alignment. ALIGN 2 has the same effect as
the EVEN directive.
Microsoft is researching this problem and will post new information as
it becomes available.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.