This is an old revision of the document!
FORTRAN-20 is a FORTRAN compiler for TOPS-20. It supports the FORTRAN-77 standard (ANSI X3.9-1978 American National Standard Programming Language FORTRAN) with extensions and additions.
The purpose of this tutorial is to document the peculiarities of using FORTRAN-20 on TOPS-20 as opposed to other FORTRAN implementations on other operating systems; to highlight useful FORTRAN-20 extensions and additions that are not found in standard FORTRAN-77; and to briefly introduce the FORTRAN-77 programming language for those unfamiliar with it.
The order of presentation moves from more to less specialized and technical which runs counter to traditional organization, but the author feels this order is more convenient for the primary audience of programmers already familiar with FORTRAN but unfamiliar with the TOPS-20 operating system environment.
Unit | Device | Usage | Default filename |
---|---|---|---|
0 | DSK | Disk | FOR00.DAT |
1 | DSK | Disk | FOR01.DAT |
2 | CDR | Card reader | FOR02.DAT |
3 | LPT | Line printer | FOR03.DAT |
4 | CTY | Console teletype | FOR04.DAT |
5 | TTY | User teletype | FOR05.DAT |
6 | PTR | Paper tape reader | FOR06.DAT |
7 | PTP | Paper tape punch | FOR07.DAT |
8 | DIS | Display | FOR08.DAT |
9 | DTA1 | DECtape | FOR09.DAT |
10-15 | DTA2-7 | “ | FOR10 - 15.DAT |
16-18 | MTA0-2 | Magnetic tape | FOR16 - 18.DAT |
19 | FORTR | Assignable device | FOR19.DAT |
20-24 | DSK | Disk | FOR20 - 24.DAT |
25-29 | DEV1-5 | Assignable devices | FOR25 - 29.DAT |
30-99 | DSK | Disk | FOR30 - 99.DAT |
This section gives an brief overview of the FORTRAN-77 programming language for programmers with at least some experience with one or more other programming languages. It is not intended to be a comprehensive description or tutorial. Readers desiring a more complete introduction to FORTRAN are recommended to read the Fortran 77 Tutorial linked in the References section below.
A sample program for the FORTRAN-20 compiler.
program hello write(5,*) ' Hello, World!' stop end
(Text on each line is preceded by six spaces.)