Intel fortran-80 Laptop User Manual


 
6.2 File-Handling
Statements.
. . . . . . . . . . . . . .
..
6-4
6.2.1
OPEN
Statement.
. . . . . . . . . . . . . . . .
..
6-4
6.2.2
CLOSE
Statement.
...............
" 6-8
6.2.3
BACKSPACE
Statement. . . . . . . . . . .
..
6-9
6.2.4
REWIND
Statement
...............
6-10
6.2.S
ENDFILE
Statement.
. . . . . . . . . . . .
..
6-10
6.3
Data-Transfer
110
Statements
.............
6-10
6.3.1
READ
Statement.
.................
6-10
6.3.2
WRITEStatement
.................
6-13
6.3.3
PRINT
Statement
.................
6-14
6.4
Formatted
And
Unformatted
Data
Transfer..
6-14
6.4.1
Unformatted
Data
Transfer.
.........
6-14
6.4.2
Formatted
Data
Transfer.
..........
, 6-1S
6.4.3
FORMAT
Statement
...............
6-16
6.4.4 List-Directed
Formatting
...........
, 6-22
CHAPTER
7
PROGRAMMING
GUIDELINES
7.1
Program
Development
.................
"
7-1
7.1.1
Problem
Definition.
. . . . . . . . . . . . . .
..
7-1
7.1.2
Program
Documentation.
. . . . . . . . . .
..
7-1
7.1.3 Refining the
Problem
Definition.
. . . .
..
7-2
7.1.4 Final Coding
....................
"
7-3
7.2
FORTRAN
Coding.
. . . . . . . . . . . . . . . . . . .
..
7-4
7.2.1 Functions
and
Subroutines . . . . . . . . .
..
7-4
7.2.2
GO
TO
Statement
..................
7-4
7.2.3 Crossing
Unit Lines
...............
" 7-4
7.2.4
Computing
Variables
and
Constants.
.
..
7-4
7.2.S
Reminders........................
7-S
7.3
References....
. . . . . . . . . . . . . . . . . . . . . . .
..
7-S
APPENDIX
A
FORTRAN-80
STATEMENT
SUMMARY
A.I
Statement Sequence
....................
, A-I
A.2 Statement
Summary.
. . . . . . . . . . . . . . . . . .
..
A-I
APPENDIXB
INTRINSIC
FUNCTIONS
B.l
Intrinsic Function
Summary.
. . . . . . . . . . . .
..
B-1
B.2 Notes On Intrinsic
Functions.
. . . . . . . . . . .
..
B-3
1-1
Batting Average
Program
...............
1-1
1-2
Order
of
FORTRAN
Statements
.........
1-4
2-1
Program
Units
.......................
2-1
2-2 Type, Length,
and
Interpretation
of
(OPI +OP2)
......................
2-8
vi
APPENDIX
C
HOLLERITH
DATA
TYPE
C.l
Hollerith As A
Data
Type. . . . . . . . . . . . . . .
..
C-I
C.2
The Hollerith
Constant
..................
C-l
C.2.1 Hollerith
Constants
In
DATA
Statements
......................
"
C-l
C.2.2
Hollerith
Constants
In
CALL
Statements
........................
C-l
C.3 Hollerith
Format
Specification. . . . . . . . . . .
..
C-2.
C.4
'A'
Editing
Of
Hollerith
Data.
. . . . . . . . . . .
..
C-2
APPENDIX
D
EXTENSIONS
TO
ANSI
FORTRAN
D.l
Standard
Extensions
To
1977
Subset.
. . . . . . . . . . . . . . . . . . . . . . . . .
..
D-l
D.2
Nonstandard
Extensions
To
1977
FORTRAN
......................
" D-l
D.3 More Specific Semantics
Than
1977
FORTRAN.
. . . . . . . . . . . . . . . . . . . . .
..
0-2
D.4 Differences
From
1966
FORTRAN.
. . . . . . . . . . . . . . . . . . . . .
..
0-2
APPENDIX
E
ASCII
CODES
APPENDIX
F
8080/8085
PROCESSOR
DEPENDENCIES
F.l
Processor Limitations
On
Language
.......
" F-l
F.2
Compiler Extensions
...................
"
F-l
F .2.1 Lowercase Letters
................
" F-2
F .2.2
Port
Input/Output.
. . . . . . . . . . . . . .
..
F-2
F .2.3 Reentrant Procedures
.............
" F-2
F .2.4 Free-form Line
Format.
. . . . . . . . . . .
..
F-2
F.2.S
Interpretation
of
DO Statements
.....
" F-3
F .2.6 Default
Data
Lengths.
. . . . . . . . . . . .
..
F-3
F .2.7 Including Source Files
.............
" F-3
F .2.8
RECL
Specification
For
Sequential
Files. . . . . . . . . . . . . . . . . . . . . . . . . . . .
..
F-4
F.2.9 Flexibility In
Standard
Restrictions
...
" F-4
F.2.9.1 Association
of
Memory
Locations.
. . . . . . . . . . . . . . . . . . .
..
F-4
F.2.9.2 Partially Initialized Arrays
....
" F-4
F.2.9.3 Transfers
Into
An
IF Block
....
" F-4
F.3
Unit Preconnection
....................
" F-4
INDEX
ILLUSTRATIONS I
2-3 Type, Length,
and
Interpretation
of
(OPI **OP2)
....................
" 2-8
2-4
Length
of(OPI
.
OR.
OP2)
.............
2-11
3-1
Subscript
Value.
. . . . . . . . . . . . . . . . . . .
..
3-7
3-2
Result
of
'v
=
e'
......................
3-8