Added stubs for several VxDs / interrupts.
[wine] / msdos / int16.c
1 /*
2  * DOS interrupt 16h handler
3  */
4
5 #include <stdlib.h>
6 #include <string.h>
7 #include <unistd.h>
8
9 #include "config.h"
10 #include "debug.h"
11
12 #include "ldt.h"
13 #include "drive.h"
14 #include "msdos.h"
15 #include "miscemu.h"
16 #include "module.h"
17
18 /**********************************************************************
19  *          INT_Int16Handler
20  *
21  * Handler for int 16h (keyboard)
22  *
23  * NOTE:
24  * 
25  *    KEYB.COM (DOS >3.2) adds functions to this interrupt, they are
26  *    not currently listed here.
27  */
28
29 void WINAPI INT_Int16Handler( CONTEXT *context )
30 {
31    switch AH_reg(context) {
32
33    case 0x00: /* Get Keystroke */
34       FIXME(int16, "Get Keystroke - Not Supported\n");
35       break;
36
37    case 0x01: /* Check for Keystroke */
38       FIXME(int16, "Check for Keystroke - Not Supported\n");
39       break;
40
41    case 0x02: /* Get Shift Flags */      
42       FIXME(int16, "Get Shift Flags - Not Supported\n");
43       break;
44
45    case 0x03: /* Set Typematic Rate and Delay */
46       FIXME(int16, "Set Typematic Rate and Delay - Not Supported\n");
47       break;
48
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;
54
55    case 0x0a: /* Get Keyboard ID */
56       FIXME(int16, "Get Keyboard ID - Not Supported\n");
57       break;
58
59    case 0x10: /* Get Enhanced Keystroke */
60       FIXME(int16, "Get Enhanced Keystroke - Not Supported\n");
61       break;
62
63    case 0x11: /* Check for Enhanced Keystroke */
64       FIXME(int16, "Check for Enhanced Keystroke - Not Supported\n");
65       break;
66
67    case 0x12: /* Get Extended Shift States */
68       FIXME(int16, "Get Extended Shift States - Not Supported\n");
69       break;
70  
71    default:
72       FIXME(int16, "Unknown INT 16 function - 0x%x\n", AH_reg(context));   
73       break;
74
75    }
76 }
77