Sign in to follow this  

NTVDM CPU has encountered an illegal instruction

This topic is 4112 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been working on enhancing the debugger I've been working on, and for some error checking, I've been comparing it with the MS-DOS debugger. I've just been running through some old games I have (only 16 bit here), and ran into a problem with one of them. When the ES register is assigned a value of 0, things literally go to ****. When an XCHG is called using the ES register, NTVDM crashes every time claiming an illegal instruction. I look at where the IP register is pointing too according to the dialog box, and while it displays an invalid instruction, I have absolutely no idea how it even got there. Also, this only happens if I proceed through the debugger. If I go (as long as I don't enter an addres), everything works fine. I'd actually like to be able to proceed further on in the program, just wondering why the IP register changes to some weird value. The failing portion: 0C65:019C 26 ES: 0C65:019D 87065800 XCHG AX, [0058] ES:0058=09C4 When I proceed in the debugger, I'm at 020E:02E1 (an immediate fail)? [Edited by - Nytegard on September 16, 2006 2:10:02 AM]

Share this post


Link to post
Share on other sites

This topic is 4112 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this