🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to program interrupts in protected mode?

Started by
0 comments, last by Electron 24 years, 8 months ago
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
--Electron"The truth can be changed simply by the way you accept it.""'General failure trying to read from file' - who is General Failure, and why is he reading my file??"
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

This topic is closed to new replies.

Advertisement