blob: 85c4e269d70eb470f6595818bc16a36a8d2500aa [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
Marcus Meissner317af321999-02-17 13:51:06 +00007#include <stdio.h>
Ulrich Weigandab635b21998-11-14 18:33:34 +00008#include "miscemu.h"
9
10/***********************************************************************
11 * INT_Int41Handler
12 *
13 */
14void 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 {
Andreas Mohra00b49f1998-12-07 10:48:09 +000031 case 0x4f:
Ulrich Weigandab635b21998-11-14 18:33:34 +000032 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