Documentation name fixes.
[wine] / msdos / int41.c
1 /*
2  * DOS interrupt 41h handler  -- Windows Kernel Debugger
3  * 
4  * Check debugsys.inc from the DDK for docu.
5  */
6
7 #include <stdio.h>
8 #include "miscemu.h"
9 #include "debugtools.h"
10
11 DEFAULT_DEBUG_CHANNEL(int);
12
13 /***********************************************************************
14  *           INT_Int41Handler (WPROCS.165)
15  *
16  */
17 void WINAPI INT_Int41Handler( CONTEXT86 *context )
18 {
19     if ( ISV86(context) )
20     {
21         /* Real-mode debugger services */
22         switch ( AX_reg(context) )
23         {
24         default:
25             INT_BARF( context, 0x41 );
26             break;
27         }
28     }
29     else
30     {
31         /* Protected-mode debugger services */
32         switch ( AX_reg(context) )
33         {
34         case 0x4f:
35         case 0x50:
36         case 0x150:
37         case 0x51:
38         case 0x52:
39         case 0x152:
40         case 0x59:
41         case 0x5a:
42         case 0x5b:
43         case 0x5c:
44         case 0x5d:
45             /* Notifies the debugger of a lot of stuff. We simply ignore it
46                for now, but some of the info might actually be useful ... */
47             break;
48
49         default:
50             INT_BARF( context, 0x41 );
51             break;
52         }
53     }
54 }
55