X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Tue, 5 Mar 2002 12:28:49 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: IeperNaum cc: djgpp AT delorie DOT com Subject: Re: Hooking INT 2F In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 5 Mar 2002, IeperNaum wrote: > i tried to build the sample tsr, and it worked. then i changed the > interrupt from int 8 to 2f, modified the int2f handler to make the > program beep. > > but it did not work. Int 2Fh is a software interrupt, not a hardware interrupt. Software interrupts are not reflected to protected-mode handlers (says the DPMI spec), so you need either to hook them in real mode or to use real-mode callbacks, as explained in section 18.9 of the DJGPP FAQ list.