Page 1 of 1

my drivers

Posted: Thu May 17, 2007 10:30 am
by com1
hi everyone,

i am trying to create a beta version of a keyboard driver. could anyone tell me how to do this? i saw some source code for one once- but i cant find it. i need to know about ASCII programming, etc. if anyone has any suggestions it would be great!!

P.S.- go to [http://www.yoctosoft.tk] and join my developing team![/url]

Posted: Thu May 17, 2007 10:47 am
by mathematician
The first thing you need to do is search the web for a table which will enable you to pair off the scan codes you get from the keyboard controller with either ascii codes for the alphanumeric characters, or keypresses for such keys as Ctrl, Caps Lock, or Alt; keeping a record of the latter, and using them when you are creating the ascii codes for the former. Then you need to store the results of you labours in a buffer so that they can later be collected by the kernel's equivalent of a function such as getch().

Keyboard scan codes are got from port 60h in response to a signal generated on the IRQ0 line by the keyboard controller..

Posted: Thu May 17, 2007 10:56 am
by mathematician
That should be IRQ1 line.

Posted: Thu May 17, 2007 11:23 am
by Brynet-Inc
You do know that you can edit your own posts mathematician :roll: