Release 950727
[wine] / miscemu / int10.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "registers.h"
4 #include "wine.h"
5 #include "miscemu.h"
6 #include "stddebug.h"
7 /* #define DEBUG_INT */
8 #include "debug.h"
9
10
11 /**********************************************************************
12  *          INT_Int10Handler
13  *
14  * Handler for int 10h (video).
15  */
16 void INT_Int10Handler( struct sigcontext_struct sigcontext )
17 {
18 #define context (&sigcontext)
19     switch(AH)
20     {
21     case 0x0f:
22         AL = 0x5b;
23         break;
24
25     case 0x12:
26         if (BL == 0x10)
27         {
28             BX = 0x0003;
29             CX = 0x0009;
30         }
31         break;
32                         
33     case 0x1a:
34         BX = 0x0008;
35         break;
36
37     default:
38         INT_BARF( 0x10 );
39     }
40 #undef context
41 }