Page 1 of 1

Keyboard Help Please !!!!

Posted: Wed Nov 07, 2001 12:00 am
by HRR
I have developed a small kernel in C which can
print characters to the screen. How can I have a
Low-level access to the keyboard using port 60h.
(Please give a code in C)

RE:Keyboard Help Please !!!!

Posted: Thu Nov 08, 2001 12:00 am
by Chris Giese
>On 2001-11-07 11:34:28, HRR wrote:
>I have developed a small kernel in C which can
>print characters to the screen. How can I have a
>Low-level access to the keyboard using port 60h.
>(Please give a code in C)

http://www.execpc.com/~geezer/osd/kbd/kbd.c

I have some lists of the scancodes produced by
each key for each scancode set, but they didn't
take into account the internal Num Lock state
of the keyboard. I think I have them fixed, now:
http://www.execpc.com/~geezer/osd/kbd/index.htm#scan