VRAM

The VRAM starts at memory address 0x0600:0000h and ends on 0x0601:7FFFh

The VRAM is 96KB in size.


Project Setup


Palette

The 1KB palette is split into two halves each 512 bytes. Since each color requires 2 bytes that means you can store 256 colors in each palette. Typically, for sprites, it's useful to split that palette into 16 subpalettes of 16 colors each.

The first half starting at memory address 0x0500:0000h and going to 0x0500:01FFh is used to store the backgrond colors.

The second half starting at memory address 0x0500:0200h and going to 0x0500:03FFh is used to store the sprite colors.

BG and Sprite Palette: 0x0500:0000h - 0x0500:03FFh
02468ACE10121416181A1C1E
0
20
40
60
80
A0
C0
E0
100
120
140
160
180
1A0
1C0
1E0
200
220
240
260
280
2A0
2C0
2E0
300
320
340
360
380
3A0
3C0
3E0