Mail Archives: djgpp/1997/10/24/06:42:13
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 -