LOAD
Advanced Programmer's Command
LOAD
[(parameter)]
filespec
Loads a machine-language program file (without executing it) and
then returns to TRSDOS Ready.
You can use LOAD to pre-load assembly language routines that
programs written
in
a language such as BASIC can call.
The parameter is:
X loads a file from a non-system disk.
The file must be
in
load module format. Do not use it to load BASIC
program files. The default file extension for the LOAD command is
/CMD.
Programs to be loaded must reside at or above the address X'3000'.
Examples
LOAD
STATUS/CMD
(ENTER)
loads the file STATUS/CMD into memory.
LOAD
(Xl
PROGRAM/CIM
(ENTER)
loads PROGRAM/CIM from a non-system disk. The system prompts
you to insert the disk with the desired file on it with the message:
Insert
SOURCE
disK
(ENTER)
After the file
is
loaded, you are prompted to put the system disk back
in Drive
0 with the message:
Ins
e r t SYSTEM
dis
K
(ENTER)
The load is now complete.
Sample Use
Often several program modules must be loaded into memory for use
by a master program. For example, suppose PAYROLUPT1 and
PAYROLUPT2 are modules, and MENU/CMD is the master program.
Then you could use the commands:
LOAD
PAYROLL/PTl
(ENTER)
LOAD
PAYROLL! PTZ
(ENTER)
to get modules into memory, and then type: MENU to load and
execute MENU.
1-92