Skip to main content

PALETTE_LEN

Constant PALETTE_LEN 

Source
pub const PALETTE_LEN: usize = 0x20;
Expand description

Number of attributed palette-RAM entries.

Indices are post-mirroring (the $3F10/$14/$18/$1C aliases fold onto $3F00/$04/$08/$0C), so an attribution looked up through either address returns the same record — which is correct, because they are the same byte.