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.
15 lines
288 B
FortranFixed
15 lines
288 B
FortranFixed
C A FIXED WORD READ AS A REAL KEEPS ITS BITS.
|
|
N = 12
|
|
WRITE TAPE 1, N
|
|
REWIND 1
|
|
READ TAPE 1, A
|
|
WRITE TAPE 2, A
|
|
REWIND 2
|
|
READ TAPE 2, M
|
|
IF ACCUMULATOR OVERFLOW 10, 20
|
|
10 M = -1
|
|
20 PRINT 3, M
|
|
3 FORMAT(1H ,I5)
|
|
STOP
|
|
END
|