bishop@ecsvax.UUCP (Alan Bishop) (12/28/87)
I am trying to write a terminate/stay resident program using Microsoft C 5.0. I have found the _dos_keep library call, but don't know exactly what to do with the "memsize" parameter. I have traced through the _dos_keep code, and it does not adjust the memory that MSC thinks it has available to it, so it is necessary to determine how much space MSC wants. The startup code in crt0dat.asm will take up to 64K if it can find it, and this can be used. However, this is a bit much. Is there any way to use less than this 64K? Will changing this in the startup code cause any problems? I would be interested in any code that uses this (or any TSR program in Microsoft C) or references in the manual that I have missed. Please send mail to me, rather than posting. I will send out copies of replies to anyone who's interested. alan