During
execution, when
the computer
encounters
the CHAIN
statement,
the next
section is called into
memory
and
executed.
In this
manner,
all of the sections are
eventually
run.
Note:
When
a program containinqa
CHAIN
command is loaded
from
a
tape by the
MERGE
command,
check to be
sure
that the
CHAIN
command
is
correct.
135
/
)
I
File name
File name
"PR0-2"
"PR0-3"
I
'
File
name
"PR0-3"
File
name
"PR0-2"
'
T
Fil
e
name
"PR0-2"
File
name
"PR0-3"
'
(" f"
indicates
the
position
of
the
tape
recorder
head.)
Magnetic
tape
990:
END
Execution
700: CHAIN
"PR0-3",
710
"PR0-3"
710:
f
~
Execution
1
700:
CHAIN
410:
L
400:
CHAIN
"PR0-2",
410
"PR0-2"
10:
20:
Execution
400:
CHAIN
"PR0-1"
For
example, let's assume you have
three
program sections named
PR0-1,
PR0-2,
PR0-3.
Each of
these
sections ends
with a
CHAIN statement.
Verbs
CHAIN