The information in this article applies to:
SYMPTOMS
The USES clause was added to the PROC directive with the release of the
Microsoft Macro Assembler (MASM) version 6.0. With USES, it is possible to
specify the registers that your procedure will use. The assembler will then
save the registers on the stack at function entry and restore them upon
exit, saving the programmer from having to do so.
CAUSEThis is correct behavior. It is the programmer's responsibility to catch this type of error. MORE INFORMATIONThe sample code below illustrates this situation. In this example, the ES, DI, DS, SI, and CX registers were meant to be saved. However, DI is inadvertently saved twice, and SI is not saved at all. Sample Code
Additional query words: 6.00
Keywords : |
Last Reviewed: January 11, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |