Introduction
A Mode 5 picture of the Amstrad CPC is a pair of files with the same name, a
.cm5 file with the inks and a .gfx file with the pixels. The
picture is 288×256 pixels and draws on the machine’s 27 colours.
Structure
The .cm5 file is 2,049 bytes: one ink for the whole picture, followed by
eight bytes for each of the 256 lines. Those eight bytes give one ink for each of two
further layers and six inks, one for every 48 pixels across, for a fourth layer.
The .gfx file is 18,432 bytes of pixel data. Each pixel selects which of
the four inks in force at that position is shown.
Not described
Known, not yet covered
- Reference: the bit order within the pixel bytes is not yet described.
- Viewer: the site has no viewer for Mode 5 pictures.
Links
Software
Reference
- cpcformats.c – the Amstrad CPC picture loaders in the GrafX2 source