Files
Eremey Valetov 2b0ad2344c Record 704 floating point, EQUIVALENCE, and the i704 examines.
The subset can now run the C28 common reorder and real arithmetic from
form 24-6661-2. Machine examines are saved. A FORTRAN listing still
needs a system tape, so the expected files stay this runtime's stdout.
A real exponent counts as an integer only when it is exact, and a READ
exponent that does not fit is not wrapped into a small power.
2026-11-10 15:51:31 -05:00

20 lines
368 B
FortranFixed

C 704 ARITHMETIC FROM FORM 24-6661-2. NOT AN I704 FORTRAN PRINTOUT.
COMMON X
X = 2.0
CALL ADD(X, 3.0)
Y = TWICE(X)
PRINT 1, X, Y
1 FORMAT(1H ,2F8.1)
STOP
END
SUBROUTINE ADD(A, B)
COMMON Q
Q = A + B
A = Q
RETURN
END
FUNCTION TWICE(Z)
TWICE = Z + Z
RETURN
END