www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/26/02:57:36

Date: Wed, 26 May 1999 09:55:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: intrrupt handler.
In-Reply-To: <374A2F16.1C2B80DE@geocities.com>
Message-ID: <Pine.SUN.3.91.990526095442.29401D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019