Keyboard Events in Real Mode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
XStream

Keyboard Events in Real Mode

Post by XStream »

Hi all,

Just wondering if anyone can give me an idea of how to put a keyboard handler into place in real mode?

The reason I want this is because I am going to detect alot of stuff using the BIOS at boot time and want to allow the user to select certain options.

Thanks.
Ozguxxx

Re:Keyboard Events in Real Mode

Post by Ozguxxx »

hooking keyboard irq handler from ivt?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Keyboard Events in Real Mode

Post by Pype.Clicker »

yep. installing your own interrupt handler in IVT#9 should do it ...
You could also try to use BIOS services to read keyboard (get to RBIL)
ASHLEY4

Re:Keyboard Events in Real Mode

Post by ASHLEY4 »

Here is a game i made WITH A KETBOARD HANDLER real mode, you do not need to save the ivt and replace the dos ints with none dos (if you need none dos examples let me know)
You can get the full code and game "space pong" from here:
http://www.falconrybells.co.uk/

ASHLEY4.
Post Reply