Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

You can't have everything... where would you put it? -- Steven Wright


devel / comp.os.cpm / Re: Can Turbo Pascal run programs that take command line arguments?

SubjectAuthor
* Can Turbo Pascal run programs that take command line arguments?Paolo Amoroso
`* Can Turbo Pascal run programs that take command line arguments?fridtjof.ma...@gmail.com
 `* Can Turbo Pascal run programs that take command line arguments?Paolo Amoroso
  `* Can Turbo Pascal run programs that take command line arguments?Paolo Amoroso
   +- Can Turbo Pascal run programs that take command line arguments?fridtjof.ma...@gmail.com
   `* Can Turbo Pascal run programs that take command line arguments?dxforth
    `- Can Turbo Pascal run programs that take command line arguments?A2CPM

1
Can Turbo Pascal run programs that take command line arguments?

<e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4768&group=comp.os.cpm#4768

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:5bc9:0:b0:39a:348b:857e with SMTP id b9-20020ac85bc9000000b0039a348b857emr20437170qtb.462.1666444755609;
Sat, 22 Oct 2022 06:19:15 -0700 (PDT)
X-Received: by 2002:a05:6870:4587:b0:12d:97b0:b083 with SMTP id
y7-20020a056870458700b0012d97b0b083mr15828097oao.213.1666444755346; Sat, 22
Oct 2022 06:19:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 22 Oct 2022 06:19:15 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.85.208; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.85.208
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
Subject: Can Turbo Pascal run programs that take command line arguments?
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Sat, 22 Oct 2022 13:19:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1347
 by: Paolo Amoroso - Sat, 22 Oct 2022 13:19 UTC

Turbo Pascal's Run command runs the program loaded in memory. Can the development environment run also programs that take command line arguments, without compiling to a file and exiting to CCP? Is there any way of doing this under CP/M-80 or CP/M-86, not M/PM or Concurrent CP/M?

Re: Can Turbo Pascal run programs that take command line arguments?

<46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4770&group=comp.os.cpm#4770

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:144a:b0:39c:c974:9522 with SMTP id v10-20020a05622a144a00b0039cc9749522mr21968723qtx.338.1666466003483;
Sat, 22 Oct 2022 12:13:23 -0700 (PDT)
X-Received: by 2002:a9d:20e3:0:b0:655:d819:244b with SMTP id
x90-20020a9d20e3000000b00655d819244bmr12568174ota.232.1666466003250; Sat, 22
Oct 2022 12:13:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 22 Oct 2022 12:13:23 -0700 (PDT)
In-Reply-To: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:9315:f100:47f5:771c:fb0a:bb43;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:9315:f100:47f5:771c:fb0a:bb43
References: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com>
Subject: Re: Can Turbo Pascal run programs that take command line arguments?
From: fridtjof.martin.weigel@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Sat, 22 Oct 2022 19:13:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1892
 by: fridtjof.ma...@gmail - Sat, 22 Oct 2022 19:13 UTC

On Saturday, October 22, 2022 at 9:19:16 AM UTC-4, paolo....@gmail.com wrote:
> Turbo Pascal's Run command runs the program loaded in memory. Can the development environment run also programs that take command line arguments, without compiling to a file and exiting to CCP? Is there any way of doing this under CP/M-80 or CP/M-86, not M/PM or Concurrent CP/M?
Yes.

ParamCount and ParamStr functions work in programs that are compiled to COM, and in programs run from memory. Use the P command in the IDE.

I think (haven't checked) that this was introduced in Turbo Pascal 3.

FredW

Re: Can Turbo Pascal run programs that take command line arguments?

<d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4771&group=comp.os.cpm#4771

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:4310:b0:6ac:f9df:178d with SMTP id u16-20020a05620a431000b006acf9df178dmr18162062qko.773.1666466405845;
Sat, 22 Oct 2022 12:20:05 -0700 (PDT)
X-Received: by 2002:a05:6808:190d:b0:354:fdd1:f9cd with SMTP id
bf13-20020a056808190d00b00354fdd1f9cdmr23571481oib.69.1666466405573; Sat, 22
Oct 2022 12:20:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 22 Oct 2022 12:20:05 -0700 (PDT)
In-Reply-To: <46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.85.208; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.85.208
References: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com> <46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>
Subject: Re: Can Turbo Pascal run programs that take command line arguments?
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Sat, 22 Oct 2022 19:20:05 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1720
 by: Paolo Amoroso - Sat, 22 Oct 2022 19:20 UTC

On Saturday, October 22, 2022 at 9:13:24 PM UTC+2, fridtjof.ma...@gmail.com wrote:
> ParamCount and ParamStr functions work in programs that are compiled to COM, and in programs run from memory. Use the P command in the IDE.
>
> I think (haven't checked) that this was introduced in Turbo Pascal 3.

The command P may have been introduced in a later version as I can't find it in the Turbo Pascal 3 IDE.

Re: Can Turbo Pascal run programs that take command line arguments?

<f7ec6905-1ed6-4721-9ee4-712ce805f4d3n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4772&group=comp.os.cpm#4772

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:4cd:0:b0:6ec:5396:3abe with SMTP id 196-20020a3704cd000000b006ec53963abemr17848346qke.293.1666472415029;
Sat, 22 Oct 2022 14:00:15 -0700 (PDT)
X-Received: by 2002:a05:6870:2184:b0:131:f5f3:ffee with SMTP id
l4-20020a056870218400b00131f5f3ffeemr32858387oae.85.1666472403915; Sat, 22
Oct 2022 14:00:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 22 Oct 2022 14:00:03 -0700 (PDT)
In-Reply-To: <d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.85.208; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.85.208
References: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
<46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com> <d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f7ec6905-1ed6-4721-9ee4-712ce805f4d3n@googlegroups.com>
Subject: Re: Can Turbo Pascal run programs that take command line arguments?
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Sat, 22 Oct 2022 21:00:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Paolo Amoroso - Sat, 22 Oct 2022 21:00 UTC

On Saturday, October 22, 2022 at 9:20:06 PM UTC+2, Paolo Amoroso wrote:
> The command P may have been introduced in a later version as I can't find it in the Turbo Pascal 3 IDE.

I stand corrected, Fridtjof is right. Turbo Pascal 3 does support the "command line Parameter" under "compiler Options" but only under CP/M-86. The CP/M-80 version of the IDE provides the equivalent "eXecute" main menu command for running arbitrary programs, for example the one under development.

Re: Can Turbo Pascal run programs that take command line arguments?

<7a54e3d0-5fc3-45e3-81f7-291e53a52bcbn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4773&group=comp.os.cpm#4773

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:bc1:b0:6ef:2e0:d8c1 with SMTP id s1-20020a05620a0bc100b006ef02e0d8c1mr11129078qki.351.1666472858962;
Sat, 22 Oct 2022 14:07:38 -0700 (PDT)
X-Received: by 2002:a05:6830:14e:b0:661:c3b2:9d99 with SMTP id
j14-20020a056830014e00b00661c3b29d99mr12816060otp.141.1666472858751; Sat, 22
Oct 2022 14:07:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 22 Oct 2022 14:07:38 -0700 (PDT)
In-Reply-To: <f7ec6905-1ed6-4721-9ee4-712ce805f4d3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:9315:f100:47f5:771c:fb0a:bb43;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:9315:f100:47f5:771c:fb0a:bb43
References: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
<46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com> <d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>
<f7ec6905-1ed6-4721-9ee4-712ce805f4d3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7a54e3d0-5fc3-45e3-81f7-291e53a52bcbn@googlegroups.com>
Subject: Re: Can Turbo Pascal run programs that take command line arguments?
From: fridtjof.martin.weigel@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Sat, 22 Oct 2022 21:07:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fridtjof.ma...@gmail - Sat, 22 Oct 2022 21:07 UTC

On Saturday, October 22, 2022 at 5:00:15 PM UTC-4, paolo....@gmail.com wrote:
> On Saturday, October 22, 2022 at 9:20:06 PM UTC+2, Paolo Amoroso wrote:
> > The command P may have been introduced in a later version as I can't find it in the Turbo Pascal 3 IDE.
> I stand corrected, Fridtjof is right. Turbo Pascal 3 does support the "command line Parameter" under "compiler Options" but only under CP/M-86. The CP/M-80 version of the IDE provides the equivalent "eXecute" main menu command for running arbitrary programs, for example the one under development.

Paolo

Yes! This is not in CP/M-80, X does work, and passes args.

Re: Can Turbo Pascal run programs that take command line arguments?

<tj2v09$a5m$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4774&group=comp.os.cpm#4774

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxforth@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: Can Turbo Pascal run programs that take command line arguments?
Date: Sun, 23 Oct 2022 19:46:01 +1100
Organization: Aioe.org NNTP Server
Message-ID: <tj2v09$a5m$1@gioia.aioe.org>
References: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
<46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com>
<d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>
<f7ec6905-1ed6-4721-9ee4-712ce805f4d3n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="10422"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.3.3
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Sun, 23 Oct 2022 08:46 UTC

On 23/10/2022 8:00 am, Paolo Amoroso wrote:
>
> The CP/M-80 version of the IDE provides the equivalent "eXecute" main menu command for running arbitrary programs, for example the one under development.

I wonder what that involved. Presumably the memory holding the RTL and below would
be trashed by the executing program.

Re: Can Turbo Pascal run programs that take command line arguments?

<8f00de69-3159-44d5-8217-e9c9c73dc65fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4776&group=comp.os.cpm#4776

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:7d42:0:b0:39c:dd3f:b74d with SMTP id h2-20020ac87d42000000b0039cdd3fb74dmr25428857qtb.279.1666568946086;
Sun, 23 Oct 2022 16:49:06 -0700 (PDT)
X-Received: by 2002:a05:6830:2706:b0:661:e264:9b5f with SMTP id
j6-20020a056830270600b00661e2649b5fmr15835677otu.80.1666568945846; Sun, 23
Oct 2022 16:49:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 23 Oct 2022 16:49:05 -0700 (PDT)
In-Reply-To: <tj2v09$a5m$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=73.197.110.124; posting-account=aN3jDwoAAADOaceeGr1YEBdfnBNNGc10
NNTP-Posting-Host: 73.197.110.124
References: <e0ef790d-ee85-419e-bdf8-035d62b7e202n@googlegroups.com>
<46d4d604-0a7d-494f-966b-b5782bd317dfn@googlegroups.com> <d35b56cb-8dfd-4542-bb73-3378c6a8aa1dn@googlegroups.com>
<f7ec6905-1ed6-4721-9ee4-712ce805f4d3n@googlegroups.com> <tj2v09$a5m$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8f00de69-3159-44d5-8217-e9c9c73dc65fn@googlegroups.com>
Subject: Re: Can Turbo Pascal run programs that take command line arguments?
From: a2@wilserv.com (A2CPM)
Injection-Date: Sun, 23 Oct 2022 23:49:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1497
 by: A2CPM - Sun, 23 Oct 2022 23:49 UTC

Reverse engineered source exists for both the CP/M and x86 versions of Turbo Pascal. Adding support for the 'P' option to the CP/M version might be an interestion project.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor