> Hello fellow pascal programmers. I am attempting to write a TSR
> program using TP 6.0. I understand how to use the KEEP command
> to install the TSR program but how can you tell if your TSR is
> currently running so as not to execute it twice? Also, once your
> TSR is installed, how do you get it to unload itself from memory?
You can use the keep-command with keep(0), it makes your program resident
in memory, but you must change some interrupts early, for instance the
int 13h (disk) or the keyboard int.
A TSR you can unload with a second call from DOS, you need a procedure,
which looks if your program is in memory. You can do that with a personal string, then you look in all allocatet DOS-segments, if this string is in same
position how in the actual program-segment. If you find one, this is your