FIX: ESP Not Updated Correctly After PUSHFD, POPFDLast reviewed: September 16, 1997Article ID: Q87549 |
3.00 3.11 3.14 4.00 4.01 4.05 | 3.00 3.11 3.12 3.50 | 3.x 4.00 4.01
MS-DOS | OS/2 | WINDOWSkbtool kbcode kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSWhen single-stepping through a PUSHFD or a POPFD in Microsoft CodeView versions 3.0, 3.11, 3.12, 3.14, 3.5, 4.0, 4.01, and 4.05 the ESP register is changed by only 2 bytes rather than 4 bytes.
RESOLUTIONThe problem only occurs when single-stepping. Placing the cursor on the next instruction and pressing F7 will result in CodeView correctly updating the ESP register. If you use this workaround, make sure the next instruction does not modify the stack pointer.
STATUSMicrosoft has confirmed this to be a problem in CodeView versions 3.0, 3.11, 3.12, 3.14, 3.5, 4.0, 4.01, and 4.05. This problem was corrected in CodeView version 4.1.
MORE INFORMATIONThe following sample code demonstrates the problem. Single-step over the instructions to see ESP change by only 2 bytes. Restart and run to the first NOP and then the second to see that ESP is then correctly updated.
Sample Code; Assembly options needed: /Zi _text segment word public 'code' ASSUME cs:_text, ds:_text.386 PUSHFD NOP POPFD NOP MOV ah, 4ch INT 21h_text ENDS END |
Additional reference words: 3.00 3.50 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |