Stepping Through Self-Modifying Code in CodeView (80379)
The information in this article applies to:
- Microsoft CodeView for MS-DOS 2.2
- Microsoft CodeView for MS-DOS 3.0
- Microsoft CodeView for MS-DOS 3.11
- Microsoft CodeView for MS-DOS 3.14
- Microsoft CodeView for MS-DOS 4.0
- Microsoft CodeView for MS-DOS 4.01
- Microsoft CodeView for MS-DOS 4.02
- Microsoft CodeView for MS-DOS 4.05
- Microsoft CodeView for MS-DOS 4.1
This article was previously published under Q80379 SUMMARY
Code that is written to modify its own contents may run differently
when run one line at a time in the Microsoft CodeView Debugger (CV).
This occurs because of the the way the 80x86 processors fetch
instructions. Because this is a limitation of how CodeView works, care
should be used when debugging self-modifying code.
The code may run one way outside of CodeView, and another way from
within CodeView. Also, running the program by using the go (F5)
command instead of the step (F10) or trace (F8) command may affect the
program's execution. Different processors can also affect this
behavior.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | kb16bitonly KB80379 |
---|
|