www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/02/22/18:28:50

Date: Mon, 22 Feb 93 18:09:30 EST
From: DJ Delorie <dj AT ctron DOT ctron DOT com>
To: dmb AT ai DOT mit DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Replacing arbitrary interrupt handlers

In general, you can't just redirect a hardware interrupt from inside
go32 applications since you can't guarantee that the interrupt happens
while you're in protected mode, and go32 doesn't know how to send real
mode interrupts into the application as needed.

Go32 would need to be told about the mouse callback interrupt and how
to transfer information and control back and forth between real mode
and protected mode if you really want to do that.

The lowest exit trapping you can do is overriding _exit(), but then
you must perform the correct int21 function yourself if you do.

The ability to register for interrupts from real mode (aka signals) is
on everyone's wish list.

DJ

- Raw text -


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