Mail Archives: djgpp/2002/05/23/13:59:00
Ok, I have it working, but I am slightly disturbed by the potential
repercusions:
If I remove the clear of the PIC, it works under PC-DOS and MS-DOS. Anybody
have any thoughts if this is going to cause me nightmares down the road?
Thanks!
while (0==ch)
{
unsigned char control_kbd;
ch = inportb (0x60);
control_kbd = inportb (0x61);
outportb (0x61, control_kbd | 0x80);
outportb (0x61, control_kbd);
// outportb (0x20, inportb (0x20)); // This line is now removed
and it works!
if ( (ch!=AKEY) && (ch!=RKEY) && (ch!=IKEY) && (ch!=FKEY) )
{
ch=0;
}
}
- Raw text -