2 * BIOS interrupt 11h handler
13 /**********************************************************************
16 * Handler for int 11h (get equipment list).
18 void WINAPI
INT_Int11Handler( CONTEXT
*context
)
21 int parallelports
= 0;
25 /* borrowed from Ralph Brown's interrupt lists
27 bits 15-14: number of parallel devices
28 bit 13: [Conv] Internal modem
30 bits 11- 9: number of serial devices
32 bits 7- 6: number of diskette drives minus one
33 bits 5- 4: Initial video mode:
39 bit 2: [PS] =1 if pointing device
41 bit 1: =1 if math co-processor
42 bit 0: =1 if diskette available for boot
44 /* Currently the only of these bits correctly set are:
45 bits 15-14 } Added by William Owen Smith,
46 bits 11-9 } wos@dcs.warwick.ac.uk
51 if (DRIVE_IsValid(0)) diskdrives
++;
52 if (DRIVE_IsValid(1)) diskdrives
++;
53 if (diskdrives
) diskdrives
--;
55 for (x
=0; x
!=MAX_PORTS
; x
++)
57 if (COM
[x
].devicename
)
59 if (LPT
[x
].devicename
)
62 if (serialports
> 7) /* 3 bits -- maximum value = 7 */
64 if (parallelports
> 3) /* 2 bits -- maximum value = 3 */
67 AX_reg(context
) = (diskdrives
<< 6) | (serialports
<< 9) |
68 (parallelports
<< 14) | 0x02;