Main
PRINTED
CP
U.S.A./A151/1279/5K
IN
ii
PREFACE
Page
PREF'ACE GLOSSARY CHAPTER 1 INTRODUCTION TO FORTRAN
CHAPTER
AND
CHAPTER
CONTENTS I
CHAPTER
4 PROGRAM EXECUTION CONTROLS
CHAPTERS FUNCTIONS
SUBROUTINES
ILLUSTRATIONS I
GLOSSARY
Argument(s) -A collection
Program -
Procedure -
Base -
Program Unit -
-
Unit -A logical
Subroutine -A
Subprogram -A tJlock
CHAPTER
INTRODUCTION TO FORTRAN
lines.
comment
1.1
lly
1.1.6 Program Termination
FORTRANSO
nonexecutable.
this
1.2 Summary Of
Statements
1.2.3 Order of Statements
CHAPTER 2 FORTRAN CONCEPTS
FEN:
elements
-
2.1
FORTRAN Program Structure
2.1.2 The PROG RAM Statement
2.1.3 Statements and Lines
Format.
2.1.3.2 Line
must
The
The.
'.
+
2.2.2 Constants and Variables
length
Type
real
2.2.2.1 Data Types. Arithmetic constants and variables are
.
or
,luteger
Or
leo'
are
..
-.
If
**
* +
Fig.
8/3
Operators.
2.2.4.3 Relational Expressions
Operator
Meaning
IF (NUMB .GT.
2.2.4.4 Logical Expressions. A logical expression
OP1
operator
-EXP2)
(EXP1
+
Page
+, -(unary
o
2.2.5 Scope of Symbols
2.3 Notational Conventions
Page
CHAPTER 3 DEFINING VARIABLES, ARRAYS,
AND
3.1
MEMORY
Type Statements
.
is
!l$$91l1eO,f$ee$ectiPfl.ll,2.(j).
is
..
3.1.4 CHARACTER Type
Statement
3.1.5 IMPLICIT
len
v
3.2 Array Definition
an array declarator (section 3.2.1). The symbol
3.2.1 DIMENSION Statement
ary
dummy
assumed-size
3.2.2 Kinds of Array Declarators
3.2.3 Properties of Arrays
types
3.2.4 Referencing Array Elements
J,
=
3.3 Assignment Statements
3.3.1
Arithmetic Assignment Statement
exp
'v'
=
3.3.2 Logical
Assignment
3.3.4 ASSIG N
v
Assignment
3.3.5
[r*]c[,[r*]c] ...
is
3.4 Memory Definition
3.4.1 EQUIVALENCE Statement
I A(1) I A(2) I A(3) I
I
nlist
3.4.2
3.4.2.1
3.4.3 BLOCK DATA
Common
Blank
and
3.4.2.2 Named
3.4.4 BLOCK DATA Statement
BLOCK DATA [name]
BLOCK DATA BLK1 LOGICAL
FLAGS(3) INTEGER ZEROS(10),RESULTS COMMON
/BLOCK1/ FLAGS,ZEROS,RESULT DATA FLAGS/.TRUE., .TRUE., .FALSE.! &ZEROS/1 0* 0/ END
CHAPTER 4 PROGRAM EXECUTION CONTROLS
4.1
exp
Statement
TO
4.1.3
exp
...
[,stl]
(stl
+
4.1.5 Logical I F Statement
exp
4.1.6 IF, ELSE IF, and ELSE Blocks
=:J
4.1.7 Block I F Statement
4.1.8
4.1.9 ELSE Statement
4.1.10 END IF Statement
4.2 Loop Control Statements
4.2.1 Operation of a DO Loop
var
4.2.2 DO Statement
N=O
4.3 Program Termination Statements
4.3.1
PAUSE Statement
END
an
be
CHAPTER 5 FUNCTIONS AND SUBROUTINES
Intrinsic,
5.1.1
5.1
Subroutine subprograms identified by their initial
5.1.2 I NTRI NSIC Statement
[,tunc]
+ 3B +
dum
June
5.1.3.1 Referencing Statement Functions
110.0,
3.81
'156.8.'
5.1.3.2 Statement Function Limitations
5.2 External Procedures
5.2.1
5.2.1.1
dum
June
5.2.2
PROGRAM CALL
..
RETURN
BROUTI N E
.~RETURN
CA.~END
RN
5.2.4 RETU
subO'
+ B +
5.2.5
5.2.6
5.2.7 CALL Statement
CALL
5.3 Arguments And Common Blocks Revisited
5.3.1 Common Blocks
5.3.2 Dummy And Actual Arguments
5.3.3 Association Of Arguments
5.3.3.1 Agreement
shq""n
EXTERNAL
an
and
Of
5.3.3.5
Argument Association Limitations
Y,
F(X,
FUNCTION F(A,B,C)
Page
CHAPTER
INPUT/OUTPUT
and
character
6.1.1
6.1.2.1 File Existence
6.1.2.2
And
6.1.2.4 External
6.1.2.3 File Position
6.1.3 U nit Properties
6.2 File-Handling Statements
6.2.1 OPEN Statement
Status
1/0
6.2.1.2
6.2.1.3
Error
Status
File
6.2.1.5
6.2.1.6
RECl
FllE='MYPROG',
Length
Record
6.2.1.9
Blank Specifier
6.2.1.11 Opening A Connected
Unit
stat
6.2.2
unit
stname
stl
6.2.2.1 Unit Specifier
6.2.3 BACKSPACE Statement
6.2.4 REWI N D Statement
REWIND 3 REWIND
1/0
(ctl-list)
f
READ
6.3 Data-Transfer
=
List
unformatted
aformatted
Information
Page
6.3.1.2
6.3.2
Input
List
6.3.1.3 Implied-DO List
Statement
6.4 Formatted And Unformatted Data Transfer
6.4.1 Unformatted Data Transfer
6.4.2 Formatted Data Transfer
to
edit descriptors
o
Format Control
nonrepeatable.
6.4.3
FORMAT
110
I, F,
Descriptors.
'Ff').
Integer Editing
PRINT 20, INTNUM 20 FORMAT
INTNM3 20 FORMAT (215,14)
Descriptor Editing
'exp'
99<
A /phanumeric Editing
...
Apostrophe
...
C),
termination
'H'
Descriptor Editing
'X'
Descriptor Editing
Slash Editing
.
....
~oll.~f
E10.5
...
6.4.4 ListDirected Formatting
Input
6.4.4.2
List-Directed Output
Page
CHAPTER 7 PROGRAMMING GUIDELINES
7.1
documentionfrom
good
7.1.1
7.1.3 Refining The Problem Definition
Level One
Level
Two
7.1.4 Final Coding
7.2 FORTRAN Coding
7.2.1 Functions And Subroutines
7.2.2 GO TO Statement
7.2.3 Crossing Unit Lines
7.2.4 Computing Variables And Constants
7.3 References
Structured Programming,
of the A CM, Vol. 15, No.
Microcomputers/Microprocessors: Hardware, Software,
Applications,
Page
APPENDIX A FORTRAN-80 STATEMENT SUMMARY
A.1
Statement Sequence
A.2 Statement Summary
ERR
[UNIT
ERR
'c'
stat
=]
unit IOSTAT
Page
=
Page
Page
Page
Page
Page
Page
Page
APPENDIX B I INTRINSIC FUNCTIONS
PAY
B.1
Intrinsic Function Summary
-
Intrinsic Functions FORTRAN-80
}<'ORM CATEGORY FUNCTION ARGUMENTS FUNCTION
B-2
>0;
0
B.2
On
<
Notes
Intrinsic Functions
Page
APPENDIX C HOLLERITH DATA TYPE
C.1
with the
is
less
C.3 Hollerith Format Specification
C.4 'A' Editing Of Hollerith Data
APPENDIX D EXTENSIONS TO ANSI FORTRAN
0.1 Standard Extensions To 1977 Subset
not
0.2
Nonstandard Extensions To 1977 FORTRAN
0.3
More Specific Semantics Than 1977 FORTRAN
0.4 Differences From 1966 FORTRAN
Page
Page
APPENDIX E I
ASCII CODES
-
I
\
Page
APPENDIX F
8080/8085 PROCESSOR
On
Processor Limitations
F.1
F
.2.1
column
be in
must
F .2.5 I nterpretation of DO Statements
$0077
compatible,
ANSI
allocation.
F.3 Unit Preconnection
device
INDEX I
primary
in italics in this index denote
shown
numbers
Page
Page
Page
Page
Page
inter
SOFTWARE
__
_
___
BUSINESS REPLY CARD
Addressee: Intel
Corporation
Literature Department 3065
Avenue Santa Clara,
REQUEST FOR READER'S COMMENTS
:'0
YOUR COMMENTS
95051
by
BUSINESS REPLY CARD
Addressee:
Intel Corporation Attn: Literature Department 3065 Bowers Avenue Santa Clara, California