ARTICLES
24 / 74 |
Display pixel data format
The CPC, CPC+ and KC Compact have 3 official bitmapped graphics modes:
The CPC and CPC+ have one unofficial bitmapped graphics mode:
The display mode is defined using the Gate-Array. If the mode is changed, the result will only be seen at the next HSYNC.
The standard resolutions are:
But, the width and height of the display area can be redefined using the 6845 CRTC, so it is possible to define other resolutions.
Pixel properties:
Properties of this mode:
Order of pixel display:
pixel 0 | pixel 1 |
Bit mappings for Pixel 0:
Bit in display byte | |
---|---|
bit 3 | 1 |
bit 2 | 5 |
bit 1 | 3 |
bit 0 | 7 |
Bit mappings for Pixel 1:
Bit in display byte | |
---|---|
bit 3 | 0 |
bit 2 | 4 |
bit 1 | 2 |
bit 0 | 6 |
e.g. if pixel 0 is 13 and pixel 1 is 6, this is encoded as:
pixel 0: 1101 becomes 0-1-0-0-
pixel 1: 0110 becomes -0-1-1-0
and together becomes: 00110100
Properties of this mode:
Order of pixel display:
pixel 0 | pixel 1 | pixel 2 | pixel 3 |
Bit mappings for Pixel 0:
Bit in display byte | |
---|---|
bit 1 | 3 |
bit 0 | 7 |
Bit mappings for Pixel 1:
Bit in display byte | |
---|---|
bit 1 | 2 |
bit 0 | 6 |
Bit mappings for Pixel 2:
Bit in display byte | |
---|---|
bit 1 | 1 |
bit 0 | 5 |
Bit mappings for Pixel 3:
Bit in display byte | |
---|---|
bit 1 | 0 |
bit 0 | 4 |
Properties of this mode:
Order of pixel display:
pixel 0 | pixel 1 | pixel 2 | pixel 3 | pixel 4 | pixel 5 | pixel 6 | pixel 7 |
Bit mappings for Pixel 0:
Bit in display byte | |
---|---|
bit 0 | 7 |
Bit mappings for Pixel 1:
Bit in display byte | |
---|---|
bit 0 | 6 |
Bit mappings for Pixel 2:
Bit in display byte | |
---|---|
bit 0 | 5 |
Bit mappings for Pixel 3:
Bit in display byte | |
---|---|
bit 0 | 4 |
Bit mappings for Pixel 4:
Bit in display byte | |
---|---|
bit 0 | 3 |
Bit mappings for Pixel 5:
Bit in display byte | |
---|---|
bit 0 | 2 |
Bit mappings for Pixel 6:
Bit in display byte | |
---|---|
bit 0 | 1 |
Bit mappings for Pixel 7:
Bit in display byte | |
---|---|
bit 0 | 0 |
This mode is not official and exists on the CPC and CPC+ only and does not exist on the KC Compact.
Properties of this mode:
Order of pixel display:
pixel 0 | pixel 1 |
Bit mappings for Pixel 0:
Bit in display byte | |
---|---|
bit 1 | 3 |
bit 0 | 7 |
Bit mappings for Pixel 1:
Bit in display byte | |
---|---|
bit 1 | 2 |
bit 0 | 6 |
Article créé le : | Lundi 16 Novembre 2009 à 13 h 20 |
Dernière mise à jour le : | Mardi 28 Février 2012 à 21 h 32 |