Expressions in Definitions Changed for MASM 5.10

Last reviewed: January 23, 1995
Article ID: Q38935
The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS and OS/2, version 5.1

SUMMARY

In all versions of Microsoft Macro Assembler earlier than version 5.1, you could not have an expression with a larger than 16-bits in a definition. This has been changed in version 5.1.

MORE INFORMATION

In all versions of MASM before version 5.1, you could use constants of greater than 16 bits; however, you could not use an arithmetic expression to obtain a number larger than 16 bits.

The following is an example:

   DD 86400     <-  correct.
   DD 60*60*24  <-  incorrect. This would be truncated at the
                               16-bit value.

This feature has been implemented in version 5.1 so that both of the above declarations will yield the same answer.


Additional reference words: kbinf 5.10
KBCategory: kbtool
KBSubCategory: MLIss


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.

Last reviewed: January 23, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.