Q40462: Include in MASM Source Effects /Z
Article: Q40462
Product(s): See article
Version(s): 5.10 | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_masm
Last Modified: 24-APR-1989
After the call to the include file, you cannot use /Z options to
generate source lines when errors occur if a MASM source file contains
an include instruction.
The following source demonstrates this situation if it is assembled:
masm /Z m9.asm;
dosseg
.model small
.data
.code
xxx ds,si
include m8.asm
xxx ds,si
end
As long as m8.asm contains any characters, the output of the assemble
is as follows:
Microsoft (R) Macro Assembler Version 5.10
Copyright (C) Microsoft Corp 1981, 1988. All rights reserved.
xxx ds,si
m9.asm(8): error A2105: Expected: instruction, directive, or label
m9.asm(10): error A2105: Expected: instruction, directive, or label
49254 Bytes symbol space free
0 Warning Errors
2 Severe Errors
If the instruction "include m8.asm" is commented out, the output of
the assembler is as follows:
Microsoft (R) Macro Assembler Version 5.10
Copyright (C) Microsoft Corp 1981, 1988. All rights reserved.
xxx ds,si
m9.asm(8): error A2105: Expected: instruction, directive, or label
xxx ds,si
m9.asm(10): error A2105: Expected: instruction, directive, or label
49390 Bytes symbol space free
0 Warning Errors
2 Severe Errors
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.