Jump to content
  • Advertisement

Archived

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

Electron

How to program interrupts in protected mode?

This topic is 7010 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 attend to modify the keyboard interrupt, and i think i know how to do it in real mode.
Now, i'm currently working in 32-bit protected mode, and when i try to modify the interrupt, it terminates itself. Anyone got a sollution for this? Pleas reply or email me: electron_ed@hotmail.com

Share this post


Link to post
Share on other sites
Advertisement
In protected mode, you need to install your ISR handler(s) using the DPMI functions. Int 0x31, function 0x201 sets the real-mode ISR, funcion 0x205 sets the protected mode ISR. Generally you only need to install the protected mode ISR.

There are also about a billion stumbling blocks depending on which compiler you're using, so try to find some examples.

Rock

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!