Last Update: 2010/11/01 23:04 +0900
cgram variable in zsnes source has complete palette at the time. (source code browser by cvs repository).
NEWSYM cgram, times 512 db 0 ; CGRAM |
256 colors in a palette. | |
A color uses 2 bytes long |
Next code is to extract a color components from the palette to Win32 RGBQUAD/COLORREF form.
extern "C" BYTE cgram[]; |