The 1956 statements now move BCD and binary records for the whole program. A format that runs out of fields reads the next record, and a slash only finishes the record in hand. A binary word read into a real name is written back as the same word. A SHARE tape image is still on the network and was not booted here, so there is still no FORTRAN DO / IF / FORMAT listing. Expected files remain this runtime's stdout.
21 lines
425 B
FortranFixed
21 lines
425 B
FortranFixed
C BINARY TAPE. NOT AN I704 FORTRAN PRINTOUT.
|
|
DIMENSION A(3)
|
|
A(1) = 1.0
|
|
A(2) = 2.0
|
|
A(3) = -3.0
|
|
WRITE TAPE 1, A
|
|
N = -12
|
|
WRITE TAPE 1, N
|
|
WRITE TAPE 2, A(2)
|
|
REWIND 1
|
|
READ TAPE 1, X
|
|
READ TAPE 1, M
|
|
REWIND 1
|
|
READ TAPE 1, P, Q, R
|
|
REWIND 2
|
|
READ TAPE 2, S
|
|
PRINT 1, X, M, P, Q, R, S
|
|
1 FORMAT(1H ,F8.1,I5,4F8.1)
|
|
STOP
|
|
END
|