ekeeke / Genesis-Plus-GX

An enhanced port of Genesis Plus - accurate & portable Sega 8/16 bit emulator
Other
673 stars 193 forks source link

Interpreting CRAM palette values #506

Closed dread-pirate-johnny-spaceboots closed 1 year ago

dread-pirate-johnny-spaceboots commented 1 year ago

I'm trying to parse the BBBGGGRRR bits from a dump of CRAM, but I'm having trouble reconciling the byte values I'm seeing with the colors being rendered.

I had assumed its 2 bytes per palette entry following the format laid out here: https://segaretro.org/Sega_Mega_Drive/Palettes_and_CRAM, but that doesn't seem to get me to the correct color values.

For example in this CRAM and palette dump-- I can't figure any way of getting from 0x00 0x19 to the second color in the first palette

psiv-cram.ram.txt palette

ekeeke commented 1 year ago

Sorry but I don't understand how this is related to this emulator ? You should probably rather seek support in MD programming forums/communities as this is not really the place for this.