cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/24/06:42:13

Date: Fri, 24 Oct 1997 12:41:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Dean <deanh AT zip DOT com DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Problems installing mouse handler
In-Reply-To: <344df950.23766063@news.zip.com.au>
Message-ID: <Pine.SUN.3.91.971024124104.12317L-100000@is>
MIME-Version: 1.0

On Wed, 22 Oct 1997, Dean wrote:

>   my_handler.pm_offset = (int)mouse;
>   my_handler.pm_selector = _go32_my_cs();
>   _go32_dpmi_allocate_iret_wrapper( &my_handler )
>   _go32_dpmi_set_protected_mode_interrupt_vector( interrupt, &my_handler )

Int 33h is a software interrupt.  Software interrupts are NOT
reflected to protected mode (see the DPMI spec for details).  If you
really need to hook Int 33h, you need to install a REAL-MODE handler
for it.

But I suggest to do this by using function 0Ch of Int 33h to register
your handler, as somebody else pointed out in this thread.  The DJGPP
FAQ (v2/faq210b.zip from the same place you get DJGPP) has some more
info about this in section 18.8.

- Raw text -


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