-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PUB #841
Comments
Hello @nomodes, PUB isn't forgotten! In this repository we have, or will have, documents prepared with PUB. Thank you for providing this manual: |
Looks like these are the source files on Saildart: |
I tried creating a TS PUB (and TS PUB2) from the PUB; PUB LOADER and PUB; PUB2 LOADER files (using STINK) as per the instructions in PUB; MAKE PUB, and produced the two executables. However, attempting to run PUB on PUB; PUB PUB (documentation on PUB), gives me this:
I seem to recall seeing email or an issue (authored by Lars?) that referenced this error, which presumably comes from one of the SAIL libraries or perhaps DECSYS; DECBOT BIN. Is this some Y2K issue. I get the same error using a PUB; TS PUB that came off backup tapes and dated 1/9/1983, so it is not the result of attempting to link/load under the current ITS. Any ideas on how to pursue this? |
That rings a very faint bell. I think it was something with Fortran though, so probably Adventure. |
I think maybe @atsampson was involved? |
Yes, we had a related issue with fortran/adventure (and I worked around it). But I thought we had it with dec/sail as well. Maybe misremembering. |
The months problem I looked at was #716. @eswenson1, any chance you could make the PUB; directory available on a branch or in its-vault? |
Done. I added a "pub" directory under "files". |
The only code in PUB that indexes MONTH looks reasonable, using the TOPS-10 date format:
But DECUUO's implementation of the DATE call looks dodgy:
RDATE only returns two BCD digits' worth of year, so I guess DECUUO's DATE will produce nonsense after 2000 (and the comment above was presumably written circa 1972!). |
@36bit wrote in #427 (comment):
|
The TOPS-10 DATE call returns a 15 bit value encoded as
This is good until February 1st, 2052. |
A fix for the DATE problem is in the works. |
Seems to work:
The ^C I typed was to PUB's * prompt. |
Sorry, I should have entered the document name to PUB. No progress:
|
Examining the code at 500134. It looks very much like part of the statement @atsampson posted: Clearly the code checks for an index < 2. But why wouldn't 1 be a valid index?
|
Also, it isn't January. What value does K have after the UUO call? (I guess you could either add a line to the SAIL code to print it or look at it in DDT...) |
Sorry, I was confused by the "2" indicating an accumulator. -5(5) is 0 and -4(5) is 14 (octal). So this seems ok. |
Good question. I'm not at a point where I can run the SAIL compiler, though. |
I guess I'm assuming that "INDEX NO. 1" means the value of the index is 1, when it could just mean "the first index is invalid". So it'd be worth looking at the values of ACs 1 and 2 as you step through the code from 500126... |
I wonder if the message means that the index is 1, or if the first array index is bad? The contents of AC2 is 100. Well, I set a breakpoint on the first IDIVI, and apparently AC1 is 777777737432 at that point. |
Silly me! After some debugging I saw an .RDATE call. Turns out I forgot to make the purified TS DEC which is what PUB maps in.
|
I made a link for the file above.
The text in the PUBSTD DFS file is:
|
Tessler writes:
So maybe we can get rid of that part. But it seems strange that it doesn't work. Maybe we have an old version of PUB, but a newer PUBSTD.DFS? |
That gets us further:
|
.INFO.; PUB DOC
.INFO.; PUB RANDOM
.INFO.; PUB TIP
INFO; PUB TIPS
INFO; PUBXGP DOC
PUB; PUB2 LOADER
PUB; PUB DOC
PUB; PUB FILES
PUB; PUB FTP
PUB; PUB LOADER
PUB; PUB LOG
PUB; PUBMAC DFS
PUB; PUBMAC DOC
PUB; PUB PARC
PUB; PUB PUB
PUB; PUB SAILV
PUB; PUBSTD AIL
PUB; PUBSTD DFS
PUB; PUBSTD MAX
PUB; PUBSTD TES
PUB; PUBSUM 1
PUB; PUB TIPS
PUB; PUB UPD
PUB; PUB UPDATE
PUB; PUBXGP 49
PUB; PUBXGP DOC
PUB; PUBXGP XGP
Typesetting software.
The text was updated successfully, but these errors were encountered: