🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #8560

Re: Argv[0] in TURBO PASCAL

#8560
From: Timothy D Margeson
Date: Mon, 27 Oct 1986 23:18
21 lines
1300 bytes
In article <627@A60.UUCP> ron@A60.UUCP (Ron Burns) writes:
>
>Now, How do you get the equivalent of paramstr(0), or the filename of the
>program???
>


One way may be to read the command line variable directly, it resides at
CS:0 to CS:100. I have seen the program call name there when running DEBUG,
and think that you can count on the program name always being there.

I think the actual offset is 80H, but am not sure.

TP, the best thing in a bathroom.


-- 
Tim Margeson (206)253-5240
PO Box 3500  d/s C1-937                          @@   'Who said that?'  
Vancouver, WA. 98668
{allegra..inhp4..decvax..ucbvax}!tektronix!tekigm2!timothym 
Technical Details
Message-ID: <1148@tekigm2.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!rutgers!sri-spam!sri-unix!hplabs!tektronix!tekgen!tekigm!tekigm2!timothym
References: <623@A60.UUCP> <2444@gitpyr.gatech.EDU> <627@A60.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!rutgers!sri-spam!sri-unix!hplabs!tektronix!tekgen!tekigm!tekigm2!timothym
From: timothym@tekigm2.UUCP (Timothy D Margeson)
Newsgroups: net.micro.pc
Subject: Re: Argv[0] in TURBO PASCAL
Message-ID: <1148@tekigm2.UUCP>
Date: Mon, 27-Oct-86 18:18:36 EST
Article-I.D.: tekigm2.1148
Posted: Mon Oct 27 18:18:36 1986
Date-Received: Tue, 28-Oct-86 18:59:27 EST
References: <623@A60.UUCP> <2444@gitpyr.gatech.EDU> <627@A60.UUCP>
Reply-To: timothym@tekigm2.UUCP (Timothy D Margeson)
Organization: Tektronix, Inc., Beaverton, OR.
Lines: 21