Files
Eremey Valetov dd7caf89f6 Accept the 1954 tape and drum formulas, and check an assigned GO TO.
FORTRAN 0 now parses the parenthesized tape and drum statements.
Both tape spellings share one binary record. A drum address is 1..2048
and a transfer may not pass the last word. The read walks the list
once, so a bound stored earlier in that list is the bound that applies.
Section K follows the labeled example rather than the words "opposite"
and "last", which reject it.

An assigned GO TO inside a DO, under FORTRAN I and II, must aim at one
part of the nest or entirely outside it. The local i704 tree still has
no FORTRAN listing.
2026-11-12 16:21:15 -05:00

16 lines
371 B
FortranFixed

C ONE DRUM READ. THE INDEX AND AN EARLIER BOUND STAY LIVE.
DIMENSION A(2), B(2)
I = 1
WRITE DRUM (1, 1) 11.0, 22.0
READ DRUM (1, 1) (A(I), I = I, 2)
PRINT A(1)
PRINT A(2)
N = 0
WRITE DRUM (2, 1) 2, 3.0, 4.0
READ DRUM (2, 1) N, (B(J), J = 1, N)
PRINT N
PRINT B(1)
PRINT B(2)
STOP
END