Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

_elmo

Windows XP and interrupts

This topic is 5776 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

Hi to you all, I''ve got a problem running my program under Windows XP. I''ve written a small program what reads some Vesa info from the videocard. It''s compiled with the Borland (v5.5.1) compiler, and everything wents fine. But when I try to run it, Windows XP comes with an internal error. The program makes use of some (little) assembly and the geninterrupt to fire an intterupt... I think Windows is secured and crashes when it tries to do some low level stuff. Is it true Windows XP crashes on the low-level code, and how can I fix it...? Thanx, _elmo

Share this post


Link to post
Share on other sites
Advertisement
Thanx for the reply.

What is protected mode? And what are the differences between protected mode and real mode? Can you also use interrupts in protected mode?

Share this post


Link to post
Share on other sites
Protected mode means you can''t access memory outside of your process'' memory space. The reason you can''t access the interrupts directly on XP (I believe NT and 2000 are this way, too) is because of the HAL (hardware abstraction layer). To help ensure system stability, no program is allowed to directly communicate with the hardware -- since incorrect hardware calls could result in a system lockup. Drivers are necessary for every piece of hardware in order for any programs that use this hardware to correctly. You can''t (to my knowledge) interact with the VESA functions anymore with today''s hardware -- that is the job of the video driver. You can control the video driver through:

- the Windows GDI using the Win32 API
- DirectX Graphics
- OpenGL

Share this post


Link to post
Share on other sites

  • 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!