delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/23/08:04:53

Date: Wed, 23 Oct 1996 13:15:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Lennart Steinke <steinke AT zeus DOT adv-boeblingen DOT de>
Cc: djgpp AT delorie DOT com
Subject: Re: user defined mouse handler
In-Reply-To: <Pine.VUL.3.91.961022052155.25980D-100000@zeus.adv-boeblingen.de>
Message-Id: <Pine.SUN.3.91.961023131231.7645A-100000@is>
Mime-Version: 1.0

On Tue, 22 Oct 1996, Lennart Steinke wrote:

> >  1) i'm using _go32_dpmi_allocate_real_mode_callback_iret() and set
> >     es to rm_segment and dx to rm_offset, call __dpmi_int()...
> >     Everything seems to work (no function does return a failure),
> >     but my handler isn't called.

First, don't use `int86'; use `__dpmi_int' throughout.  `int86' has some 
subtle aspects regarding the 32bit/16bit registers issues which might be 
the cause of your problems.

Second, I think you should use _go32_dpmi_allocate_real_mode_callback_retf 
instead of _go32_dpmi_allocate_real_mode_callback_iret, since the mouse 
driver expects far function, not an interrupt handler.

- Raw text -


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