www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/15/22:54:59

Date: Mon, 15 Aug 1994 21:20:51 -0400
From: Cuthalion / Sliced Bread <enrico AT max DOT tiac DOT net>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: IRQs?!

I saw someone else request this same thing..
How do I write an IRQ handler for DJGPP?
Assuming that I'm trapping an 8 bit IRQ, can I just do:
_go32_dpmi_get_protected_mode_interrupt_vector(IRQNUM + 8, &_this_is_my_seg_info_struct_which_I_have_filled_properly);

Will that do it?  (If so, my problem is that I'm improperly programming my hardware to generate the IRQs.  But I don't know if I'm even hooking them right!) 
(I HAVE gotten this to work with the timer interrupt..)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019