Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Life's the same, except for the shoes. -- The Cars


computers / comp.os.vms / Resurrecting a VAX MACRO program from 1988

SubjectAuthor
* Resurrecting a VAX MACRO program from 1988T. Kurt Bond
`* Re: Resurrecting a VAX MACRO program from 1988gah4
 `* Re: Resurrecting a VAX MACRO program from 1988cao...@pitbulluk.org
  `* Re: Resurrecting a VAX MACRO program from 1988T. Kurt Bond
   `* Re: Resurrecting a VAX MACRO program from 1988Robert A. Brooks
    +* Re: Resurrecting a VAX MACRO program from 1988T. Kurt Bond
    |`* Re: Resurrecting a VAX MACRO program from 1988T. Kurt Bond
    | +* Re: Resurrecting a VAX MACRO program from 1988Ehud Gavron
    | |+- Re: Resurrecting a VAX MACRO program from 1988Robert A. Brooks
    | |`- Re: Resurrecting a VAX MACRO program from 1988Brian Schenkenberger
    | `- Re: Resurrecting a VAX MACRO program from 1988Simon Clubley
    `* Re: Resurrecting a VAX MACRO program from 1988Simon Clubley
     `- Re: Resurrecting a VAX MACRO program from 1988Dave Froble

1
Resurrecting a VAX MACRO program from 1988

<1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29223&group=comp.os.vms#29223

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:b482:0:b0:765:ab00:9611 with SMTP id d124-20020a37b482000000b00765ab009611mr47329qkf.3.1691789339545;
Fri, 11 Aug 2023 14:28:59 -0700 (PDT)
X-Received: by 2002:a17:903:645:b0:1b7:d4d2:c385 with SMTP id
kh5-20020a170903064500b001b7d4d2c385mr989693plb.1.1691789339028; Fri, 11 Aug
2023 14:28: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: comp.os.vms
Date: Fri, 11 Aug 2023 14:28:58 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=184.13.240.130; posting-account=VfaA3goAAACAzsQ2BCBCq7hV84VieZFr
NNTP-Posting-Host: 184.13.240.130
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
Subject: Resurrecting a VAX MACRO program from 1988
From: tkurtb...@gmail.com (T. Kurt Bond)
Injection-Date: Fri, 11 Aug 2023 21:28:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3646
 by: T. Kurt Bond - Fri, 11 Aug 2023 21:28 UTC

I'm trying to resurrect a VAX MACRO program I wrote in 1988: VTIL, a VAX Threaded Interpretive Language. It's a Forth and STOIC inspired language that uses subroutine threading and it was my senior project in college. I don't have the media it was saved on, or the devices to read those media, but I do have a printout of the VAX MACRO source. I don't have the command procedures I would have used to compile it.

I've got a VAX/VMS 5.5-2 system that I maintain these days (it's emulated) that is a descendant of one of the VAXes I wrote this code on originally. While I've been programming regularly on VMS over the years, most of it has been in VAX BASIC or GNU C. I haven't written any serious MACRO code, probably since ... 1988.

I've typed the MACRO source all in, and got rid of all the obvious errors resulting from the process, and it assembles without errors. When I went to link it, I found out that it was missing two external symbols, which from context I figured out were for items from a VAX Message file that was missing (it wasn't on the printout, alas). I constructed a new .MSG file that ought to work, but when I tried to link them I got the following link error:

$ LINK/MAP/FULL/EXE=VTIL.EXE VTIL.OBJ,VTIL_MSG.OBJ
%LINK-E-OUTSIMG, attempted store location %X00001FFC is outside image binary (%X00002000 to %X02001E00)
in psect VTILCODE module VTIL file MPL$DATA3[MPL.TKB.VTIL]VTIL.OBJ;1
-LINK-E-NOIMGFIL, image file not created
%MMK-F-ERRUPD, error status %X106482B2 occurred when updating target VTIL.EXE

I was hoping someone could give me some guidance on how to figure out what is happening here.

The code is available on GitHub, if anyone wants to read it:
https://github.com/tkurtbond/VTIL

Writing a Forth-inspired language on a VAX using subroutine threading is definitely playing the Forth implementation game in easy mode. I was pleased to see that I could understand the code, after I looked up a few instructions. It is pretty straightforward.

I'd say that if I get it working again it would need some additions to make it generally useful, mainly general file i/o. Right now it can load VTIL source from text files and open a block file and use Forth-inspired functions for reading and writing blocks. It was originally designed to use LIB$GET_INPUT and LIB$PUT_OUTPUT for terminal i/o, and I was thinking it would be interesting to see if I could modify it to have a more Forth-like approach to terminal input and output, where it is done a character at a time.

Re: Resurrecting a VAX MACRO program from 1988

<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29227&group=comp.os.vms#29227

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:6501:b0:76d:fe8:1b03 with SMTP id qb1-20020a05620a650100b0076d0fe81b03mr47672qkn.15.1691803800030;
Fri, 11 Aug 2023 18:30:00 -0700 (PDT)
X-Received: by 2002:a17:90a:e285:b0:26b:3e2a:52b0 with SMTP id
d5-20020a17090ae28500b0026b3e2a52b0mr1702pjz.7.1691803799407; Fri, 11 Aug
2023 18:29:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 11 Aug 2023 18:29:58 -0700 (PDT)
In-Reply-To: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:b5eb:ceed:8afc:6a3f;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:b5eb:ceed:8afc:6a3f
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>
Subject: Re: Resurrecting a VAX MACRO program from 1988
From: gah...@u.washington.edu (gah4)
Injection-Date: Sat, 12 Aug 2023 01:30:00 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
 by: gah4 - Sat, 12 Aug 2023 01:29 UTC

Since you have LINK/MAP, you could post the link map.

It looks like an external symbol problem of some kind, where the linker is trying to modify an address, but the wrong place.

Interesting, it is just before what seems to be the beginning.

Re: Resurrecting a VAX MACRO program from 1988

<7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29231&group=comp.os.vms#29231

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:7401:b0:40f:eaf1:1c01 with SMTP id jj1-20020a05622a740100b0040feaf11c01mr119337qtb.1.1691837170178;
Sat, 12 Aug 2023 03:46:10 -0700 (PDT)
X-Received: by 2002:a17:902:dace:b0:1bc:6a89:86bd with SMTP id
q14-20020a170902dace00b001bc6a8986bdmr1621418plx.10.1691837169962; Sat, 12
Aug 2023 03:46:09 -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.vms
Date: Sat, 12 Aug 2023 03:46:09 -0700 (PDT)
In-Reply-To: <e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:8010:63f6:1:b6b2:a8ea:b442:6c0b;
posting-account=U-ZftAkAAABvsumuV0fbECXlVZy7tqxj
NNTP-Posting-Host: 2a02:8010:63f6:1:b6b2:a8ea:b442:6c0b
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com> <e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
Subject: Re: Resurrecting a VAX MACRO program from 1988
From: caoi...@pitbulluk.org (cao...@pitbulluk.org)
Injection-Date: Sat, 12 Aug 2023 10:46:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: cao...@pitbulluk.org - Sat, 12 Aug 2023 10:46 UTC

On Saturday, August 12, 2023 at 2:30:01 AM UTC+1, gah4 wrote:
> Since you have LINK/MAP, you could post the link map.
>
> It looks like an external symbol problem of some kind, where the linker is trying to modify an address, but the wrong place.
>
> Interesting, it is just before what seems to be the beginning.

There's something weird in the map output anyway.
The cluster listings don't make sense and there seem to be a lot of rows for the default cluster.
VTILCODE is also being listed as 4Gb in size roughly.
I noticed that the beginning of VTILCODE, the initial macro expansion has an offset of -4 and 00001FFC is suspiciously 4 away from 00002000
Possibly barking up the wrong tree but I'll have a proper look later.

K

Re: Resurrecting a VAX MACRO program from 1988

<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29235&group=comp.os.vms#29235

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:7d43:0:b0:40f:f2e0:af7c with SMTP id h3-20020ac87d43000000b0040ff2e0af7cmr73806qtb.13.1691853107004;
Sat, 12 Aug 2023 08:11:47 -0700 (PDT)
X-Received: by 2002:a05:6a00:997:b0:687:26eb:b3d8 with SMTP id
u23-20020a056a00099700b0068726ebb3d8mr2337173pfg.1.1691853106674; Sat, 12 Aug
2023 08:11:46 -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: comp.os.vms
Date: Sat, 12 Aug 2023 08:11:45 -0700 (PDT)
In-Reply-To: <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=184.13.240.130; posting-account=VfaA3goAAACAzsQ2BCBCq7hV84VieZFr
NNTP-Posting-Host: 184.13.240.130
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com>
Subject: Re: Resurrecting a VAX MACRO program from 1988
From: tkurtb...@gmail.com (T. Kurt Bond)
Injection-Date: Sat, 12 Aug 2023 15:11:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2425
 by: T. Kurt Bond - Sat, 12 Aug 2023 15:11 UTC

On Saturday, August 12, 2023 at 6:46:11 AM UTC-4, cao[...] wrote:
> On Saturday, August 12, 2023 at 2:30:01 AM UTC+1, gah4 wrote:
> > Since you have LINK/MAP, you could post the link map.
> >
> > It looks like an external symbol problem of some kind, where the linker is trying to modify an address, but the wrong place.
> >
> > Interesting, it is just before what seems to be the beginning.
> There's something weird in the map output anyway.
> The cluster listings don't make sense and there seem to be a lot of rows for the default cluster.
> VTILCODE is also being listed as 4Gb in size roughly.
> I noticed that the beginning of VTILCODE, the initial macro expansion has an offset of -4 and 00001FFC is suspiciously 4 away from 00002000
> Possibly barking up the wrong tree but I'll have a proper look later.
>
> K

As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map

Sorry, I should have mentioned that.

Re: Resurrecting a VAX MACRO program from 1988

<ub8fn7$1eijp$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29237&group=comp.os.vms#29237

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: Resurrecting a VAX MACRO program from 1988
Date: Sat, 12 Aug 2023 13:32:23 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <ub8fn7$1eijp$1@dont-email.me>
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>
<7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 12 Aug 2023 17:32:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebc07a6536923a82b9f5a6ab7d391b0e";
logging-data="1526393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HmhsUZdj35zk3OD0ZC0eg5epcLSTGsGvTxMXQH0KtGw=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:XZamz23WqRg8etkgDd2fj+UllLE=
X-Antivirus: Avast (VPS 230812-2, 8/12/2023), Outbound message
In-Reply-To: <d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com>
X-Antivirus-Status: Clean
Content-Language: en-US
 by: Robert A. Brooks - Sat, 12 Aug 2023 17:32 UTC

On 8/12/2023 11:11 AM, T. Kurt Bond wrote:
> On Saturday, August 12, 2023 at 6:46:11 AM UTC-4, cao[...] wrote:
>> On Saturday, August 12, 2023 at 2:30:01 AM UTC+1, gah4 wrote:
>>> Since you have LINK/MAP, you could post the link map.
>>>
>>> It looks like an external symbol problem of some kind, where the linker is trying to modify an address, but the wrong place.
>>>
>>> Interesting, it is just before what seems to be the beginning.
>> There's something weird in the map output anyway.
>> The cluster listings don't make sense and there seem to be a lot of rows for the default cluster.
>> VTILCODE is also being listed as 4Gb in size roughly.
>> I noticed that the beginning of VTILCODE, the initial macro expansion has an offset of -4 and 00001FFC is suspiciously 4 away from 00002000
>> Possibly barking up the wrong tree but I'll have a proper look later.
>>
>> K
>
> As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map
>
> Sorry, I should have mentioned that.

I'm impressed that you somehow crafted a PSECT with a negative length!

Psect Name Module Name Base End Length
---------- ----------- ---- --- ------

VTILCODE 00002000 00001FFB FFFFFFFC ( 4294967292.)
VTIL 00002000 00001FFB FFFFFFFC ( 4294967292.)

We'll need John Reagan to weigh in here.

--

--- Rob

Re: Resurrecting a VAX MACRO program from 1988

<d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29238&group=comp.os.vms#29238

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:4d51:0:b0:63c:f7eb:470 with SMTP id m17-20020ad44d51000000b0063cf7eb0470mr65826qvm.11.1691869150983;
Sat, 12 Aug 2023 12:39:10 -0700 (PDT)
X-Received: by 2002:a17:90a:c917:b0:262:fc7f:7d95 with SMTP id
v23-20020a17090ac91700b00262fc7f7d95mr1423344pjt.0.1691869150140; Sat, 12 Aug
2023 12:39:10 -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: comp.os.vms
Date: Sat, 12 Aug 2023 12:39:09 -0700 (PDT)
In-Reply-To: <ub8fn7$1eijp$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=184.13.240.130; posting-account=VfaA3goAAACAzsQ2BCBCq7hV84VieZFr
NNTP-Posting-Host: 184.13.240.130
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com> <ub8fn7$1eijp$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com>
Subject: Re: Resurrecting a VAX MACRO program from 1988
From: tkurtb...@gmail.com (T. Kurt Bond)
Injection-Date: Sat, 12 Aug 2023 19:39:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2233
 by: T. Kurt Bond - Sat, 12 Aug 2023 19:39 UTC

On Saturday, August 12, 2023 at 1:32:27 PM UTC-4, Robert A. Brooks wrote:

> > As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map
> >
> > Sorry, I should have mentioned that.
> I'm impressed that you somehow crafted a PSECT with a negative length!
>
>
> Psect Name Module Name Base End Length
> ---------- ----------- ---- --- ------
>
> VTILCODE 00002000 00001FFB FFFFFFFC ( 4294967292.)
> VTIL 00002000 00001FFB FFFFFFFC ( 4294967292.)
>
>
> We'll need John Reagan to weigh in here.

Well, that doesn't look good. I've updated that repository with the .MAP and VTIL.LIS with /SHOW=EXPANSION from a compilation done today. It shouldn't be too different.

Re: Resurrecting a VAX MACRO program from 1988

<702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29239&group=comp.os.vms#29239

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:aaf:b0:63f:c0b9:e08a with SMTP id ew15-20020a0562140aaf00b0063fc0b9e08amr70584qvb.4.1691870650955;
Sat, 12 Aug 2023 13:04:10 -0700 (PDT)
X-Received: by 2002:a17:90b:8c1:b0:268:553f:1933 with SMTP id
ds1-20020a17090b08c100b00268553f1933mr1241421pjb.6.1691870650617; Sat, 12 Aug
2023 13:04:10 -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.vms
Date: Sat, 12 Aug 2023 13:04:09 -0700 (PDT)
In-Reply-To: <d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=184.13.240.130; posting-account=VfaA3goAAACAzsQ2BCBCq7hV84VieZFr
NNTP-Posting-Host: 184.13.240.130
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com> <ub8fn7$1eijp$1@dont-email.me>
<d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com>
Subject: Re: Resurrecting a VAX MACRO program from 1988
From: tkurtb...@gmail.com (T. Kurt Bond)
Injection-Date: Sat, 12 Aug 2023 20:04:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: T. Kurt Bond - Sat, 12 Aug 2023 20:04 UTC

On Saturday, August 12, 2023 at 3:39:12 PM UTC-4, T. Kurt Bond wrote:
> On Saturday, August 12, 2023 at 1:32:27 PM UTC-4, Robert A. Brooks wrote:
>
> > > As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map
> > >
> > > Sorry, I should have mentioned that.
> > I'm impressed that you somehow crafted a PSECT with a negative length!
> >
> >
> > Psect Name Module Name Base End Length
> > ---------- ----------- ---- --- ------
> >
> > VTILCODE 00002000 00001FFB FFFFFFFC ( 4294967292.)
> > VTIL 00002000 00001FFB FFFFFFFC ( 4294967292.)
> >
> >
> > We'll need John Reagan to weigh in here.
> Well, that doesn't look good. I've updated that repository with the .MAP and VTIL.LIS with /SHOW=EXPANSION from a compilation done today. It shouldn't be too different.

Yay! Pointing out the unusual PSECT size eventually lead me to line 300
in VTIL.MAR:
https://github.com/tkurtbond/VTIL/blob/84496c62b545502961bffd788bbaefdb55450d9e/vtil.mar#L300
Where I saw the assignment "branch = -4". Thaaaat doesn't look right!
Looking at the picture of the source page for that line:
https://github.com/tkurtbond/VTIL-pictures/blob/main/vtil.mar/page-10-lines-285-to-334.jpeg
I see that it should have been "branch = . - 4". That looks better.

And now it links! And when I run it, I get a "VTIL>" prompt! Of course,
nothing seems to work, other than the Ctrl-C handler, and Ctrl-Z to exit.
But now I can run it in the debugger and figure out what is going on.

Thanks for you help!

Re: Resurrecting a VAX MACRO program from 1988

<184322bc-8b4b-4408-8766-5b5fec53ceb1n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29240&group=comp.os.vms#29240

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:5369:0:b0:635:e9f6:9470 with SMTP id e9-20020ad45369000000b00635e9f69470mr168633qvv.5.1691988431531;
Sun, 13 Aug 2023 21:47:11 -0700 (PDT)
X-Received: by 2002:a17:90a:dc02:b0:26b:5405:d5ee with SMTP id
i2-20020a17090adc0200b0026b5405d5eemr512158pjv.3.1691988431168; Sun, 13 Aug
2023 21:47:11 -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.vms
Date: Sun, 13 Aug 2023 21:47:10 -0700 (PDT)
In-Reply-To: <702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:500:8700:d766:b88d:dfe4:c55:9738;
posting-account=WGt8UgoAAAAGjm8Ks25IpbbdGLo_Gewr
NNTP-Posting-Host: 2601:500:8700:d766:b88d:dfe4:c55:9738
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com> <ub8fn7$1eijp$1@dont-email.me>
<d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com> <702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <184322bc-8b4b-4408-8766-5b5fec53ceb1n@googlegroups.com>
Subject: Re: Resurrecting a VAX MACRO program from 1988
From: ehud.gav...@gmail.com (Ehud Gavron)
Injection-Date: Mon, 14 Aug 2023 04:47:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Ehud Gavron - Mon, 14 Aug 2023 04:47 UTC

On Saturday, August 12, 2023 at 1:04:12 PM UTC-7, T. Kurt Bond wrote:
> On Saturday, August 12, 2023 at 3:39:12 PM UTC-4, T. Kurt Bond wrote:
> > On Saturday, August 12, 2023 at 1:32:27 PM UTC-4, Robert A. Brooks wrote:
> >
> > > > As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map
> > > >
> > > > Sorry, I should have mentioned that.
> > > I'm impressed that you somehow crafted a PSECT with a negative length!
> > >
> > >
> > > Psect Name Module Name Base End Length
> > > ---------- ----------- ---- --- ------
> > >
> > > VTILCODE 00002000 00001FFB FFFFFFFC ( 4294967292.)
> > > VTIL 00002000 00001FFB FFFFFFFC ( 4294967292.)
> > >
> > >
> > > We'll need John Reagan to weigh in here.
> > Well, that doesn't look good. I've updated that repository with the .MAP and VTIL.LIS with /SHOW=EXPANSION from a compilation done today. It shouldn't be too different.
> Yay! Pointing out the unusual PSECT size eventually lead me to line 300
> in VTIL.MAR:
> https://github.com/tkurtbond/VTIL/blob/84496c62b545502961bffd788bbaefdb55450d9e/vtil.mar#L300
> Where I saw the assignment "branch = -4". Thaaaat doesn't look right!
> Looking at the picture of the source page for that line:
> https://github.com/tkurtbond/VTIL-pictures/blob/main/vtil.mar/page-10-lines-285-to-334.jpeg
> I see that it should have been "branch = . - 4". That looks better.
>
> And now it links! And when I run it, I get a "VTIL>" prompt! Of course,
> nothing seems to work, other than the Ctrl-C handler, and Ctrl-Z to exit.
> But now I can run it in the debugger and figure out what is going on.
>
> Thanks for you help!

I see I'm too late for this party. Glad you found the issue, and kudos to Robert Brooks for catching the negative PSECT size!

Best wishes from an old friend you've never met.

Ehud

Re: Resurrecting a VAX MACRO program from 1988

<ubd7hk$2atei$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29245&group=comp.os.vms#29245

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Resurrecting a VAX MACRO program from 1988
Date: Mon, 14 Aug 2023 12:43:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <ubd7hk$2atei$2@dont-email.me>
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com> <e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com> <d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com> <ub8fn7$1eijp$1@dont-email.me> <d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com> <702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com>
Injection-Date: Mon, 14 Aug 2023 12:43:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3c08c93344c82ea344a5a248351b9b1d";
logging-data="2454994"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ur7vwAHbLMTSmrDIT0oozFobntXr2wUk="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:adReyk+AzQ6k01g468dTy3qJ6b8=
 by: Simon Clubley - Mon, 14 Aug 2023 12:43 UTC

On 2023-08-12, T. Kurt Bond <tkurtbond@gmail.com> wrote:
>
> Yay! Pointing out the unusual PSECT size eventually lead me to line 300
> in VTIL.MAR:
> https://github.com/tkurtbond/VTIL/blob/84496c62b545502961bffd788bbaefdb55450d9e/vtil.mar#L300
> Where I saw the assignment "branch = -4". Thaaaat doesn't look right!
> Looking at the picture of the source page for that line:
> https://github.com/tkurtbond/VTIL-pictures/blob/main/vtil.mar/page-10-lines-285-to-334.jpeg
> I see that it should have been "branch = . - 4". That looks better.
>

On the plus side, at least you didn't miss out both the "." and the "-"
so at least the linker warned you about it. :-)

BTW, I've never seen that linker error before that I can recall...

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Resurrecting a VAX MACRO program from 1988

<ubd7p1$2atei$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29246&group=comp.os.vms#29246

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Resurrecting a VAX MACRO program from 1988
Date: Mon, 14 Aug 2023 12:47:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <ubd7p1$2atei$3@dont-email.me>
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com> <e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com> <d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com> <ub8fn7$1eijp$1@dont-email.me>
Injection-Date: Mon, 14 Aug 2023 12:47:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3c08c93344c82ea344a5a248351b9b1d";
logging-data="2454994"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nw8xE0P7rCui4R62EsmkfstIwDj6IfnE="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:LwaQWYN/ltApKdkIFisdKrbSrng=
 by: Simon Clubley - Mon, 14 Aug 2023 12:47 UTC

On 2023-08-12, Robert A. Brooks <FIRST.LAST@vmssoftware.com> wrote:
> On 8/12/2023 11:11 AM, T. Kurt Bond wrote:
>> On Saturday, August 12, 2023 at 6:46:11?AM UTC-4, cao[...] wrote:
>>> On Saturday, August 12, 2023 at 2:30:01?AM UTC+1, gah4 wrote:
>>>> Since you have LINK/MAP, you could post the link map.
>>>>
>>>> It looks like an external symbol problem of some kind, where the linker is trying to modify an address, but the wrong place.
>>>>
>>>> Interesting, it is just before what seems to be the beginning.
>>> There's something weird in the map output anyway.
>>> The cluster listings don't make sense and there seem to be a lot of rows for the default cluster.
>>> VTILCODE is also being listed as 4Gb in size roughly.
>>> I noticed that the beginning of VTILCODE, the initial macro expansion has an offset of -4 and 00001FFC is suspiciously 4 away from 00002000
>>> Possibly barking up the wrong tree but I'll have a proper look later.
>>>
>>> K
>>
>> As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map
>>
>> Sorry, I should have mentioned that.
>
> I'm impressed that you somehow crafted a PSECT with a negative length!
>
>
> Psect Name Module Name Base End Length
> ---------- ----------- ---- --- ------
>
> VTILCODE 00002000 00001FFB FFFFFFFC ( 4294967292.)
> VTIL 00002000 00001FFB FFFFFFFC ( 4294967292.)
>
>
> We'll need John Reagan to weigh in here.
>

On the surface, given the End is less than the Base, it looks like
the kind of thing that should be marked with an explicit error, instead
of the more indirect error the linker currently gives.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Resurrecting a VAX MACRO program from 1988

<ubddbl$2bumh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29250&group=comp.os.vms#29250

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: Resurrecting a VAX MACRO program from 1988
Date: Mon, 14 Aug 2023 10:23:08 -0400
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <ubddbl$2bumh$1@dont-email.me>
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>
<7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com>
<ub8fn7$1eijp$1@dont-email.me> <ubd7p1$2atei$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 14 Aug 2023 14:22:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="828a13d26b662a113a0c46c3b4b689a8";
logging-data="2489041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N4fBu/Xk98w6meonayMdm6MxBHEXyPRI="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:otPpgC0faxGC4/dZQbMrFLRGKsc=
In-Reply-To: <ubd7p1$2atei$3@dont-email.me>
 by: Dave Froble - Mon, 14 Aug 2023 14:23 UTC

On 8/14/2023 8:47 AM, Simon Clubley wrote:
> On 2023-08-12, Robert A. Brooks <FIRST.LAST@vmssoftware.com> wrote:
>> On 8/12/2023 11:11 AM, T. Kurt Bond wrote:
>>> On Saturday, August 12, 2023 at 6:46:11?AM UTC-4, cao[...] wrote:
>>>> On Saturday, August 12, 2023 at 2:30:01?AM UTC+1, gah4 wrote:
>>>>> Since you have LINK/MAP, you could post the link map.
>>>>>
>>>>> It looks like an external symbol problem of some kind, where the linker is trying to modify an address, but the wrong place.
>>>>>
>>>>> Interesting, it is just before what seems to be the beginning.
>>>> There's something weird in the map output anyway.
>>>> The cluster listings don't make sense and there seem to be a lot of rows for the default cluster.
>>>> VTILCODE is also being listed as 4Gb in size roughly.
>>>> I noticed that the beginning of VTILCODE, the initial macro expansion has an offset of -4 and 00001FFC is suspiciously 4 away from 00002000
>>>> Possibly barking up the wrong tree but I'll have a proper look later.
>>>>
>>>> K
>>>
>>> As cao noticed, the MAP file from the most recent link *is* in the https://github.com/tkurtbond/VTIL repository and the direct link is https://github.com/tkurtbond/VTIL/blob/main/vtil.map
>>>
>>> Sorry, I should have mentioned that.
>>
>> I'm impressed that you somehow crafted a PSECT with a negative length!
>>
>>
>> Psect Name Module Name Base End Length
>> ---------- ----------- ---- --- ------
>>
>> VTILCODE 00002000 00001FFB FFFFFFFC ( 4294967292.)
>> VTIL 00002000 00001FFB FFFFFFFC ( 4294967292.)
>>
>>
>> We'll need John Reagan to weigh in here.
>>
>
> On the surface, given the End is less than the Base, it looks like
> the kind of thing that should be marked with an explicit error, instead
> of the more indirect error the linker currently gives.
>
> Simon.
>

Any language can have some helpful protections/reporting, or not. Assembly on
any system usually has very few. That means that any assembly language coders
had better be rather good at reading their code, and seeing possible errors.

There will always be some assembly language. The less the better.

I think Robert's comment about a negative length PSECT is both funny, and all
that's needed to point out the issue. Good catch.

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: Resurrecting a VAX MACRO program from 1988

<ube20c$2f4ip$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29252&group=comp.os.vms#29252

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: Resurrecting a VAX MACRO program from 1988
Date: Mon, 14 Aug 2023 16:15:08 -0400
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ube20c$2f4ip$1@dont-email.me>
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com>
<e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com>
<7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com>
<d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com>
<ub8fn7$1eijp$1@dont-email.me>
<d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com>
<702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com>
<184322bc-8b4b-4408-8766-5b5fec53ceb1n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 14 Aug 2023 20:15:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8d5239fc69a006cc586cf2450aaaf204";
logging-data="2593369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+G7UB5k5fBDZjWztX1e1H/0/DwFdwZcZUyW9oSQB4Aog=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:fzUitVkylK7VqymxYX4ohAeSMbM=
X-Antivirus-Status: Clean
Content-Language: en-US
X-Antivirus: Avast (VPS 230814-6, 8/14/2023), Outbound message
In-Reply-To: <184322bc-8b4b-4408-8766-5b5fec53ceb1n@googlegroups.com>
 by: Robert A. Brooks - Mon, 14 Aug 2023 20:15 UTC

On 8/14/2023 12:47 AM, Ehud Gavron wrote:

> Best wishes from an old friend you've never met.

As an old-timer, I remember you from DECUS symposia

--

--- Rob

Re: Resurrecting a VAX MACRO program from 1988

<ubg6d3$2snvu$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29263&group=comp.os.vms#29263

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mai...@SendSpamHere.ORG (Brian Schenkenberger)
Newsgroups: comp.os.vms
Subject: Re: Resurrecting a VAX MACRO program from 1988
Date: Tue, 15 Aug 2023 11:42:27 -0400
Organization: Tmesis Software
Lines: 12
Message-ID: <ubg6d3$2snvu$1@dont-email.me>
References: <1de86b96-efee-4e8e-b1b5-c3bc6d531afcn@googlegroups.com> <e79d65c6-066e-4d37-9e82-4f84132d79c7n@googlegroups.com> <7f690d0f-337a-44b4-b712-59781946dc7dn@googlegroups.com> <d95aa040-30ff-4019-bdfd-fab742e92452n@googlegroups.com> <ub8fn7$1eijp$1@dont-email.me> <d919f374-ca28-4a65-98c5-0d3bda11bc03n@googlegroups.com> <702155ba-1395-4fa9-a5b9-b9fd4d51c320n@googlegroups.com> <184322bc-8b4b-4408-8766-5b5fec53ceb1n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="7f2922e92fd0cfc7083f82d05b84ec61";
logging-data="3039230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xR+BtxEYPoxO0TJvRqZ3u"
User-Agent: Unison/2.2
Cancel-Lock: sha1:EtOWrF4h0lYk/L3GpdhUYc9NURc=
 by: Brian Schenkenberger - Tue, 15 Aug 2023 15:42 UTC

On 2023-08-14 04:47:10 +0000, Ehud Gavron said:

> Best wishes from an old friend you've never met.
>
> Ehud

Hello from an old friend you HAVE met. I hope you're well and I'm happy
to see you contributing in c.o.v. again.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor