Release 941227
[wine/multimedia.git] / miscemu / int10.c
blob8bd9545747f7fdc57802e61162f32b3a8bc14535
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"
10 void IntBarf(int i, struct sigcontext_struct *context)
12 fprintf(stdnimp, "int%x: unknown/not implemented parameters:\n", i);
13 fprintf(stdnimp, "int%x: AX %04x, BX %04x, CX %04x, DX %04x, "
14 "SI %04x, DI %04x, DS %04x, ES %04x\n",
15 i, AX, BX, CX, DX, SI, DI, DS, ES);
18 int do_int10(struct sigcontext_struct *context)
20 switch(AH) {
21 case 0x0f:
22 AL = 0x5b;
23 break;
25 case 0x12:
26 if (BL == 0x10) {
27 BX = 0x0003;
28 CX = 0x0009;
30 break;
32 case 0x1a:
33 BX = 0x0008;
34 break;
36 default:
37 IntBarf(0x10, context);
39 return 1;