🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Answer to how to make TSR name show on MAPMEM display.

#4104
From: Bob Davis
Date: Wed, 02 Jan 1991 18:26
55 lines
3671 bytes
In article <1991Jan02.160147.2030@cpqhou.uucp> pipkinsj@cpqhou.UUCP (Jeff Pipkins @Adv Dev@SE hou ) writes:
>In article <5001@trantor.harris-atd.com> sonny@trantor.harris-atd.com (Bob Davis) writes:
>>I seem to have stumbled upon the answer to my own question of a while
>>back in this newsgroup:
>>
>>     Q: How do you make your TSR's name show under the "owner"
>>	column in Kim Kokkonen's TSR Mark/Release package "mapmem"
>>	display?
>>
>>     A: Don't deallocate the TSR's environment when you install the
>>        TSR.
>>
>>The mapmem command must look at the environment to determine the
>>command name to place under the "owner" column. Might be nice to
>>figure out a way to deallocate the DOS environment and then re-install
>>a tiny "pseudo-environment" containing nothing but the command name so
>>mapmem could see it. Any idea how I might do that?
>
>MS-DOS 4.x has a "mem" command that lists programs and TSRs in a similar
>way.  TSRs that come with DOS 4.x put an 8-byte name in the last 8 bytes
>of the memory control block that their PSP is in.  In other words, the
>8 bytes immediately preceeding the PSP.  These bytes are unused in previous
>versions of DOS, so it's probably a good idea to do this if you're a TSR.
>
	[DELETIONS]
>-- 
>Jeff D. Pipkins (uunet!cpqhou!pipkinsj)
>
	That's interesting how MSDOS 4.x includes the feature. I will
have to look into that.
	Extraordinarily-useful E-mail exchanges with
Anto Prijosoesilo and Richard Brittain as a result of my original posting
about the "Pseudo-environment" idea resulted in its implementation in
my evolving TBONES06.ZIP package of skeletal ASM programs to help develop
your own TSRs.
	This "Pseudo-environment" idea basically involves the de-allocation
of the original DOS environment (which can be quite large for some users),
followed by the re-allocation of a single paragraph (16-byte) fake
environment containing only the program name plus a few bytes to satisfy
DOS's requirements on the structure of the environment.
	I certainly am more than willing to donate 16 bytes of RAM to have
the TSR name show on the MAPMEM display. And I use only these 16 bytes
more than the TSRs which totally de-allocate the environment leaving it
to the user to figure out which of the several "N/A" ID's under the "owner"
column of the MAPMEM command is the TSR for which information is sought.

	If anyone is interested in Assembly language details of how the 
"Pseudo-environment" idea has been implemented, send E-mail to me
requesting TBONES06.ZIP.
_____________________________________________________________________________
Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com  |  _   _  |
Harris Corporation, ESS \\    UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | |
Advanced Technology Dept.\\ AETHER: K4VNO          |==============|_/\/\/\|_|
PO Box 37, MS 3A/1912     \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| |
Melbourne, FL 32902        \\  FAX: (407) 729-2537 | FOR MYSELF.  |_________|
Technical Details
Message-ID: <5169@trantor.harris-atd.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!trantor.harris-atd.com!charybdis!sonny
References: <5001@trantor.harris-atd.com> <1991Jan02.160147.2030@cpqhou.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!trantor.harris-atd.com!charybdis!sonny
From: sonny@charybdis.harris-atd.com (Bob Davis)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Answer to how to make TSR name show on MAPMEM display.
Message-ID: <5169@trantor.harris-atd.com>
Date: 2 Jan 91 18:26:51 GMT
References: <5001@trantor.harris-atd.com> <1991Jan02.160147.2030@cpqhou.uucp>
Sender: news@trantor.harris-atd.com
Reply-To: sonny@trantor.harris-atd.com (Bob Davis)
Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL
Lines: 55