home *** CD-ROM | disk | FTP | other *** search
- COMPAT v1.00 J. Elliott, March 1993.
- ================================================================================
-
- This program is similar to Phil Wheeler's HEXPAT program. The difference is
- that instead of taking a .HEX file as input, it takes a simple ASCII difference
- file. This ASCII file is in the same format as those produced by the well-known
- PD program COMPARE.COM. COMPAT requires CP/M Plus and a Z80 processor.
-
- The syntax is:
-
- COMPAT comfile cmpfile {/C} {/Q}
-
- where:
-
- comfile: is the .COM file you are patching. At the end, it is the new version
- and comfile.BAK is the old version. If no filetype is supplied it is
- assumed to be COM.
- cmpfile: is the ASCII file you are using to control the patching. If no filetype
- is supplied it is assumed to be CMP.
- /C: A "check" option. See below.
- /Q: Quiet. If present, all progress reports are suppressed.
-
- The format of the ASCII file is a number of lines:
-
- ADDR EV NV {Comment}
-
- ADDR is the address (0100 based) of the byte to alter.
- EV is the expected value of the byte. If the /C option is present and the
- actual value of the byte differs from the expected value, all patching is
- abandoned.
- NV is the new value to set the byte to.
- Comment is printed in progress reports but otherwise ignored.
-
- If /Q is not present, a progress report is printed for every line:
-
- ADDR AV EV NV Comment - where ADDR EV NV and Comment are as above and AV is
- the actual value that was in the address before.
-
- Compatibility with COMPARE.COM:
-
- The files you are COMPAREing must be the same length. Use the command:
-
- COMPARE oldfile newfile cmpfile
-
- The comments produced will be the ASCII equivalent (if any) of EV and NV.
- ________________________________________________________________________________
-
- COMPAT may be distributed freely provided this documentation file is included.