KBD LEDs
Posted: Fri Dec 19, 2003 12:00 am
i know you would have answered such a question alot. whenever i try to set the kbd leds, it fails. it doesn't give any error msg in BOCHS and it doesn't work in real hardware.
WaitForKBD();
outb(0x60, 0xED);
outb(0x60, 0x07); // To set all LEDs ON
void WaitForKBD()
{
UCHAR bfr;
do
{
bfr = inb(0x64);
}while((bfr & 1) != 0);
}
WaitForKBD();
outb(0x60, 0xED);
outb(0x60, 0x07); // To set all LEDs ON
void WaitForKBD()
{
UCHAR bfr;
do
{
bfr = inb(0x64);
}while((bfr & 1) != 0);
}