|
||||||||
|
||||||||
| Cette page est aussi disponible en français | ||||||||
| Palette fix patch | [hide] |
The PPU used by the arcade version of Super Mario Bros (2c05) is not the
same as in the NES. They are compatible but the color palette is different.
Here is what the arcade version looks like on a NES ppu (2c02):
![]() The PPU registers from $3f00 to $3f1f (mirrored from $3f00 to $3fff) holds the 16 currently selected colors for the background and the 16 currently selected colors for the sprites. Each byte represents a color number. Their meaning differs between different PPU. eg: Color $1a on a 2c05 is blue while on a 2c02 it's green! To correct this problem, I created a rom patch to make sure the right colors are sent to the PPU. Here is how I did:
![]() How to apply the patch: Here is a file which you must be placed at address $159C in the file mds-sm4.1d: fix_palette.bin Next, in mds-sm4.1d, replace the 3 bytes $4A $4A $AA (lsr A, lsr A, txa) at address $116B by $4C $9C $95 (jmp $959c). Here is the source code. I use wla dx since I can use it under Linux: fix_palette.asm NOTE: Dont bother asking me for the ROMS or where to get them, I wont reply. |
| Next: Combining the roms | < 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 > |
Website coded with![]() | Last update: May 17, 2009 |