We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
CGRAM: Difference between revisions
From SnesLab
(512 bytes) |
(RGB bitfields) |
||
Line 1: | Line 1: | ||
'''CGRAM''' (Color Generator<sup>[2]</sup> RAM) is where palettes are stored. The SNES uses 15-bit color here. It is a total of 512 bytes. | '''CGRAM''' (Color Generator<sup>[2]</sup> RAM) is where palettes are stored. The SNES uses 15-bit color here. It is a total of 512 bytes. For each of the 256 color entries: | ||
* bits 0 to 4 are the red intensity | |||
* bits 5 to 9 are the green intensity | |||
* bits 10 to 14 are the blue intensity | |||
In all background modes, sprites use the second half of CGRAM. | In all background modes, sprites use the second half of CGRAM. |
Revision as of 01:32, 17 December 2023
CGRAM (Color Generator[2] RAM) is where palettes are stored. The SNES uses 15-bit color here. It is a total of 512 bytes. For each of the 256 color entries:
- bits 0 to 4 are the red intensity
- bits 5 to 9 are the green intensity
- bits 10 to 14 are the blue intensity
In all background modes, sprites use the second half of CGRAM.
See Also
References
- Appendix 17 of the official Super Nintendo development manual on CG-RAM
- https://problemkaputt.de/fullsnes.htm#snesmemorycgramaccesspalettememory