ADDHEAD 
(c) Kevin Thacker,1999-2005

A utility to help cross-development of software for the Amstrad CPC 8-bit
computer.

This utility has two functions:
- add a AMSDOS header to a file. (use -a option)
- remove a AMSDOS header from a file. (use -r option)

AMSDOS is the default disc operating system for the Amstrad which is active
after the computer has been switched-on. 

The 128-byte header defines the file-type, file load address, file length,
execution address and a checksum.

If a header is missing, AMSDOS will treat the file as text and 
the file can't be loaded using the CAS IN DIRECT function, and it is not possible
to load the file using BASIC's LOAD function without a error being returned.

If the header is present, CAS IN DIRECT and BASIC's LOAD function can be used.

If you are using a emulator for development then you can inject the file
into a disk image using a utility like CPCfs, CPCXfs or libdsk. 

If you are using a real computer then you can copy the file to the Amstrad
using a utility like 22disk, or transfer the data via the parallel cable.

Included in the archive are the source files, a makefile for Linux/Unix systems,
and a windows command-line executable.

When adding a header the following two options can be used to define 
parameters in the header:

-t <type>

set the type of the file defined by the header. <type> is "binary" or 
"basic".

-x <address>

set the execution address of the file (to be used for binary files to make 
them auto run when executed with: RUN"<filename>" from CPC's BASIC.

-s <address>

set the start address of the file (to be used for binary files)
