Set a new handler for a system interrupt vector
Source position: exec.pas line 1238
function SetIntVector( |
IntNumber: LongInt; |
const Interrupt_: PInterrupt |
):PInterrupt; |
IntNumber |
|
Interrupt bit number [0..14]. Only non-chained interrupts should be set. Use AddIntServer() for server chains. |
Interrupt_ |
|
A pointer to an Interrupt structure containing the handler's entry point and data segment pointer. A NULL interrupt pointer will remove the current interrupt and set illegal values for IS_CODE and IS_DATA. By convention, the LN_NAME of the interrupt structure must point a descriptive string so that other users may identify who currently has control of the interrupt. |
A pointer to the prior interrupt structure which had control of this interrupt.
This function provides a mechanism for setting the system interrupt vectors. These are non-sharable; setting a new interrupt handler disconnects the old one. Installed handlers are responsible for processing, enabling and clearing the interrupt. Note that interrupts may have been left in any state by the previous code.
The IS_CODE and IS_DATA pointers of the Interrupt structure will be copied into a private place by Exec. A pointer to the previously installed Interrupt structure is returned.
|
Adds a interrupt server to the system |