my drivers

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
com1
Member
Member
Posts: 105
Joined: Sat Apr 28, 2007 11:57 am
Location: TN

my drivers

Post 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]
oh microsoft, microsoft, what souls you have dismayed
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post 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..
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

That should be IRQ1 line.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

You do know that you can edit your own posts mathematician :roll:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply