From: "Martin Peach" Newsgroups: comp.os.msdos.djgpp Subject: Guide: Intercepting And Processing Hardware Interrupts Date: Tue, 5 Oct 1999 12:24:38 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 741 Message-ID: <7td8nn$kqj@tandem.CAM.ORG> NNTP-Posting-Host: dialup-514.hip.cam.org X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Following is an edited version of Peter Marinov's guide which is on the www.delorie.com website (apologies for a lengthy post, but this seems the best way to publish it). The original is written in a rather stilted form of english so I thought I would just clean it up a bit... I corrected some minor typos and things. The main problem I ran into is this: Marinov claims that the DPMI server wants the interrupts disabled on returning from an IRQ. The code has a STI instruction, which I understand to mean SET INTERRUPT FLAG, thus enabling CPU innterrupts. So I changed that. I also don't beleive that the DPMI server gives a damn whether your interrupts are enabled or not, but I am not sure. Does anyone feel on solid ground talking about this? I hope this is useful to someone. \/\/\/*= Martin. Guide: Intercepting And Processing Hardware Interrupts
delorie.com network changes