Processor
Subroutines
62
A 4-character record in
the
processor specifies
the
number
of functional sub-
routines
included
in
the
subroutine deck or
tape
to which direct reference
may
be
made
in
a source program.
There
are
six
such
subroutines
included
in
the
standard
system,
and
the
record bb06,
where
b is a blank,
is
punched
in
the
processor. This
record
appears
in
card
number
02001 in
the
processor
deck
and
is the fifty-sixth record in
the
processor tape.
If
additional subroutines
are
added,
or
if
some of
the
available subroutines
are
not
used, this record
must
be
changed
to
the
actual
number
of
type
2
and
type
3 subroutines included in
the
program.
Immediately following
the
4-digit record specifying
the
number
of
included
functional subroutines,
are
cards in
the
processor deck
or
records in
the
processor
tape
giving
the
symbolic names of
the
associated functions.
Each
symbolic
name
must
be
preceded
by
two blanks.
In
the
card
system, a 5-digit sequence
number
must
appear
in
columns 76
through
80, starting
with
02002.
The
names of
the
subroutines in
the
standard
system
and
the
order
in
which
they
appear
are
as
follows:
Subroutine
Name
SIN}
COS
ATAN
EXP
LOG
SQRT
Subroutine
Number
45}
(treated
as one subroutine)
6
7
8
9
This is an
ordered
list,
and
the
sequence
in
which
the
function names
are
read
by
the
compiler
must
not
be
changed.
Each
subroutine, starting
with
SIN
is assigned a serial
number
NN,
dependent
upon
its position
in
the
list, to
which
the subroutine relocator program refers.
The
serial
number
of
the
SQRT
routine,
for example, is
09.
The
addition of
the
hyperbolic sine routine
mentioned
above
would
require
the
addition
of a
card
numbered
02008 containing
the
name
SNH
punched
in
card
columns 3
through
5.
The
serial
number
automatically assigned
to this function would
be
10. Subroutine
numbers
1
through
3 cannot
be
used.
The
subroutine relocator routine contained
in
the
subroutine deck
or
tape
will
relocate
and
reproduce
into
the
object program, or store
in
core storage,
any
re-
locatable subroutines called for
by
the
source program.
The
first relocatable
subroutine will
start
in
the
next even address
beyond
the
object program.
The
relocator requires
the
relocatable subroutines to
be
in
the
same
order
in
the
subroutine
deck
or
tape
as
their
corresponding symbolic names
appear
in
the
processor.
In
addition,
there
must
be
a relocatable subroutine
in
the
sub-
routine deck
or
tape
for
each
symbolic
name
used
in
the
processor.
All relocatable subroutines
have
been
written
in
1620 SPS language.
In
the
card
system,
the
assembled object programs
have
been
condensed
by
the
SPS
condensing routine;
the
first two
and
last seven cards of
the
condensed
output
have
then
been
discarded.
In
the
tape
system,
the
2-record loading
routine
at
the
beginning
and
the
single record containing
the
multiplication
and
addition
tables
at
the
end
of
the
SPS
output
are
removed. A
Hag
is inserted
in
the
low-
order
position
~
the
10-digit loader
record
that
precedes instructions only
(XXXXX XXXXX).
The
header
and
trailer records
are
added,
and
in
the
card
system
proper
sequence
numbers
are
punched
in
colums 76
through
80.
For
the
paper
tape
system,
an
SPS modification
tape
is
included
which
will
modify
the
standard
1620
SPS
paper
tape
system (1620-sp-008) so
that
the
header
and
trailer records will automatically
appear
in
the
SPS
output
tape.
To
use this