Keyboard Interrupt to detect Space, right and left arrow keys

Hello. I have a homework. My development environment: Turbo C++ 3.0
and programming Language Assembly, ANSI C. I have to detect when the user press Space or right or left arrow keys. It is forbidden that using "dos.h" and "int 21H"
I have found this information but I could not understand how to implement it :

When a key is pressed on keyboard, an interrupt along with a scan code named


  • You can use the keyboard interrupt only when in pure DOS I prefer not to mess around in XP and above system unless Your running Your app on a PC simulator just to check it out.

    First You need do swap the original keyboard interrupt 09h with the working interrupt procedure written by You.

    this should help You to write it

    Contact me by ICQ if You need help on it
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion