Release 970202
[wine/multimedia.git] / msdos / interrupts.c
blob31710fdd6378e9654cdb73308c07487fb87839b7
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 "stddebug.h"
16 #include "debug.h"
18 static FARPROC16 INT_Vectors[256];
21 /**********************************************************************
22 * INT_GetHandler
24 * Return the interrupt vector for a given interrupt.
26 FARPROC16 INT_GetHandler( BYTE intnum )
28 return INT_Vectors[intnum];
32 /**********************************************************************
33 * INT_SetHandler
35 * Set the interrupt handler for a given interrupt.
37 void INT_SetHandler( BYTE intnum, FARPROC16 handler )
39 dprintf_int( stddeb, "Set interrupt vector %02x <- %04x:%04x\n",
40 intnum, HIWORD(handler), LOWORD(handler) );
41 INT_Vectors[intnum] = handler;