Color RAM

From C64-Wiki
Jump to navigationJump to search
Stub This article is very short and not very detailed. Please help to improve it.
The chip of the color RAM (MM2114N-3 4Kb Static RAM) on a C64 motherboard.

The color RAM or color memory of the C64 starts in the memory address 55296 ($D800) and ends in 56295 ($DBE7).

For each character in every row (40 chars per row; 0-39) and column (25 columns; 0-24) one of 16 colors (see color table) can be assigned. The color values ​​0-15 are only used in the lower nibbles. The upper nibbles are undefined and are purely random values​​.

The BASIC command POKE is used for coloring, for example: POKE 55296,1 sets the 8x8 pixel block in the upper left corner to white.

Addresses[edit | edit source]

Hex Address Dec Address Type Purpose
$D800-$DBE7 55296-56295 1/2 kB (1000 nibbles) of color memory.
$DBE8-$DBFF 56296-56319 Unused

See also[edit | edit source]