Added correct implementation of GetCaps, changed Play and Stop handling
[wine/multimedia.git] / msdos / int16.c
blob471c3f216173d9956b64fe68d5f55cfbb61c6ae5
1 /*
2 * DOS interrupt 16h handler
3 */
5 #include <stdlib.h>
6 #include <string.h>
7 #include <unistd.h>
9 #include "config.h"
10 #include "debug.h"
12 #include "ldt.h"
13 #include "drive.h"
14 #include "msdos.h"
15 #include "miscemu.h"
16 #include "module.h"
18 /**********************************************************************
19 * INT_Int16Handler
21 * Handler for int 16h (keyboard)
23 * NOTE:
25 * KEYB.COM (DOS >3.2) adds functions to this interrupt, they are
26 * not currently listed here.
29 void WINAPI INT_Int16Handler( CONTEXT *context )
31 switch AH_reg(context) {
33 case 0x00: /* Get Keystroke */
34 FIXME(int16, "Get Keystroke - Not Supported\n");
35 break;
37 case 0x01: /* Check for Keystroke */
38 FIXME(int16, "Check for Keystroke - Not Supported\n");
39 break;
41 case 0x02: /* Get Shift Flags */
42 FIXME(int16, "Get Shift Flags - Not Supported\n");
43 break;
45 case 0x03: /* Set Typematic Rate and Delay */
46 FIXME(int16, "Set Typematic Rate and Delay - Not Supported\n");
47 break;
49 case 0x09: /* Get Keyboard Functionality */
50 FIXME(int16, "Get Keyboard Functionality - Not Supported\n");
51 /* As a temporary measure, say that "nothing" is supported... */
52 AL_reg(context) = 0;
53 break;
55 case 0x0a: /* Get Keyboard ID */
56 FIXME(int16, "Get Keyboard ID - Not Supported\n");
57 break;
59 case 0x10: /* Get Enhanced Keystroke */
60 FIXME(int16, "Get Enhanced Keystroke - Not Supported\n");
61 break;
63 case 0x11: /* Check for Enhanced Keystroke */
64 FIXME(int16, "Check for Enhanced Keystroke - Not Supported\n");
65 break;
67 case 0x12: /* Get Extended Shift States */
68 FIXME(int16, "Get Extended Shift States - Not Supported\n");
69 break;
71 default:
72 FIXME(int16, "Unknown INT 16 function - 0x%x\n", AH_reg(context));
73 break;