{
BYTE ScanCode, VirtualKey;
WORD Character;
-
+
/* Loop while there is a scancode available */
- while (KeyboardReadStatus() & 1)
+ do
{
/* Get the scan code and virtual key code */
ScanCode = KeyboardReadData();
BiosKeyboardMap[VirtualKey] &= ~(1 << 7);
}
}
+ while (KeyboardReadStatus() & 1);
/* Clear the keyboard flags */
Bda->KeybdShiftFlags = 0;