Download Print this page

Motorola EXORdisk II User Manual page 187

Advertisement

LOAD COMMAND
18.3 -- Examples
18.3 Examples
The following command line:
LOAD TESTPROG:li (FILE1,FILE2iS=lOOO)
~ill
load the program rrom the rile TESTPROG.LO from logical
unit one into memory.
The program must be origined
to
load
above
the
resident
MDOS
and
below
the end of contiguous
memory.
The MDOS command line
buffer
will
be
initialized
with the string
FILE1,FILE2iS=1000
to
allow
the program to be tested as if it had been invoked
from the command line directly.
After the program is loaded,
control is given to the debug monitor.
The
next
example illustrates how user-written programs
are executed from
diskett~
directly.
The
program
can
load
anywhere
in
memory
except
below hexadecimal location
$20.
The program cannot use any of the resident
MDOS
functions:
LOAD
BLAK~ACKiVG
The next example iilustrates how the
PROM •
Programmer
I
program
can
be
used for
m~king
PROMs of programs that load
above resident MDOS and the
area
re~uired
by
the
command
interpreter
and
LOAD command.
It is assumed that the program
in the file TPROM.LO loads above
$2300.
Since
the
contents
of
memory
are
not
destroyed
during
the
initialization
procedurel
MDOS
can
be
reinitialized
after
loading
the
program
TPROM
without
losing
the
content of those memory
locations.
Then,
the LOAD command is used again to load
and
execute
a version of the
P~om
Programmer I program (origined
to load at location
$20).
=LOAD TPROMiV
*E800iG
MDOS 03.00
=LOAD PPLOiVG
?
The command "E800;G" can be validly used since the program in
the file
TPROM.
LO was loaded with the "V" option.
If no Main
Options are
u~ed,
the
ABORT
or RESTART pushbuttons would have
to be depressed first.
Page
18-11

Advertisement

loading

This manual is also suitable for:

Exordisk iii