Jump to content
  • Advertisement
Sign in to follow this  
Nytegard

NTVDM CPU has encountered an illegal instruction

This topic is 4326 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!