Page 1 of 1

Driver needed

Posted: Sat Jun 28, 2003 11:00 pm
by System Halted
Hello. I am looking for a keyboard driver writing tutorial i really need help with this.

Thanks--

RE:Driver needed

Posted: Sun Jun 29, 2003 11:00 pm
by Adek336
pmode yes? try polling port 0x60. It returns scan codes, in example ESC has 0x01. I think you can test if an event has happened by polling port 0x64 for something.

You can also make a kbd interrupt, that is IRQ 1. The handler has to inportb(0x60) and outportb(0x20, 0x20) to work. PIC programming will also be needed.

google search "osdev keyboard" gives me for example: http://osdev.neopages.net/docs/wout_kbd.php

cheers,
Adrian