Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Sex is like air. It's only a big deal if you can't get any.


computers / alt.sys.pdp10 / Re: TOPS-20 Fortran DATE() routine fix. Is there one?

SubjectAuthor
* Re: TOPS-20 Fortran DATE() routine fix. Is there one?David Meyer
+* Re: TOPS-20 Fortran DATE() routine fix. Is there one?David Meyer
|`* Re: TOPS-20 Fortran DATE() routine fix. Is there one?David Meyer
| `* Re: TOPS-20 Fortran DATE() routine fix. Is there one?gah4
|  `- Re: TOPS-20 Fortran DATE() routine fix. Is there one?David Meyer
`* Re: TOPS-20 Fortran DATE() routine fix. Is there one?David Todd
 `- Re: TOPS-20 Fortran DATE() routine fix. Is there one?Rich Alderson

1
Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:622a:214:b0:2e1:a8cf:959f with SMTP id b20-20020a05622a021400b002e1a8cf959fmr24015861qtx.300.1647398930990;
Tue, 15 Mar 2022 19:48:50 -0700 (PDT)
X-Received: by 2002:a05:6808:bd1:b0:2ec:da27:9449 with SMTP id
o17-20020a0568080bd100b002ecda279449mr2976860oik.40.1647398930677; Tue, 15
Mar 2022 19:48:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Tue, 15 Mar 2022 19:48:50 -0700 (PDT)
In-Reply-To: <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:6587:8660:4300:5cb3:399b:7b51:a2c9;
posting-account=485jAQgAAAAKoGRdVIhqCU-bWCWLTuIq
NNTP-Posting-Host: 2405:6587:8660:4300:5cb3:399b:7b51:a2c9
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com>
<14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16>
<mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com>
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
From: papasc...@gmail.com (David Meyer)
Injection-Date: Wed, 16 Mar 2022 02:48:50 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 63
 by: David Meyer - Wed, 16 Mar 2022 02:48 UTC

I would like to do some date arithmetic programming in Fortran on TOPS-20 and have been trying to get the Fortran DATE() bug work-arounds posted above to work, but without success.

1. Charles Richmond's DATE4Y.MAC (posted on 2011/12/25) will compile on LCM+L's TOAD-2 (creates DATE4Y.REL), but with the following errors:

[NOKNOW] LS:<~>@ comp date4y
MACRO: FORDAT
+10 PAGE 1
RU 000000' 000000 000000* SEGMENT CODE
+32
RU 000013' 000000 000000* SEGMENT DATA
DATA Unassigned, defined as if external
CODE Unassigned, defined as if external
SEGMENT Unassigned, defined as if external

?4 ERRORS DETECTED

EXIT

(DATE4Y.MAC won't compile on other TOPS-20 systems I have access to (including twenex.org) due to not being able to find MTHPRM.)

Charles's TSM.FOR demo program compiles, but produces the following errors when I try linking it with DATE4Y.REL (mostly understandable from the DATE4Y compile errors):

[NOKNOW] LS:<~>@ link
*date4y
*/start=tsm
*/go
?LNKUGS 7 undefined global symbols
TMDATE 437
SEGMENT 0
DATA 153
PARSER 463
CODE 140
CHANNL 421
CLEARC 423

2. David Todd's MDATE.MAC (posted 2012/4/26) compiles without errors on all TOPS-20 systems I have tried. I created the following Fortran program to test MDATE, which also compiles without errors:

C TMDATE.FOR - Test MDATE subroutine

PROGRAM TMDATE
CHARACTER*10 DATSTR
CALL MDATE (DATSTR)
TYPE *, DATSTR
STOP
END

Link also terminated normally:

[NOKNOW] LS:<~>@ comp tmdate
FORTRAN: TMDATE
TMDATE
[NOKNOW] LS:<~>@ link
*mdate
*/start=tmdate
*/go
[NOKNOW] LS:<~>@ save
TMDATE.EXE.1 Saved

However, running TMDATE seems to produce an endless loop of pages of blank output.

Any insights will be appreciated.

Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<5af524b7-3e12-40b0-9eb8-627a476159d3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:620a:21d4:b0:67d:6a35:5dff with SMTP id h20-20020a05620a21d400b0067d6a355dffmr17075049qka.747.1647399605476;
Tue, 15 Mar 2022 20:00:05 -0700 (PDT)
X-Received: by 2002:a05:6808:ece:b0:2da:70a4:f351 with SMTP id
q14-20020a0568080ece00b002da70a4f351mr3022215oiv.94.1647399604668; Tue, 15
Mar 2022 20:00:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Tue, 15 Mar 2022 20:00:04 -0700 (PDT)
In-Reply-To: <ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:6587:8660:4300:5cb3:399b:7b51:a2c9;
posting-account=485jAQgAAAAKoGRdVIhqCU-bWCWLTuIq
NNTP-Posting-Host: 2405:6587:8660:4300:5cb3:399b:7b51:a2c9
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com>
<14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16>
<mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
<ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5af524b7-3e12-40b0-9eb8-627a476159d3n@googlegroups.com>
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
From: papasc...@gmail.com (David Meyer)
Injection-Date: Wed, 16 Mar 2022 03:00:05 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
 by: David Meyer - Wed, 16 Mar 2022 03:00 UTC

On Wednesday, March 16, 2022 at 11:48:51 AM UTC+9, David Meyer wrote:
> 2. David Todd's MDATE.MAC (posted 2012/4/26) compiles without errors on all TOPS-20 systems I have tried. I created the following Fortran program to test MDATE, which also compiles without errors:
>
> C TMDATE.FOR - Test MDATE subroutine
>
> PROGRAM TMDATE
> CHARACTER*10 DATSTR
> CALL MDATE (DATSTR)
> TYPE *, DATSTR
> STOP
> END

My test programs appears to work if I change the data declaration from "CHARACTER*10 DATSTR" to "DOUBLE PRECISION DATSTR" or "INTEGER DATSTR (2)" as David's documentation instructs.

Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<2cb36ca7-f145-46c7-97f1-f1b5faa4285an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:620a:56b:b0:62c:eff4:fe8d with SMTP id p11-20020a05620a056b00b0062ceff4fe8dmr19225724qkp.459.1647404515486;
Tue, 15 Mar 2022 21:21:55 -0700 (PDT)
X-Received: by 2002:a05:6870:5b8c:b0:da:6a40:8e6e with SMTP id
em12-20020a0568705b8c00b000da6a408e6emr2849598oab.177.1647404515167; Tue, 15
Mar 2022 21:21:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Tue, 15 Mar 2022 21:21:54 -0700 (PDT)
In-Reply-To: <5af524b7-3e12-40b0-9eb8-627a476159d3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:6587:8660:4300:5cb3:399b:7b51:a2c9;
posting-account=485jAQgAAAAKoGRdVIhqCU-bWCWLTuIq
NNTP-Posting-Host: 2405:6587:8660:4300:5cb3:399b:7b51:a2c9
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com>
<14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16>
<mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
<ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com> <5af524b7-3e12-40b0-9eb8-627a476159d3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2cb36ca7-f145-46c7-97f1-f1b5faa4285an@googlegroups.com>
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
From: papasc...@gmail.com (David Meyer)
Injection-Date: Wed, 16 Mar 2022 04:21:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: David Meyer - Wed, 16 Mar 2022 04:21 UTC

On Wednesday, March 16, 2022 at 12:00:05 PM UTC+9, David Meyer wrote:
> My test programs appears to work if I change the data declaration from "CHARACTER*10 DATSTR" to "DOUBLE PRECISION DATSTR" or "INTEGER DATSTR (2)" as David's documentation instructs.

For the benefit of other Fortran novices, here's an improved version of my MDATE test program that calls David's subroutine then prints the date string:

C TMDATE.FOR - Test MDATE subroutine

PROGRAM TMDATE
INTEGER DATARY (2)
CALL MDATE (DATARY)
TYPE 10, DATARY (1), DATARY (2)
10 FORMAT (' ', A, A)
STOP
END

Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<a80bddca-6c04-4ee8-9916-f65b316f5ccbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:6214:518d:b0:435:cf8c:63c1 with SMTP id kl13-20020a056214518d00b00435cf8c63c1mr23141358qvb.61.1647409540691;
Tue, 15 Mar 2022 22:45:40 -0700 (PDT)
X-Received: by 2002:a05:6870:88a4:b0:da:b3f:2b56 with SMTP id
m36-20020a05687088a400b000da0b3f2b56mr2922531oam.245.1647409540455; Tue, 15
Mar 2022 22:45:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Tue, 15 Mar 2022 22:45:40 -0700 (PDT)
In-Reply-To: <2cb36ca7-f145-46c7-97f1-f1b5faa4285an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:c5aa:3987:4aef:e81e;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:c5aa:3987:4aef:e81e
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com>
<14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16>
<mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
<ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com> <5af524b7-3e12-40b0-9eb8-627a476159d3n@googlegroups.com>
<2cb36ca7-f145-46c7-97f1-f1b5faa4285an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a80bddca-6c04-4ee8-9916-f65b316f5ccbn@googlegroups.com>
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
From: gah...@u.washington.edu (gah4)
Injection-Date: Wed, 16 Mar 2022 05:45:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
 by: gah4 - Wed, 16 Mar 2022 05:45 UTC

On Tuesday, March 15, 2022 at 9:21:55 PM UTC-7, papa...@gmail.com wrote:

(snip)

> PROGRAM TMDATE
> INTEGER DATARY (2)
> CALL MDATE (DATARY)
> TYPE 10, DATARY (1), DATARY (2)
> 10 FORMAT (' ', A, A)
> STOP
> END

I might have thought those would be A5 format. Is the default 5?

Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<f9394daf-9589-40e2-b8f5-305914e204a3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:622a:181:b0:2e1:e70a:ec2a with SMTP id s1-20020a05622a018100b002e1e70aec2amr3533775qtw.42.1647417160144;
Wed, 16 Mar 2022 00:52:40 -0700 (PDT)
X-Received: by 2002:a05:6870:17a1:b0:da:b3f:3258 with SMTP id
r33-20020a05687017a100b000da0b3f3258mr3022468oae.264.1647417159879; Wed, 16
Mar 2022 00:52:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Wed, 16 Mar 2022 00:52:39 -0700 (PDT)
In-Reply-To: <a80bddca-6c04-4ee8-9916-f65b316f5ccbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:6587:8660:4300:5cb3:399b:7b51:a2c9;
posting-account=485jAQgAAAAKoGRdVIhqCU-bWCWLTuIq
NNTP-Posting-Host: 2405:6587:8660:4300:5cb3:399b:7b51:a2c9
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com>
<14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16>
<mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
<ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com> <5af524b7-3e12-40b0-9eb8-627a476159d3n@googlegroups.com>
<2cb36ca7-f145-46c7-97f1-f1b5faa4285an@googlegroups.com> <a80bddca-6c04-4ee8-9916-f65b316f5ccbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f9394daf-9589-40e2-b8f5-305914e204a3n@googlegroups.com>
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
From: papasc...@gmail.com (David Meyer)
Injection-Date: Wed, 16 Mar 2022 07:52:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: David Meyer - Wed, 16 Mar 2022 07:52 UTC

On Wednesday, March 16, 2022 at 2:45:41 PM UTC+9, gah4 wrote:
> I might have thought those would be A5 format. Is the default 5?

Yes, for single-precision values. Default is A10 for double-precision.

(The program works because I was lucky, not because I knew that. ;)

Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<d04e0ff1-fcdb-47af-aed3-464f6820fa94n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a0c:c447:0:b0:432:8ae6:aee with SMTP id t7-20020a0cc447000000b004328ae60aeemr14362732qvi.88.1647814457302;
Sun, 20 Mar 2022 15:14:17 -0700 (PDT)
X-Received: by 2002:a05:6808:1983:b0:2da:3494:4795 with SMTP id
bj3-20020a056808198300b002da34944795mr12639010oib.10.1647814457038; Sun, 20
Mar 2022 15:14:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Sun, 20 Mar 2022 15:14:16 -0700 (PDT)
In-Reply-To: <ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.68.172.94; posting-account=mKa3-woAAADKBaMMRiAaHYzjjcsJED0N
NNTP-Posting-Host: 75.68.172.94
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com>
<14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16>
<mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13>
<ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d04e0ff1-fcdb-47af-aed3-464f6820fa94n@googlegroups.com>
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
From: hdt...@gmail.com (David Todd)
Injection-Date: Sun, 20 Mar 2022 22:14:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 82
 by: David Todd - Sun, 20 Mar 2022 22:14 UTC

On Tuesday, March 15, 2022 at 10:48:51 PM UTC-4, papa... wrote:
> I would like to do some date arithmetic programming in Fortran on TOPS-20 and have been trying to get the Fortran DATE() bug work-arounds posted above to work, but without success.

As a result of smj's upgrade to KANKAN and associated boot camps, I've started fiddling with my Mac-hosted Panda DEC-20 (thinking of MRC every time I fire it up). I saw your note and was amused and pleased that my 10-year-old MACRO routine for a long-dead hardware platform was useful to someone. Thanks for that.

But as I thought about it, if you're doing date arithmetic processing, you'd probably really want the date in numeric form. And that seemed like a fun exercise. So here it is. Hope it's useful, or at least interesting. Much easier getting the numbers than the strings.

Apologies for the formatting below ... no "code" formatting in Google Groups conversations, apparently. I can drop these somewhere if you think they're useful but have trouble with the formatting.

David

C NDTEST.FOR - Test NDATE subroutine

PROGRAM NDTEST
INTEGER DATSTR(3)
CALL MDATE (DATSTR)
TYPE 10, DATSTR(1), DATSTR(2), DATSTR(3)
10 FORMAT(' Today''s date is: ', I4, '\', i2, '\', i2)
STOP
END

cat ndate.mac
TITLE NDATE - FORTRAN Subroutine to return date in 3rd millenium
SEARCH MONSYM,MACSYM
.REQUIRE SYS:MACREL
; ; Replaces FORTRAN library DATE subroutine, which was not Y2K compatible
; ; Calling sequence
; CALL MDATE(A)
; where A is a 3-word array
; Returns the date as 3 integers, YYYY, MM, DD in that array
; MM = 1..12 and dd 1..{28, 30, 31}
; ; Written by H D Todd, Williston, VT, March, 2022
; T0==0
T1==1
T2==2
T3==3
T4==4
L==16
P==17
; ENTRY MDATE
SIXBIT /MDATE/
MDATE: PUSH P,T1 ;SAVE REGS WE USE
PUSH P,T2
PUSH P,T3
PUSH P,T4
MOVX T2,-1 ;GET TODAY'S DATE AS COMPONENTS
SETZ T4,
ODCNV%
;RESULTS COME BACK AS
;T2: YEAR,,MONTH-1
;T3: DAY-OF-MONTH-1,,DAY-OF-WEEK-1
;T4: FLAGS FROM CONVERSION
HRRZ T1,0(L) ;GET THE ADDRESS OF THE OUTPUT ARRAY
HLRZM T2,0(T1) ;STORE THE YEAR
ADDI T2,1 ;GET MON IN T2 RIGHT HAND SIDE
HRRZM T2,1(T1) ;STORE THE MONTH
HLRZ T2,T3 ;GET DOW-1 INTO T2
ADDI T2,1 ;DOW NOW IN T2
HRRZM T2,2(T1) ;STORE THE DAY OF MONTH
POP P,T4
POP P,T3
POP P,T2
POP P,T1
RET ;RETURN CONTROL TO CALLING ROUTINE
END

Re: TOPS-20 Fortran DATE() routine fix. Is there one?

<mddzgljta3q.fsf@panix5.panix.com>

  copy mid

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

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: alt.sys.pdp10
Subject: Re: TOPS-20 Fortran DATE() routine fix. Is there one?
Date: 21 Mar 2022 14:48:57 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 71
Sender: alderson+news@panix5.panix.com
Message-ID: <mddzgljta3q.fsf@panix5.panix.com>
References: <c43139b7-4973-4baf-83fb-81703a955014@t16g2000vba.googlegroups.com> <14632067.4089.1335407287637.JavaMail.geo-discussion-forums@vbbfk16> <mddr4vaz5pz.fsf@panix5.panix.com> <5517128.715.1335612231074.JavaMail.geo-discussion-forums@vbpz13> <ccd5ed6a-c6e4-46cd-a684-72b8f67c3b5bn@googlegroups.com> <d04e0ff1-fcdb-47af-aed3-464f6820fa94n@googlegroups.com>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="10385"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Mon, 21 Mar 2022 18:48 UTC

Removing the "quoted printable" "formatting"...

David Todd <hdtodd@gmail.com> writes:

C NDTEST.FOR - Test NDATE subroutine

PROGRAM NDTEST
INTEGER DATSTR(3)
CALL MDATE (DATSTR)
TYPE 10, DATSTR(1), DATSTR(2), DATSTR(3)
10 FORMAT(' Today''s date is: ', I4, '\', i2, '\', i2)
STOP
END

cat ndate.mac

TITLE NDATE - FORTRAN Subroutine to return date in 3rd millenium
SEARCH MONSYM,MACSYM
.REQUIRE SYS:MACREL
; ; Replaces FORTRAN library DATE subroutine, which was not Y2K compatible
; ; Calling sequence
; CALL MDATE(A)
; where A is a 3-word array
; Returns the date as 3 integers, YYYY, MM, DD in that array
; MM = 1..12 and dd 1..{28, 30, 31}
; ; Written by H D Todd, Williston, VT, March, 2022
; T0==0
T1==1
T2==2
T3==3
T4==4
L==16
P==17
; ENTRY MDATE
SIXBIT /MDATE/
MDATE: PUSH P,T1 ;SAVE REGS WE USE
PUSH P,T2
PUSH P,T3
PUSH P,T4
MOVX T2,-1 ;GET TODAY'S DATE AS COMPONENTS
SETZ T4,
ODCNV%
;RESULTS COME BACK AS
;T2: YEAR,,MONTH-1
;T3: DAY-OF-MONTH-1,,DAY-OF-WEEK-1
;T4: FLAGS FROM CONVERSION
HRRZ T1,0(L) ;GET THE ADDRESS OF THE OUTPUT ARRAY
HLRZM T2,0(T1) ;STORE THE YEAR
ADDI T2,1 ;GET MON IN T2 RIGHT HAND SIDE
HRRZM T2,1(T1) ;STORE THE MONTH
HLRZ T2,T3 ;GET DOW-1 INTO T2
ADDI T2,1 ;DOW NOW IN T2
HRRZM T2,2(T1) ;STORE THE DAY OF MONTH
POP P,T4
POP P,T3
POP P,T2
POP P,T1
RET ;RETURN CONTROL TO CALLING ROUTINE
END

--
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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor