PRB: Spontaneous Assembly and MASM 6.11 Errors

Last reviewed: January 9, 1995
Article ID: Q110598
The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS, version 6.11

SYMPTOMS

Using the Spontaneous Assembly version 3.0 include files with MASM 6.11 may cause numerous A2006 (undefined symbol) or A2008 (syntax error) errors to be generated.

CAUSE

These errors occur because Spontaneous Assembly code incorrectly sets up the include files to use MASM 5.1 syntax. This problem occurs with code that assembles cleanly using MASM 6.0 or 6.1. Earlier versions of Spontaneous Assembly may have similar problems.

MORE INFORMATION

The Spontaneous Assembly include files check for the version of assembler being used. These files do not specifically check for MASM 6.11, and therefore end up setting it for MASM 5.1, which causes the errors. The version checking is done in the Spontaneous Assembly file UTIL.INC, which can easily be corrected to work with MASM 6.11 by making the following change:

Line 6 of UTIL.INC reads:

   ELSEIF ((@Version EQ 600) OR (@Version EQ 610))

Change it to read as follows:

   ELSEIF ((@Version EQ 600) OR (@Version EQ 610) OR (@Version EQ 611))

This adds the version test specifically for MASM 6.11. You can also change line 6 to the following

   ELSEIF (@Version GE 600)

to permit all versions of MASM 6.0 and later to be used.


Additional reference words: 6.1x
KBCategory: kbtool kbprb
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 9, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.