kevin@nodecg.ncc.telecomwa.oz.au (Kevin Spencer) (05/23/91)
Hi guys, I'm trying to write TSR's. I've been fairly successful with Assembler, but I'm having trouble with Turbo C. I've got a few to work, but they're not particularly tidy or efficient. The main problem is the KEEP function. It requires the number of paragraphs to be saved as an argument. I've tried to use the address of MAIN divided by 16 and adding 16 for the PSP, then 1 for good luck (actually to handle any remainder after the divide by 16), but this doesn't seem to work reliably. Also, it means placing MAIN at the end of the program, and I haven't even begun to try to figure out how to link in multiple modules. It also ties up extra memory because of the startup code being linked in first. So, I was wondering if anyone could point me to some good books on the subject of TSRs in general, and Turbo C ones specifically. For that matter, if any kind soul out there wants to E-mail or post any info or source they have that could help, that'd be great. Thanks in Advance -- -----------------------------------///----------------------------------------- Kevin Spencer (09) 420 8173 /// Insert profound gem of wisdom here... kevin@ncc.telecomwa.oz.au \\\/// -------------------------------\XX/--------------------------------------------