Adapted to CreateProcess changes.
[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
10 /***********************************************************************
11  *           INT_Int41Handler
12  *
13  */
14 void WINAPI INT_Int41Handler( CONTEXT *context )
15 {
16     if ( ISV86(context) )
17     {
18         /* Real-mode debugger services */
19         switch ( AX_reg(context) )
20         {
21         default:
22             INT_BARF( context, 0x41 );
23             break;
24         }
25     }
26     else
27     {
28         /* Protected-mode debugger services */
29         switch ( AX_reg(context) )
30         {
31         case 0x4f:
32         case 0x50:
33         case 0x150:
34         case 0x51:
35         case 0x52:
36         case 0x152:
37         case 0x59:
38         case 0x5a:
39         case 0x5b:
40         case 0x5c:
41         case 0x5d:
42             /* Notifies the debugger of a lot of stuff. We simply ignore it
43                for now, but some of the info might actually be useful ... */
44             break;
45
46         default:
47             INT_BARF( context, 0x41 );
48             break;
49         }
50     }
51 }
52