2 * DOS interrupt 16h handler
15 /**********************************************************************
18 * Handler for int 16h (keyboard)
22 * KEYB.COM (DOS >3.2) adds functions to this interrupt, they are
23 * not currently listed here.
26 void WINAPI INT_Int16Handler( CONTEXT *context )
28 switch AH_reg(context) {
30 case 0x00: /* Get Keystroke */
31 /* Returns: AH = Scan code
32 AL = ASCII character */
33 TRACE(int16, "Get Keystroke\n");
34 CONSOLE_GetKeystroke(&AH_reg(context), &AL_reg(context));
37 case 0x01: /* Check for Keystroke */
38 /* Returns: ZF set if no keystroke */
40 /* AL = ASCII character */
41 TRACE(int16, "Check for Keystroke\n");
42 if (!CONSOLE_CheckForKeystroke(&AH_reg(context), &AL_reg(context)))
52 case 0x02: /* Get Shift Flags */
53 FIXME(int16, "Get Shift Flags - Not Supported\n");
56 case 0x03: /* Set Typematic Rate and Delay */
57 FIXME(int16, "Set Typematic Rate and Delay - Not Supported\n");
60 case 0x09: /* Get Keyboard Functionality */
61 FIXME(int16, "Get Keyboard Functionality - Not Supported\n");
62 /* As a temporary measure, say that "nothing" is supported... */
66 case 0x0a: /* Get Keyboard ID */
67 FIXME(int16, "Get Keyboard ID - Not Supported\n");
70 case 0x10: /* Get Enhanced Keystroke */
71 FIXME(int16, "Get Enhanced Keystroke - Not Supported\n");
74 case 0x11: /* Check for Enhanced Keystroke */
75 FIXME(int16, "Check for Enhanced Keystroke - Not Supported\n");
78 case 0x12: /* Get Extended Shift States */
79 FIXME(int16, "Get Extended Shift States - Not Supported\n");
83 FIXME(int16, "Unknown INT 16 function - 0x%x\n", AH_reg(context));