jsgroth / jgenesis

Sega Genesis / Sega CD / SNES / Master System / Game Gear emulator
MIT License
40 stars 3 forks source link

Robopon - Sun Version (USA) (SGB Enhanced) (GB Compatible).gbc unsupported mapper byte #89

Open benderscruffy opened 1 month ago

jsgroth commented 1 month ago

The mapper byte in the header is $FE which is Hudson's custom HuC-3 mapper, not currently emulated: https://gbdev.io/pandocs/HuC3.html

This seems to be the only HuC-3 (or HuC-1) game that released outside of Japan.

The ROM/RAM banking looks trivial to emulate (it's basically the same as MBC3/MBC5), but this mapper has a real-time clock with a much more complex command/communication protocol than the MBC3 RTC. There's also a builtin speaker with a tone generator that doesn't seem to be well-understood/documented - this GBDev thread suggests that the tone generator behavior comes from a microcontroller program ROM that likely varies between different HuC-3 cartridges.

I'm probably not going to try to emulate the speaker/tone generator but the rest of this mapper seems doable.

jsgroth commented 3 weeks ago

The HuC-3 ROM/RAM banking and RTC are now emulated, which is enough for Robopon to work.

The following features of this mapper are not currently emulated: