Introduction
============

This example shows how to access the hardware (I/O) ports of the Amstrad 
CPC through a C program.

This program is written for the SDCC suite (compiler, assembler, linker), 
and uses special language extensions provided by this compiler.

The program writes to the CRTC registers to set a Sinclair Spectrum sized 
display (256x192 pixels in CPC mode 1 resolution).

Also, this code demonstrates a program which doesn't need the standard 
library functions, so doesn't link against them.

Kevin Thacker, August 2004

Files
=====

makefile
--------

Builds the test program.

main.c
------

The code for the program written in the C language.

main.lnk
--------

Linker script for link-z80.


addhead
-------

Executable file to add an AMSDOS header to the program.

cpcxfs
------

Executable file to manage CPCEMU style disk images (for use with an 
Amstrad emulator)

crt0.s
------

A startup file for creating a CPC binary executable located at &100.

makebin
-------

Executable file to convert .ihx files to binary files.

amshw.h
-------

Header file defining the Amstrad's hardware I/O port addresses.
