HEXPAT                                              John Elliott, 29 April 2004
===============================================================================

  HEXPAT applies a patch file (in Intel Hex format) to a binary file, creating
a new output file.

  Syntax:

hexpat { options } inputfile { outputfile { hexfile }} 

  Options are:

* -com: The file being patched is in CP/M COM format.
* -sna: The file being patched is in Spectrum .SNA format.
* -tap: The file being patched is contained in a Spectrum .TAP file.
* -bXXX: The file being patched loads at hex address XXX.

  For example, the following command:

hexpat -b4000 input.rom output.rom patch.hex

  will generate output.rom, as the contents of patch.hex overlaid onto 
  input.rom. 

hexpat -b4000 input.rom output.rom 

  will do the same thing, but reading its patch from standard input rather
  than patch.hex.

hexpat -b4000 input.rom 

  will read the patch from standard input and write the result to standard
  output.

hexpat -tap -b4000 input.tap output.tap patch.hex

  behaves like the first example, but the input and output files are assumed
to be Spectrum-format .TAP files containing at least one CODE block.

Legal bits
==========

  This program is distributed under GPL; see COPYING.
