2 * Interrupt vectors emulation
4 * Copyright 1995 Alexandre Julliard
14 #include "stackframe.h"
17 static FARPROC16 INT_Vectors
[256];
20 /**********************************************************************
23 * Return the interrupt vector for a given interrupt.
25 FARPROC16
INT_GetHandler( BYTE intnum
)
27 return INT_Vectors
[intnum
];
31 /**********************************************************************
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
;