6 /* #define DEBUG_INT */
10 void IntBarf(int i, struct sigcontext_struct *context);
11 int do_int2f_16(struct sigcontext_struct *context);
13 int do_int2f(struct sigcontext_struct *context)
15 switch((context->sc_eax >> 8) & 0xff)
17 case 0x10: /* share is installed */
18 EAX = (EAX & 0xffffff00) | 0xff;
21 case 0x15: /* mscdex */
26 return do_int2f_16(context);
29 IntBarf(0x2f, context);
35 int do_int2f_16(struct sigcontext_struct *context)
37 switch(context->sc_eax & 0xff) {
39 /* return 'major/minor' for MSWin 3.1 */
40 dprintf_int(stddeb,"do_int2f_16 // return 'major/minor' for MSWin 3.1 !\n");
41 context->sc_eax = 0x0310;
44 /* operating in protected mode under DPMI */
45 dprintf_int(stddeb,"do_int2f_16 // operating in protected mode under DPMI !\n");
46 context->sc_eax = 0x0000;
49 dprintf_int(stddeb,"do_int2f_16 // return DPMI flags !\n");
50 context->sc_eax = 0x0000; /* DPMI Installed */
51 context->sc_ebx = 0x0001; /* 32bits available */
52 context->sc_ecx = 0x04; /* processor 486 */
53 context->sc_edx = 0x0100; /* DPMI major/minor */
54 context->sc_esi = 0; /* # of para. of DOS */
55 /* extended private data */
58 IntBarf(0x2f, context);