Date: Wed, 26 May 1999 09:55:20 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: intrrupt handler. In-Reply-To: <374A2F16.1C2B80DE@geocities.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 25 May 1999, Derek wrote: > I'm tring to install a mouse handler and have run into a few > problems...I have read the faq and got this out of it: > > _go32_dpmi_seginfo oldmousehandler,newmousehandler; > > save old handler > > _go32_dpmi_get_protected_mode_interrupt_vector(0x3F8,&oldmousehandler); This is all terribly wrong. First, the mouse interrupt is not reflected to protected mode (since it's a software interrupt). Second, Int 3F8h is probably something Turbo Pascal invents for you, because the highest interrupt number is FFh. So this will never work with DJGPP. The DJGPP FAQ already has a working version of installing a handler for the mouse, see section 18.8 of the FAQ. I suggest you use that code as a base for yours.