Mail Archives: djgpp/1995/12/19/08:22:55
On 17 Dec 1995, Larry Blanchard wrote:
> I have a project where I need to use a 32 bit linear memory model, but
> still have access to hardware interrupt vectors such that I can point
> them to a function in my process.
>
> Does DJGPP have such a facility? If not, any suggestions not involving
> an astonomically priced package would be appreciated. Thanks.
Yes, it does. Take a look at Chapter 18 of the DJGPP FAQ list (avialable
as faq102.zip from the same place you get DJGPP). It describes the
facilities and some background issues and points you to library docs for
the functions that are involved.
The final production version of your program should probably be compiled
in DJGPP v2.0 (to be released soon), because the current version has some
subtle problems in hardware interrupts support, but it's a start (and for
low interrupt frequency you can just get away without hitting these
problems at all).
There is also a package called PCTIME13.ZIP on SimTel mirrors
(in the SimTel/msdos/c directory) which can serve as a good example of
using DJGPP to hook hardware interrupts.
- Raw text -