Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It's time to boot, do your boot ROMs know where your disk controllers are?


computers / alt.sys.pdp10 / GTJFN filename argument?

SubjectAuthor
* GTJFN filename argument?Sid Maxwell
+* Re: GTJFN filename argument?gah4
|`- Re: GTJFN filename argument?Sid Maxwell
`* Re: GTJFN filename argument?Rich Alderson
 `* Re: GTJFN filename argument?Sid Maxwell
  `* Re: GTJFN filename argument?fishtoprecords
   `- Re: GTJFN filename argument?gah4

1
GTJFN filename argument?

<96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=961&group=alt.sys.pdp10#961

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:ac8:5d88:0:b0:403:acaa:abe0 with SMTP id d8-20020ac85d88000000b00403acaaabe0mr107486qtx.8.1691087505692;
Thu, 03 Aug 2023 11:31:45 -0700 (PDT)
X-Received: by 2002:a9d:6206:0:b0:6bc:b75c:f32f with SMTP id
g6-20020a9d6206000000b006bcb75cf32fmr4676461otj.2.1691087505493; Thu, 03 Aug
2023 11:31:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: alt.sys.pdp10
Date: Thu, 3 Aug 2023 11:31:44 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=64.67.128.148; posting-account=n4I1uwoAAADBHFepIaRo8JtlC_cZGQXd
NNTP-Posting-Host: 64.67.128.148
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>
Subject: GTJFN filename argument?
From: srmaxwell3@gmail.com (Sid Maxwell)
Injection-Date: Thu, 03 Aug 2023 18:31:45 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1788
 by: Sid Maxwell - Thu, 3 Aug 2023 18:31 UTC

I'm trying to get some code working to open a file (for writing). Initially, it was failing with a 0600115 error (GJFX33: Filename was not specified) and tracked that down to having the address of a char array in r2, rather than a byte pointer.

So I tried passing a proper byte pointer in r2; it still fails but with a code of 2. (I haven't found any documentation of an error code 2.)

When I read the TOPS-20 Monitor Calls Reference Manual regarding the GTJFN call, it isn't quite clear to my noob-ish self whether r2 is supposed to *contain* the byte pointer, or the *address* of the byte pointer.

I tried the latter, as well, and got 0600115, again.

It also isn't mentioned whether the byte pointer needs to be 6-bit, 7-bit, 8-bit, etc. I've tried 8-bit.

Does anyone remember how to do this?

-+- Sid

Re: GTJFN filename argument?

<1ed2d430-1bbb-4de3-85ae-277b69413a04n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=962&group=alt.sys.pdp10#962

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:6214:108b:b0:63c:edce:c71e with SMTP id o11-20020a056214108b00b0063cedcec71emr1089qvr.3.1691107143531;
Thu, 03 Aug 2023 16:59:03 -0700 (PDT)
X-Received: by 2002:a05:6808:2007:b0:3a7:2a9d:be99 with SMTP id
q7-20020a056808200700b003a72a9dbe99mr136806oiw.6.1691107143323; Thu, 03 Aug
2023 16:59:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: alt.sys.pdp10
Date: Thu, 3 Aug 2023 16:59:02 -0700 (PDT)
In-Reply-To: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:f45d:fadc:9060:1868;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:f45d:fadc:9060:1868
References: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1ed2d430-1bbb-4de3-85ae-277b69413a04n@googlegroups.com>
Subject: Re: GTJFN filename argument?
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 03 Aug 2023 23:59:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2003
 by: gah4 - Thu, 3 Aug 2023 23:59 UTC

On Thursday, August 3, 2023 at 11:31:46 AM UTC-7, Sid Maxwell wrote:
> I'm trying to get some code working to open a file (for writing). Initially, it was failing with a 0600115 error (GJFX33: Filename was not specified) and tracked that down to having the address of a char array in r2, rather than a byte pointer.
>
> So I tried passing a proper byte pointer in r2; it still fails but with a code of 2. (I haven't found any documentation of an error code 2.)
>
> When I read the TOPS-20 Monitor Calls Reference Manual regarding the GTJFN call, it isn't quite clear to my noob-ish self whether r2 is supposed to *contain* the byte pointer, or the *address* of the byte pointer.
Short form or long form?

Otherwise, TOPS-20 uses 7 bit ASCII.

Re: GTJFN filename argument?

<mdd8rary8wa.fsf@panix5.panix.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=963&group=alt.sys.pdp10#963

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5-v6.panix.com!not-for-mail
From: news@alderson.users.panix.com (Rich Alderson)
Newsgroups: alt.sys.pdp10
Subject: Re: GTJFN filename argument?
Date: 03 Aug 2023 19:59:49 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 44
Sender: alderson+news@panix5.panix.com
Message-ID: <mdd8rary8wa.fsf@panix5.panix.com>
References: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>
Injection-Info: reader2.panix.com; posting-host="panix5-v6.panix.com:2001:470:30::a654:105";
logging-data="27022"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Thu, 3 Aug 2023 23:59 UTC

Sid Maxwell <srmaxwell3@gmail.com> writes:

> I'm trying to get some code working to open a file (for writing). Initially,
> it was failing with a 0600115 error (GJFX33: Filename was not specified) and
> tracked that down to having the address of a char array in r2, rather than a
> byte pointer.

> So I tried passing a proper byte pointer in r2; it still fails but with a
> code of 2. (I haven't found any documentation of an error code 2.)

> When I read the TOPS-20 Monitor Calls Reference Manual regarding the GTJFN
> call, it isn't quite clear to my noob-ish self whether r2 is supposed to
> *contain* the byte pointer, or the *address* of the byte pointer.

> I tried the latter, as well, and got 0600115, again.

> It also isn't mentioned whether the byte pointer needs to be 6-bit, 7-bit,
> 8-bit, etc. I've tried 8-bit.

There's your problem.

On TOPS-20, all ordinary text is encoded as 7 bit bytes containing ASCII
characters. In monitor calls, a 7 bit byte pointer has a shorthand form

-1,,<address of zero terminated ASCII string>

The pointer in AC2 is usually encoded as follows:

HRROI 2,[ASCIZ/DEVICE:<DIRECTORY.SUBDIRECTORY>FILENAME.EXTENSION/]

where the device and directory specifications default to the currently
connected directory. Depending on whether you are looking for an existing file
(GJ%OLD) or are creating a new file (GJ%NEW), the generation will default to 0
or -1. You can specify the generation in the filename if you need to.

> Does anyone remember how to do this?

Every day. Still writing Macro-20 for a living.

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: GTJFN filename argument?

<ac0ad52f-bd06-4ccb-a482-d1cbbdc7b757n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=964&group=alt.sys.pdp10#964

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:ad4:4d4d:0:b0:63d:2b7d:760a with SMTP id m13-20020ad44d4d000000b0063d2b7d760amr7320qvm.8.1691172779380;
Fri, 04 Aug 2023 11:12:59 -0700 (PDT)
X-Received: by 2002:a05:6870:956a:b0:1b0:2eab:e7e2 with SMTP id
v42-20020a056870956a00b001b02eabe7e2mr2234216oal.0.1691172779001; Fri, 04 Aug
2023 11:12:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: alt.sys.pdp10
Date: Fri, 4 Aug 2023 11:12:58 -0700 (PDT)
In-Reply-To: <1ed2d430-1bbb-4de3-85ae-277b69413a04n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=64.67.128.148; posting-account=n4I1uwoAAADBHFepIaRo8JtlC_cZGQXd
NNTP-Posting-Host: 64.67.128.148
References: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com> <1ed2d430-1bbb-4de3-85ae-277b69413a04n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ac0ad52f-bd06-4ccb-a482-d1cbbdc7b757n@googlegroups.com>
Subject: Re: GTJFN filename argument?
From: srmaxwell3@gmail.com (Sid Maxwell)
Injection-Date: Fri, 04 Aug 2023 18:12:59 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1269
 by: Sid Maxwell - Fri, 4 Aug 2023 18:12 UTC

> Short form or long form?

Short.

> Otherwise, TOPS-20 uses 7 bit ASCII.

I'm learning....

Re: GTJFN filename argument?

<0e9af9f5-47d5-4223-aeb1-5381882303f7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=965&group=alt.sys.pdp10#965

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a37:b646:0:b0:767:3d3d:7cc4 with SMTP id g67-20020a37b646000000b007673d3d7cc4mr6949qkf.1.1691173383957;
Fri, 04 Aug 2023 11:23:03 -0700 (PDT)
X-Received: by 2002:a05:6870:772a:b0:1bb:72af:4373 with SMTP id
dw42-20020a056870772a00b001bb72af4373mr2376212oab.10.1691173383517; Fri, 04
Aug 2023 11:23:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.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: alt.sys.pdp10
Date: Fri, 4 Aug 2023 11:23:03 -0700 (PDT)
In-Reply-To: <mdd8rary8wa.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=64.67.128.148; posting-account=n4I1uwoAAADBHFepIaRo8JtlC_cZGQXd
NNTP-Posting-Host: 64.67.128.148
References: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com> <mdd8rary8wa.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0e9af9f5-47d5-4223-aeb1-5381882303f7n@googlegroups.com>
Subject: Re: GTJFN filename argument?
From: srmaxwell3@gmail.com (Sid Maxwell)
Injection-Date: Fri, 04 Aug 2023 18:23:03 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1863
 by: Sid Maxwell - Fri, 4 Aug 2023 18:23 UTC

> There's your problem.
>
> On TOPS-20, all ordinary text is encoded as 7 bit bytes containing ASCII
> characters. In monitor calls, a 7 bit byte pointer has a shorthand form
>
> -1,,<address of zero terminated ASCII string>
>
> The pointer in AC2 is usually encoded as follows:
>
> HRROI 2,[ASCIZ/DEVICE:<DIRECTORY.SUBDIRECTORY>FILENAME.EXTENSION/]

This was the critical clue, Rich, and thanks! I'd seen an example with the HRROI, but told myself "that doesn't make a byte pointer!".

Next I need to figure out why the written data is gibberish! :-D

> > Does anyone remember how to do this?
> Every day. Still writing Macro-20 for a living.

I'd love to hear more about what you're doing and for whom.

Re: GTJFN filename argument?

<99c0164a-d011-4876-ae46-8839c0310b88n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=966&group=alt.sys.pdp10#966

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:620a:43aa:b0:76c:b401:14ff with SMTP id a42-20020a05620a43aa00b0076cb40114ffmr16391qkp.7.1691286200674;
Sat, 05 Aug 2023 18:43:20 -0700 (PDT)
X-Received: by 2002:a05:6870:769b:b0:1bb:4279:4be9 with SMTP id
dx27-20020a056870769b00b001bb42794be9mr5719495oab.3.1691286200247; Sat, 05
Aug 2023 18:43:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.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: alt.sys.pdp10
Date: Sat, 5 Aug 2023 18:43:19 -0700 (PDT)
In-Reply-To: <0e9af9f5-47d5-4223-aeb1-5381882303f7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.208.226; posting-account=5pAuXwkAAADYxu_vHG_N6x8Gdf1I-9kI
NNTP-Posting-Host: 71.162.208.226
References: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>
<mdd8rary8wa.fsf@panix5.panix.com> <0e9af9f5-47d5-4223-aeb1-5381882303f7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <99c0164a-d011-4876-ae46-8839c0310b88n@googlegroups.com>
Subject: Re: GTJFN filename argument?
From: pat22043@gmail.com (fishtoprecords)
Injection-Date: Sun, 06 Aug 2023 01:43:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1699
 by: fishtoprecords - Sun, 6 Aug 2023 01:43 UTC

On Friday, August 4, 2023 at 2:23:04 PM UTC-4, Sid Maxwell wrote:
> This was the critical clue, Rich, and thanks! I'd seen an example with the HRROI, but told myself "that doesn't make a byte pointer!".

Yeah, there is a test in the monitor's JSYS code to test for -1 in the left half of an argument register
and swap in 440700 for the -1

If you look at the exec sources, there are zillions of the
HRROI T1, FOO

Re: GTJFN filename argument?

<271944f5-8ad1-4cd0-b65f-3eedc4da823bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=967&group=alt.sys.pdp10#967

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a37:8787:0:b0:76c:96f2:ddec with SMTP id j129-20020a378787000000b0076c96f2ddecmr18318qkd.7.1691291009459;
Sat, 05 Aug 2023 20:03:29 -0700 (PDT)
X-Received: by 2002:a05:6808:208f:b0:397:f54a:22d6 with SMTP id
s15-20020a056808208f00b00397f54a22d6mr9335042oiw.9.1691291009228; Sat, 05 Aug
2023 20:03:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.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: alt.sys.pdp10
Date: Sat, 5 Aug 2023 20:03:28 -0700 (PDT)
In-Reply-To: <99c0164a-d011-4876-ae46-8839c0310b88n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:b998:207a:5480:9089;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:b998:207a:5480:9089
References: <96070b4a-f4b0-4052-b59a-0bd4c5e47a84n@googlegroups.com>
<mdd8rary8wa.fsf@panix5.panix.com> <0e9af9f5-47d5-4223-aeb1-5381882303f7n@googlegroups.com>
<99c0164a-d011-4876-ae46-8839c0310b88n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <271944f5-8ad1-4cd0-b65f-3eedc4da823bn@googlegroups.com>
Subject: Re: GTJFN filename argument?
From: gah4@u.washington.edu (gah4)
Injection-Date: Sun, 06 Aug 2023 03:03:29 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2070
 by: gah4 - Sun, 6 Aug 2023 03:03 UTC

On Saturday, August 5, 2023 at 6:43:21 PM UTC-7, fishtoprecords wrote:

(snip)
> Yeah, there is a test in the monitor's JSYS code to test for -1 in the left half of an argument register
> and swap in 440700 for the -1
> If you look at the exec sources, there are zillions of the
> HRROI T1, FOO

Pretty neat. One test in the monitor saves many instructions other places to load the 440700.

I an wondering about any similar user conveniences in OS/360.

One problem with OS/360, is that there were code byte quotas when it was
being written, to keep OS size down. That lead to decreased OS size, at the expense
of user program size, the opposite of this case.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor