Mail Archives: djgpp/1999/10/06/09:27:19
--- Martin Czamai <Martin_Czamai AT peak-service DOT com>
wrote:
> Hi all again,
>
> who can tell me how to derive the interrupt vector,
> when I've got the
> interrupt request line (interrupt level) of a
> interrupt controller?
>
Hi Martin,
I didn't quite get what you mean. Anyway, I assume
you're asking me how to catch IRQs 0-15.
The __dpmi_version_ret function gives you the PIC
mater amd slave base interrupts.
This means that if you want to hook IRQ0-7, you'll
need to hook up interrupt vector=pic_master_base+IRQ
no. This applies for IRQs 0-7.
For IRQs 8-15, you'll need to hook up
interrupt=pic_slave_base+IRQ no.
Normally, IRQ0-7=interrupt 8h-0fh
IRQ8-15=interrupt 70h-78h
Use _go32_dpmi_set_protected_mode_interrupt_vector.
Is this more or less what you're looking for ?
----
Prashant TR
http://www.members.tripod.com/prashant_tr/
=====
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
- Raw text -