System card bios bug

I’m working on the title screen and options menu for the Megaman CD release. I came across a bug in the load graphic data for the IPL configuration – thingy. The Hu7 doc mentions that 1 record is used for PAL data and 1 record is used for BAT data, with the rest of the records used for actual vram data. But there’s a bug in the PAL record handling. It reads the record and writes all 256 color entries to the BG,  but when it writes to the SPR area – it only increments the pointer by 0x100 bytes; not the required 0x200 bytes. While you can still use this to have it load BG and SPR PAL data, it will only load 128 colors for each if you treat it as such. I.e. 256 colors gets transferred to BG PAL ram, but the last 128 colors of that 256 color block gets written to SPR PAL ram.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: