Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DOS interrupt 20h handler (TERMINATE PROGRAM) |
| 3 | */ |
| 4 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 5 | #include <stdlib.h> |
Michael Veksler | f935c59 | 1999-02-09 15:49:39 +0000 | [diff] [blame] | 6 | #include "winbase.h" |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 7 | #include "miscemu.h" |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 8 | /* #define DEBUG_INT */ |
Alexandre Julliard | 61fece0 | 1999-06-26 19:09:08 +0000 | [diff] [blame] | 9 | #include "debugtools.h" |
Ove Kaaven | e5557b3 | 2000-12-26 00:22:45 +0000 | [diff] [blame] | 10 | #include "callback.h" |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 11 | |
| 12 | /********************************************************************** |
| 13 | * INT_Int20Handler |
| 14 | * |
| 15 | * Handler for int 20h. |
| 16 | */ |
Alexandre Julliard | 617955d | 1999-06-26 18:40:24 +0000 | [diff] [blame] | 17 | void WINAPI INT_Int20Handler( CONTEXT86 *context ) |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 18 | { |
Ove Kaaven | e5557b3 | 2000-12-26 00:22:45 +0000 | [diff] [blame] | 19 | if (Dosvm.Exit) Dosvm.Exit( context, TRUE, 0 ); |
| 20 | else ExitThread( 0 ); |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 21 | } |