[comp.os.msdos.programmer] thanks & memory allocation

Rob.Wedlock@samba.acs.unc.edu (Rob Wedlock) (12/31/90)

Hi!
Thanks to Duncan Murdoch for the aid in exe file header wuestions.
Now I have another question!! Alot for someone never posted to this
group before, hunh?
 Ok, I'm trying to write a clock tsr. I want it to allocate just enough
memory at the very highest address for itself, then move there.. I can code
all this, but when I do allocatea block there, it disappears! I.E. is no
longer in the mcb chain, it just gets absorbed back into free space when
the process terminates. How can I do this? The way I'm doing this is
shrinking the block allocated to the com file that does all this by
the amount of memory i need up there, plus a little more. Allocating
memory (and it does this ok). But it wont stick around! Is this just
the way msdos is, or is there a way to do this?

Email to rob.wedlock@samba.acs.unc.edu
THANKS!!!