Separated the MZ loader and core DOS VM into dlls/winedos.
[wine.git] / msdos / int20.c
blobd493e96e3cf2be79361cad5e2d3addf0c49c8026
1 /*
2 * DOS interrupt 20h handler (TERMINATE PROGRAM)
3 */
5 #include <stdlib.h>
6 #include "winbase.h"
7 #include "miscemu.h"
8 /* #define DEBUG_INT */
9 #include "debugtools.h"
10 #include "task.h"
11 #include "callback.h"
13 /**********************************************************************
14 * INT_Int20Handler
16 * Handler for int 20h.
18 void WINAPI INT_Int20Handler( CONTEXT86 *context )
20 if (Dosvm.Exit) Dosvm.Exit( context, TRUE, 0 );
21 else ExitThread( 0 );