Set a new handler for a system interrupt vector
Source position: exec.pas line 1281
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 |