Date: Mon, 11 Nov 1996 08:13:44 +0200 (IST) From: Eli Zaretskii To: Mark Habersack Cc: Daniel Jungbluth , "'DJGPP Mailing List'" Subject: Re: TSR? In-Reply-To: <32860D38.1540@ananke.amu.edu.pl> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 10 Nov 1996, Mark Habersack wrote: > Eli Zaretskii wrote: > > > > Yes, it is possible. Check out Charles Sandmann sample TSR. It should be > > > found on DJGPP ftp site (also available on WWW). > > > > Note that a small change introduced with DJGPP v2.01 (in the definition > > of the `_exit' library function) breaks what Charles wrote. > At which point? I haven't compiled the TSR with 2.01 so far. In v2.01, `_exit' toggles exceptions, so that programs that call `abort' (which calls `_exit' instead of `exit') don't end up with their system wedged because hardware interrupts point into the void. Since the example TSR disables exception setup, the toggle at exit will probably need to be disabled too. That means you will need to add a substitute for `_exit' to the TSR source. Note that the above is purely theoretical; I never actually did anything with Charles' example except looking at its source.