IBM 1130 User Manual page 505

Computing system
Hide thumbs Also See for 1130:
Table of Contents

Advertisement

Section 70: 1130 FORTRAN AND THE COMMER-
CIAL SUBROUTINES
CONTENTS
Introduction ......•.....•...••..•.•..
7 0.01.00
Arithmetic Considerations .••.••......
70.10.00
General ......•......•...•••..••.••. 7
O.
10. 01
Integer Mode
0......................
70.10.10
Real Mode •.•....••••...•....••..••
70.10.20
General
Real -- Floating Point
Real -- Fixed Point
Rounding
Accuracy and Magnitude
Output of Large Real Numbers
Multiplication of Large Real Numbers
Decimal Mode •......•....••.....•..
70.10.30
Introduction
General Principles
The Decimal Arithmetic Subroutines
Addition
Subtraction
Multiplication
Division
Constants
Te sting and Modifying Signs
Moving Signs
Comparing Decimal Fields
Summary •.•...•..•.....•.••.......
Overlapped Input/Output ..•..•.•......
Introduction •.•........•••....•.....
The Commercial Subroutine Package
Over lapped I/O Subroutine s ..•.....••
General
Head a Card, 1442-6 or 7
Punch a Card, 1442-6 or 7
Select Stacker, 1442-6 or 7
Print on 1132
Skip on 1132
Type on Console Printer
Accept Data from Console Keyboard
A precaution -- IOND
Using the Overlapped I/O System
General
Orerlapping and Your Program
FOR TRAN TRACE Not Permitted
Alphabetic Headings
The Interaction of Arithmetic and I/O ...
Character Handling Techniques ••...••.
General .•.••...•..••...••..•.••...•
70.10.40
70.20.00
70.20.01
70.20.10
70.20.20
70.30.00
70.40.00
70.40.01
Section
Subsections
Page
70
00
I
00
01
Code Conversion. . . ... .. ... . . . .. .. . .
70.40.10
Integer to Real -- FLOAT
Real to Integer -- IFIX
Al to Real -'- GET
Al to Integer
Real to Al -- PUT
Integer to Al
Al to Decimal -- AIDEC
Deci~al
to Al -- DECAl
Al to A2 -- PACK
A2 to Al -- -UNPAC
Other Code Conversions
Other Character Handling Techniques. .
70.40.20
Editing Output -- EDIT
Moving Data Fields -- MOVE
Filling a Field with a Specific
Character -- FILL
Comparing Alpha Fields -- NCOMP
Match/No Match Alpha Compare
High/Low/Equal Alpha Compare
Working with Zone Punches -- NZONE
The NZ ONE Subroutine
FOR TRAN Core Saving Tips ........ .
General ............. ' ............. .
Reducing Program Size ........... .
Use the DATA Statement
Keep FORMAT Statements Compact
Code Efficient
1/
0
Statements
Avoid Long Subroutine Argument
Lists
Avoid Arithmetic with Variables
Having Constant Subscripts
Reducing Subroutine Requirements ...
Raising a Real Number to a Whole
Power
SQRT vs **.5
Don't Include Unneeded I/O Devices
on *IOCS Card
Remove FIND Statements If You
Have SOCAL's or LOCAL's
Remove the TRACE from Production
Status Programs
FORTRAN Execution Time s ......... .
Processing ....................... .
Summary and Conclusion .•...••.•..
70.50.00
70.50.01
70.50.10
70.50.20
70.60.00
70.60.10
70.60.20

Advertisement

Table of Contents
loading

Table of Contents