Mail Archives: djgpp/1996/03/22/00:52:49
A.Appleyard wrote:
>
> In djgpp, IS there an easy way of hooking an interrupt? If I wrote a
> function:-
>
I think, this isn't easy. I have done this in my IDE (called RHIDE).
Look at the source code for this, found in
http://www.tu-chemnitz.de/~rho/rhide/rhides.zip
and see the file ide21.cc. There I have done my hook (mostly in
assembler). This code redirects read/write/open/close calls for
some files with my own code. But this isn't very stable now.
Hope this helps in understanding the difficulties in hooking
the int 0x21.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -