Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
ppu [2021/09/05 17:02] – [Sprite registers] simer | ppu [2021/09/05 17:03] – [Colors and palettes] simer | ||
---|---|---|---|
Line 140: | Line 140: | ||
In the 16-bit color mode, the value of each pixel in the segment memory directly stores a color, otherwise the value refers to a palette index. | In the 16-bit color mode, the value of each pixel in the segment memory directly stores a color, otherwise the value refers to a palette index. | ||
The palette memory is mapped to 0x2B00-0x2BFF and stores 256 different colors in the format mentioned above. | The palette memory is mapped to 0x2B00-0x2BFF and stores 256 different colors in the format mentioned above. | ||
- | This memory can be split into multiple | + | This memory can be split into multiple |
The chosen color from the palette memory is determined by the chosen color depth and palette of each tile/sprite and value of each pixel as follows: | The chosen color from the palette memory is determined by the chosen color depth and palette of each tile/sprite and value of each pixel as follows: | ||
- | ^ Color depth ^ Chosen color ^ | + | ^ Color depth ^ Chosen color memory index ^ |
| 2-bit | Palette * 16 + Index | | | 2-bit | Palette * 16 + Index | | ||
| 4-bit | Palette * 16 + Index | | | 4-bit | Palette * 16 + Index | |