Mail Archives: djgpp/2000/12/01/03:01:22
> 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 -