Optiroc / SuperFamiconv

Flexible and composable tile graphics converter supporting Super Nintendo, Game Boy, Game Boy Color, Game Boy Advance, Mega Drive, PC Engine and WonderSwan formats.
MIT License
143 stars 20 forks source link

Megadrive binary outputs should be 16 bit big endian #42

Open est77 opened 1 year ago

est77 commented 1 year ago

The VDP only allows 16 bit writes and the m68k CPU is big endian. Currently, using SGDK for example, binary palettes and tiles from Superfamiconv are uploaded to the VDP with the bytes swapped.

Optiroc commented 3 months ago

@est77 Does this only apply to palette data, or maps/tiles as well?

est77 commented 3 months ago

If I remember correctly it happened with both colors and tile data. It should be easy to do a quick test converting known colors and tile data and see the endianess of the output.