Release 980315
[wine/multimedia.git] / msdos / interrupts.c
blobda6ff2ae0a8afaecb26f0e4e00a70f24929c7d4b
1 /*
2 * Interrupt vectors emulation
4 * Copyright 1995 Alexandre Julliard
5 */
7 #include <sys/types.h>
9 #include "windows.h"
10 #include "drive.h"
11 #include "miscemu.h"
12 #include "msdos.h"
13 #include "module.h"
14 #include "stackframe.h"
15 #include "debug.h"
17 static FARPROC16 INT_Vectors[256];
20 /**********************************************************************
21 * INT_GetHandler
23 * Return the interrupt vector for a given interrupt.
25 FARPROC16 INT_GetHandler( BYTE intnum )
27 return INT_Vectors[intnum];
31 /**********************************************************************
32 * INT_SetHandler
34 * Set the interrupt handler for a given interrupt.
36 void INT_SetHandler( BYTE intnum, FARPROC16 handler )
38 TRACE(int, "Set interrupt vector %02x <- %04x:%04x\n",
39 intnum, HIWORD(handler), LOWORD(handler) );
40 INT_Vectors[intnum] = handler;