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);
}
KBD LEDs
RE:KBD LEDs
Hi
I think should call WaitForKBD before every outport
WaitForKBD();
outb(0x60, 0xED);
WaitForKBD();
outb(0x60, 0x07);
regards,
gaf
I think should call WaitForKBD before every outport
WaitForKBD();
outb(0x60, 0xED);
WaitForKBD();
outb(0x60, 0x07);
regards,
gaf