Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DOS interrupt 41h handler -- Windows Kernel Debugger |
| 3 | * |
| 4 | * Check debugsys.inc from the DDK for docu. |
| 5 | */ |
| 6 | |
Marcus Meissner | 317af32 | 1999-02-17 13:51:06 +0000 | [diff] [blame^] | 7 | #include <stdio.h> |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 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 | { |
Andreas Mohr | a00b49f | 1998-12-07 10:48:09 +0000 | [diff] [blame] | 31 | case 0x4f: |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 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 | |