On Fri, 25 Aug 2000, Clarence Verge wrote:
> Bernie wrote:
> >
>
> > But I don't know how to program a TSR (yes really),
>
> After your program loading and initialization is complete, de-allocate all
> but the memory you require and issue an INT21 with AH=31H and AL=any return
> code you want. Place all initialization code physically at the end so you
> can release or re-use that space. Remember that the TSR must also contain
> code to determine if it is already loaded. If you wish to have a "HELP"
> function, that may be contained completely outside the TSR and will be
> executed by the loader portion.
I have pretty good skeleton for TSR program, although I haven't used it in
Arachne package yet. It includes loading, detection of being already
loaded, safe unloading, installing API on some interrupt, and testing DOS
busy flag.... pars of code came from various sources....
I can LGPL it and put on gnu.arachne.cz..... or I will send it to Bernie,
and Bernie can do it...
--
http://arachne.cz/
(Arachne WWW browser for DOS+Linux / Webhosting / MP3streaming)