IBM 1620 1 Manual page 95

Table of Contents

Advertisement

Load Routine Analysis
The first instruction, 36 19901 00500, reads the data
from each card into the load area (19901-19980 in
this case). A record mark is placed in 19980.
The second instruction, 25 00080 19910, transfers
the digit that the record mark in 19980 will replace
during the third instruction to 00080. Note the in-
direct
Q
address (19910) - the field at 19910 was
loaded by columns 6-10 of the card. For example, if
the data in 19901-19980 is to be transferred to 10000-
10079 by the third instruction, the digit at 10079 is
transferred to 00080 by the second instruction. The
fourth instruction returns the saved digit to 10079.
The third instruction, 31 19905 19920, transmits the
five instructions and the record mark from 19920-
19980 to the address specified by the data at 19905
(19905 is an indirect address) . This address was
punched in columns 1-5 of the card.
The fourth instruction, 25 19910 00080, transfers
the saved digit back to its original position, and wipes
out the record mark.
The fifth instruction, 49 19915, branches the com-
puter back to 00000, and the next ca.rd is read. The P
address is indirect (19915) - the field at 19915 was
loaded by card columns 11-15. These columns are
blank for all but the last card. Blank card columns
are read into core storage as zeros.
Program Card Examples
1-5
00600
00660
00100
00340
6-10
00660
00720
00160
00401
11-15
Blank
Blank
Blank
Blank
16-19
20-79
..§Q.
1
Five instructions
=1=
2
Five instructions
=1=
3
Data for locations 100-159
=1=
4
Data for locations 340-399
=F
Cards 1 and 2 are standard 5-per-card load cards.
Card 3 loads 60 digits of the Multiply table. Card 4
loads the last 60 digits of the Addition table and also
loads a record mark to 00400.
Loading Record Marks
1-5
6-10
11-15
16-19
20-79
.§Q..
00800 00860 Blank
5
Five instructions
=1=
00811 00812 Blank
6
=1=
followed by blanks
Blank
Cards 5 and 6 show a method of loading a record
mark between instructions. If a record mark is to be
loaded to location 00811, the record mark in column
31 of card 5 must be omitted because it would termi-
nate the third load instruction too soon. The record
mark is loaded by Card 6. The instructions from Card
5 are loaded into 00800-00859.
Patch Cards
1-5
6-10
11-15
16-19
20-31
32
33-80
00600 00612
- 7 - A single
=1=
Blank
Blank
instruction
00700 00712 Blank
8
Instruction with
Blank Blank
=1=
in Q
l l
Cards 7 and 8 load single instructions. If there were
patches to the program in cards 1 and 2, they would
have to follow cards 1 and 2 in the program deck,
though not necessarily directly behind cards 1 and 2.
Last Program Load Card
1-5
6-10
11-15
16-19
20-79
80
19000 19060 00500
9
Five instructions
=1=
In this example, the loader stores the instructions
in card 9 to locations 19000-19059 and then branches
to 00500 to start the program. A card like this is the
last card of the program deck. It should follow all
patch cards.
Program Initialization
To load and execute an initialization program (defin-
ing fields, establishing constants, etc.) before loading
the rest of the program, punch the starting address of
the initialization program in columns 11-15 of its last
program load card. Do not alter the loader (locations
00000-00060) while initializing. After initialization,
branch to 00000 and loading will resume. This allows
the initialization program deck and the main program
deck to be loaded as a single deck hy a common pro-
gram loader.
Alternative Read-in Area
To use locations 00081-00160 as a program read-in
area, the program in the loader should be changed to:
36 00081 00500 25 00060 00090 31 00085
00100 25 00090 00060 49 00095
In the last program load card, columns 20-79 must
contain the multiply table digits for locations 00100-
00159, followed by a record mark, and columns 1-15
must contain 00100 00160 xxxxx, where xxxxx is the
address at which the program is to start.
91

Advertisement

Table of Contents
loading

Table of Contents