Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 63

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

TRS-80
MODEL
III
DISK
SYSTEM
This
command
lets
you
make
minor
corrections
in
any
disk
file,
provided
that:
1
.
You
know
the existing
contents
and
location
of
the
data
you want
to
change.
2.
You
want
to
replace
one
string
of
code
or data
with another
string
of
the
same
length.
You
can
use
patch
to
make
minor changes
to
your
own
machine-language
programs;
you won't have
to
change
the
source code, re-assemble
it,
and
re-
create the
file.
Another
application
for
patch
is
to
allow
you
to
implement any
modifications
to
trsdos
that
may
be
supplied
by Radio
Shack. That way,
you do
not
have
to
wait
for a
later
release
of
the
operating system.
Sample Use
Suppose you want
to
change
seven
bytes
in
a
machine-language program
file.
First
determine
where
the
seven-byte sequence
resides
in
ram
when
the
program
is
loaded.
Then make
sure
your replacement
string
is
the
same
length
as that
of
the original
string.
For example, you might
write
down
the
information
as
follows:
File to
be changed:
vread
Start
address:
x'528(r
Sequence
of
code
to
be changed: x
,
CD2D25E.v
Replacement
code:
x* 00000009*
Then you
could use
the
following
command:
PATCH VREAD
(
ADD=528B >FIND=BCD2D25E5 >CHG=00000009)
PAUSE
Pause Execution
for
Operator
Action
pause
message
message
is
the
message
to
be
displayed during
the
pause
execution.
Ihis
is
optional.
If
omitted,
pause
will
be
displayed by
itself.
56

Advertisement

loading