Intel 386 User Manual page 239

Embedded microprocessor
Table of Contents

Advertisement

Intel386™ EX EMBEDDED MICROPROCESSOR USER'S MANUAL
return E_OK;
}/* SetIRQVector */
/*****************************************************************************
SetInterruptVector:
Description:
Loads the interrupt vector table with the address of the interrupt
routine. The vector table entry number is determined by the vector
number.
Parameters:
InterProc
ISR_Type
Returns:
None
Assumptions:
Compiler supports far and interrupt keywords
Compiler may issue a warning about IntrType not used.
IntrType is kept for protected mode compatibility.
Syntax:
SetInterruptVector(wdtISR, INTERRUPT_ISR);
Real/Protected Mode
Real Mode only
*****************************************************************************/
void SetInterruptVector( void (far interrupt *IntrProc)(void),
{
(void) IntrType;
((unsigned long far *)(0))[Vector] = (unsigned long)IntrProc;
}/* SetInterruptVector */
/*****************************************************************************
9-40
Address of interrupt function, will be loaded into
the interrupt table.
Specifies if the interrupt function. Real Mode only
supports INTERRUPT_ISR (the parameter is ignored). The
parameter is kept to maintain compatibility with the
protected mode version of this function.
int Vector, int IntrType)
// Reference to avoid compiler warning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents