blob: 4ba588e36a25f621f239752a6f3473bd26820b31 [file] [log] [blame]
Ulrich Weigandab635b21998-11-14 18:33:34 +00001/*
2 * DOS interrupt 41h handler -- Windows Kernel Debugger
3 *
4 * Check debugsys.inc from the DDK for docu.
5 */
6
7#include "miscemu.h"
8
9/***********************************************************************
10 * INT_Int41Handler
11 *
12 */
13void WINAPI INT_Int41Handler( CONTEXT *context )
14{
15 if ( ISV86(context) )
16 {
17 /* Real-mode debugger services */
18 switch ( AX_reg(context) )
19 {
20 default:
21 INT_BARF( context, 0x41 );
22 break;
23 }
24 }
25 else
26 {
27 /* Protected-mode debugger services */
28 switch ( AX_reg(context) )
29 {
Andreas Mohra00b49f1998-12-07 10:48:09 +000030 case 0x4f:
Ulrich Weigandab635b21998-11-14 18:33:34 +000031 case 0x50:
32 case 0x150:
33 case 0x51:
34 case 0x52:
35 case 0x152:
36 case 0x59:
37 case 0x5a:
38 case 0x5b:
39 case 0x5c:
40 case 0x5d:
41 /* Notifies the debugger of a lot of stuff. We simply ignore it
42 for now, but some of the info might actually be useful ... */
43 break;
44
45 default:
46 INT_BARF( context, 0x41 );
47 break;
48 }
49 }
50}
51