Mail Archives: djgpp/1996/03/04/08:25:20
James T. Sweeten Jr. wrote:
>
> What is the difference between an interrupt level and the
> interrupt number I use with my interrupt service routine.
>
The PC interrupt controller (PIC) has several levels, that is an
interrupt with a higher priority may disturb one with a lower priority.
The priority is 0,1,9,a-f,3-7, with 0 the highest. IRQ 2 is used to fire
off the second PIC and cannot be used by devices.
Each IRQ is wired to an Interrupt number, the one you may call with INT
xx. You get from IRQ to INT # by adding 8, if IRQ < 8, and adding 0x68,
if IRQ>=8.If I remember right, this might be changed, but that's not
recommended.
Ciao
- Raw text -