🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6769

Re: Turbo C's KEEP function

#6769
From: Kevin Spencer
Date: Thu, 23 May 1991 04:26
26 lines
1823 bytes
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/--------------------------------------------
Technical Details
Message-ID: <1991May23.042603.537@nodecg.ncc.telecomwa.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!uniwa!nodecg!kevin
References: <91May21.233712edt.8286@orasis.vis.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!uniwa!nodecg!kevin
From: kevin@nodecg.ncc.telecomwa.oz.au (Kevin Spencer)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Turbo C's KEEP function
Message-ID: <1991May23.042603.537@nodecg.ncc.telecomwa.oz.au>
Date: 23 May 91 04:26:03 GMT
References: <91May21.233712edt.8286@orasis.vis.toronto.edu>
Reply-To: kevin@nodecg.UUCP (Kevin Spencer)
Organization: Network Computer Centre - Telecom
Lines: 26