Radio Shack TRS-80 Trsdos & Disk Basic Reference Manual page 115

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

DISK BASIC
Examples:
L0AD"PR0G1/BAS:2"
Clears resident
BASIC
program and
loads
PROG1/BAS
from
drive 2;
returns to
BASIC command
mode.
1
REM
.
.
.
INSTRUCTIONS
Example
of chaining
two
programs
the
first
may
be
used
to
give
instructions
and then
to load the
"working"
part
of
the
program
1000
LOAD"PROG2/BAS",R
(PROG2/BAS).
Note
that
line
1000
is
equivalent
to:
1000
RUN"PROG2/BAS"
MERGE
(merge
disk
program
with
resident
program)
MERGE
exp$
where exp$
defines
a filespec for
an
ASCII-format
BASIC
disk
file,
e.g.,
a
program
saved
with
the
A-option.
MERGE
is
similar to
LOAD
except
that the resident
program
is
not
wiped
out before
the
new
program exp$
is
loaded.
Instead,
exp$
is
merged
into
the
resident
program.
That
is,
program
lines in
exp$
will
simply
be
inserted into
the
resident
program
in
sequential order.
If
line
numbers
in
exp$
coincide
with
line
numbers
in
the resident
program,
the
resident
lines
will
be
replaced
by
those
from
exp$.
PROGRAM
IN
DISK
PROGRAM
IN
RAM
MERGED PROGRAM
IN
RAM
PROGRAM
LINE
NUMBERS
10
20
30
40
50
60
70
90
m
20
30
40
50
60
70
mn
too
1*0
120
7-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents