delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/01/03:01:22

Date: Fri, 01 Dec 2000 10:00:49 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <5567-Fri01Dec2000100049+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
In-reply-to: <3a2733aa.4842.269167349@subdimension.com>
(sauls AT subdimension DOT nospam DOT com)
Subject: Re: Protected Mode Callbacks
References: <3a2733aa DOT 4842 DOT 269167349 AT subdimension DOT com>
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

> From: "sauls" <sauls AT subdimension DOT nospam DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 01 Dec 2000 04:12:49 GMT
> 
> I'm trying to hook a handler into the mouse driver, with int 0x33 and
> ax = 0x000c. Well, I need to put an address to a far routine into
> ES:DX, but I'm not quite sure how to do it. I've gotten as
> far as knowing that I need to use
> __dpmi_allocate_real_mode_callback()...
> but that's as far as I can figure.

Did you look in the DJGPP FAQ list?  Section 18.8 there explains how
to do this, and includes a working example.

> The documentation on these functions seems to be thin at best.

You are supposed to be reading the DPMI spec together with these
functions' docs, as the documentation says.

The docs for _go32_dpmi_allocate_real_mode_callback_iret has an
example of its usage.

- Raw text -


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