Enhanced ULA Ink Color Mask

From SpecNext official Wiki
Revision as of 12:41, 20 April 2019 by Mikecad (talk | contribs) (Mikecad moved page ULANext Ink Color Mask to Enhanced ULA Ink Color Mask without leaving a redirect: ULANext deprecated)
Jump to: navigation, search
Number $42
Readable Yes
Writable Yes
Short Description Specifies mask to extract ink colour from attribute cell value in ULANext mode.

Bits 7-0 = Number of the last ink colour entry in palette (15 after a Reset).

This number can be 1, 3, 7, 15, 31, 63, 127 or 255. The HW behaviour for other values is unpredictable.

This value is used only when ULANext mode is enabled.

The 255 value enables the full ink colour mode and all the palette entries are inks. The paper and border colour is then taken from Transparency colour fallback Register ($4A).

If the ink mask is not 255, then the zeroed part of mask signals which bits will be used to extract index of paper colour. Then this index is added to 128 and read from current palette (border index is also 128 + 0..7 value from port $FE). There are no "flash" or "bright" bits when ULANext mode is enabled, all eight attribute bits contribute either to ink or paper colour index.

Applies only to Enhanced ULA palette. Layer 2, Sprite and Tilemap palettes work as "full ink" or specifically to 4-bit graphics data.