9 /* #define DEBUG_INT */
12 static void do_int2f_16(struct sigcontext_struct *context);
14 /**********************************************************************
17 * Handler for int 2fh (multiplex).
19 void INT_Int2fHandler( struct sigcontext_struct sigcontext )
21 #define context (&sigcontext)
25 AL = 0xff; /* share is installed */
28 case 0x15: /* mscdex */
33 do_int2f_16( context );
42 static void do_int2f_16(struct sigcontext_struct *context)
46 case 0x00: /* Windows enhanced mode installation check */
47 AX = Options.enhanced ? WINVERSION : 0;
50 case 0x0a: /* Get Windows version and type */
52 BX = (WINVERSION >> 8) | ((WINVERSION << 8) & 0xff00);
53 CX = Options.enhanced ? 3 : 2;
56 case 0x80: /* Release time-slice */
57 break; /* nothing to do */
59 case 0x86: /* DPMI detect mode */
60 AX = 0; /* Running under DPMI */
63 case 0x87: /* DPMI installation check */
64 AX = 0x0000; /* DPMI Installed */
65 BX = 0x0001; /* 32bits available */
66 CL = 0x03; /* processor 386 */
67 DX = 0x005a; /* DPMI major/minor 0.90 */
68 SI = 0; /* # of para. of DOS extended private data */
69 ES = 0; /* ES:DI is DPMI switch entry point */