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 | |
| 7 | #include "miscemu.h" |
| 8 | |
| 9 | /*********************************************************************** |
| 10 | * INT_Int41Handler |
| 11 | * |
| 12 | */ |
| 13 | void WINAPI INT_Int41Handler( CONTEXT *context ) |
| 14 | { |
| 15 | if ( ISV86(context) ) |
| 16 | { |
| 17 | /* Real-mode debugger services */ |
| 18 | switch ( AX_reg(context) ) |
| 19 | { |
| 20 | default: |
| 21 | INT_BARF( context, 0x41 ); |
| 22 | break; |
| 23 | } |
| 24 | } |
| 25 | else |
| 26 | { |
| 27 | /* Protected-mode debugger services */ |
| 28 | switch ( AX_reg(context) ) |
| 29 | { |
Andreas Mohr | a00b49f | 1998-12-07 10:48:09 +0000 | [diff] [blame^] | 30 | case 0x4f: |
Ulrich Weigand | ab635b2 | 1998-11-14 18:33:34 +0000 | [diff] [blame] | 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; |
| 44 | |
| 45 | default: |
| 46 | INT_BARF( context, 0x41 ); |
| 47 | break; |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |