Michael wrote:
>> 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...
Sure send it over, this is actually the current problem with EPPPD that
still makes it quite large - everything (well not exactly everything but
almost everything) ends up saved. However I wonder if I'll be able to put
it together in some meaningful way in the days that I've got before
internet access becomes expensive again :/
Anyway I'm close to reaching the state I was looking for originally: 10KB
smaller .exe file and atleast 10KB less memory required. Hard wiring how
pppdrc.cfg should look like has saved ca 500 bytes so far (might be smaller
when I'm finished - I've spent way too much time checking if I haven't
screwed something up since it looks like it would only work with COM1 but
I've tested it on COM2 as well so I guess it's OK).
Expect a beta either latter today or tomorrow (GMT+1 that is).
And when I'm finished with 0.7 I think I'll go in and remove all the code
that noone ever will reactivate (how many want a PPPSERVER running in DOS
anyway?) before I release it (at gnu.arachne.cz of course).
BTW: While you are sending that TSR code perhaps you could find the latest
LOPIF source and send it to the ADN as well?
//Bernie
http://bernie.arachne.cz/ DOS programs, Star Wars ...