Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 66

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

Advertisement

Modell! TRSDOS
DUMP
Store a Program Into a Disk File
DUMP
file
{START
=
addfess-1 , END
=
address-2,
TRA
=
address~3
>
RElO
=
address-4, R;ORT
=
Jetter}
.: .
...
.
' . ' .
.:'
file is a file specification.. ' . •.
.
,,.
START =address-1 specifies the start address of the memory block. '
END=address-2 specifies the end address bfthe memory block.
TRA=address-3 specifies the transfer addr~ss, where execution starts
when the program is loaded. If
omitted,address-4
is used.
.',.
RELO=address-4 specifies the start address for loading the programba~~
into memory. If omitted, address-1 is used.
' "
RORT =/etter specifies whether the program is directly executable from
TRSDOS. RORT stands for "RETURN OR TRANSFER". If RORT=R, then TRSOOS
can load but notexecute the file. If RORT=T, then TRSDOS can load and
execute the fife from theTRSDOS READY mode. IfROR1is omitted, RORT=)
is used.
Note: Addresses must be hexadecimal form, without the
X'
,
notation.
This command copies a machine-language program from memory into a
program file. You can then load and execute the program at any time by
entering the file name in the
TRSDOS READY
mode.
You can enter machine language programs directly into memory, via the
DEBUG
command.
Examples
DUMP LISTER/CMD
START=7000, END=7100, TRA=7004
Creates a program file named
LISTERjCMD
containing the program in
memory locations
X'7000'
to
X'7100'.
When loaded,
LISTERjCMD
will occupy
the same addresses. The program is executable for the
TRSDOS READY
level.
DUMP PROG2/CMD START=6000, END=6F00, TRA=3010, RELO=3000
Creates a program file named
PROG2jCMD
containing the program in
addresses
X'6000'
to
X'6FOO'.
When loaded,
PROG2jCMD
will reside from
X'3000'
to
X'3FOO'.
Execution will start at
X'301O'.
The program is executable from
TRSDOS READY.
DUMP ROUTINE/1 START=6F00, END=6FFF, RORT=R
Creates a program file which cannot be executed from the
TRSDOS READY
level. Typically, this would be a routine to be called by another program.
102
~.
\

Advertisement

loading