Tandy 1000 MS-DOS Reference Manual page 151

Hide thumbs Also See for 1000 MS-DOS:
Table of Contents

Advertisement

:-
L_~
PATCH
Chapter 6 / Command Reference
External
........,
L
~
I
I
I
I
I :
"
~
~
i
'
!
~-
........,
i
:-
I
PATCH pathname,address,datal,data2
Lets you make minor corrections in any disk file, provided that:
You know the location of the bytes you want to change.
You want to replace one list of hexadecimal values
with another list of the same length.
Parameters
pathname is the file you want to change.
address is the starting address of the data to be changed (in
hexadecimal) .
datal is the list of the hexadecimal values to be changed.
data2 is a list of the hexadecimal data values to replace datal.
Notes and Suggestions
In addition to using PATCH to change your own programs,
you can use it to implement minor program changes from
Tandy. If a Tandy program ever requires such a change,
Tandy will distribute a document that specifies the param-
eters you need for the patch.
If datal is not at address, PATCH generates an error mes-
sage and quits.
Example
patch
b:filex.exe,1A23,4462A3,436~B2
IENTERJ
patches the file FILEX.EXE, located on Drive B. The command
changes bytes lA23 through lA25 to the hexadecimal values 43,
60, and B2 (assuming that they are originally 44, 62, and A3).
137

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents