Added macros to header file for easier function calling.
[wine/multimedia.git] / msdos / int41.c
blob4ba588e36a25f621f239752a6f3473bd26820b31
1 /*
2 * DOS interrupt 41h handler -- Windows Kernel Debugger
3 *
4 * Check debugsys.inc from the DDK for docu.
5 */
7 #include "miscemu.h"
9 /***********************************************************************
10 * INT_Int41Handler
13 void WINAPI INT_Int41Handler( CONTEXT *context )
15 if ( ISV86(context) )
17 /* Real-mode debugger services */
18 switch ( AX_reg(context) )
20 default:
21 INT_BARF( context, 0x41 );
22 break;
25 else
27 /* Protected-mode debugger services */
28 switch ( AX_reg(context) )
30 case 0x4f:
31 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;
45 default:
46 INT_BARF( context, 0x41 );
47 break;