Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 83

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Library Commands
LOAD
Load a Program File
LOAD file
file is a file specification for a file created by the DUMP cOlrnrrland.
This command loads into memory a machine-language program file. After
the file is loaded,
TRSDOS
returns to the
TRSDOS READY
mode.
You cannot use this command to load a
BASIC
program or any file created by
BASIC.
See the
BASIC
Reference Manual for instructions on loading
BASIC
programs.
Example
LOAD
Pl~
.. yPOL..L../ p'!: 1
Note: You may not load a program file if it would overlay
TRSDOS.
The code must
be loaded above
X'27FF'.
Sample Use
Often several program modules must be loaded into memory for use by a
master program. For example, suppose
PAYROLL/ptl
and
PAYROLL/pt2
are
modules, and
MENU
is the master program. Then you could use the
commands:
L..Oi:-.D PAYROL..L../p1:1
LOAD PAYliOLL/p'!:2
to get modules into memory, and then type:
MENU
to load and execute
MENU.
IfpAYROLL/ptl
and
PAYROLL/pt2
were Dumped with
RORT=R,
then you can
load by typing the file name without the
LOAD
command, i.e.,
p(.wr~OLL/
p'!: 1
PAYROU"/p'!:2
After each is loaded,
TRSDOS READY
returns.
119

Advertisement

loading