Q41649: QuickC 2.00 README.DOC: Limits on _asm Identifiers
Article: Q41649
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_c
Last Modified: 28-FEB-1989
The following information is taken from the QuickC Version 2.00
README.DOC file, part 2, "Notes on 'C for Yourself.'" The following
notes refer to specific pages in "C for Yourself."
Page 273 Limits on _asm Identifiers
Never use reserved assembly words as labels, variable names, or other
identifiers within an _asm block. This includes words in the following
categories:
ASM Opcodes such as CMP or MOV
Opcodes new to the 80186, 80286, and 80386 such as ARPLS or CLTS
Reserved operand words such as WORD or PARA
C library functions such as "exit" or "time".
For example, the following code is not permitted:
main()
{
int word;
_asm{mov WORD PTR [word], ax }
}
The variable "word" can be used in the C part of the program, but not
within the assembly block.
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.