Xref: news2.mv.net comp.os.msdos.djgpp:8634 From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) Newsgroups: comp.os.msdos.djgpp Subject: Re: Hand chaining interrupts. Date: Sun, 15 Sep 1996 10:08:04 GMT Lines: 36 Message-ID: <842782049.7028.0@abwillms.demon.co.uk> References: <51argg$16jm AT news DOT goodnet DOT com> NNTP-Posting-Host: abwillms.demon.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp snarfy AT goodnet DOT com wrote: >I had a question on how to chain interrupts. Is their anything special >that needs to be considered? I've written all of my interrupt code in >asm, and I'm setting the interrupt with the raw __dpmi set interrupt calls. >It works fine, but it doesn't chain to the old handler, and after a >while it crashes because the old handler needs to be called. >I've tried chaining to the old handler by just jmping to it, but that >blows up with random error messages. I was doing that a while ago! You see, I wrote a useful DJGPP interrupt-chaining library. I posted the original because it was so small - look in the archives for "libints", I guess it'll still be there... or else wait until I FINALLY get the time to finish the next version, including: - Locking malloc (lmalloc) convenience function - Should be more tolerant of funny DPMI providers (not that I have many to test it with!) - I WILL get around to writing about PMODE/DJ and CWSDPR0! - Anything else I can think of in the meantime Regards, ABW --- COMPUTER: We are in position over the Rebel homeworld. VADAR: Engage the Death Star primary weapon, let those rebel worms die! COMPUTER: Sorry, your evaluation version of Battle Computer 3.0 has expired. Please send 2.6 billion dollars to the address in REGISTER.TXT Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk Hello :-)