MiSTer-devel / Gameboy_MiSTer

Gameboy for MiSTer
99 stars 46 forks source link

Mapper Request: TAMA5 #164

Closed ajgowans closed 1 year ago

ajgowans commented 3 years ago

Can the TAMA5 mapper be added to the core?

https://gbhwdb.gekkio.fi/cartridges/tama5.html

It is used for the game: Game de Hakken!! Tamagotchi - Osutchi to Mesutchi

birdybro commented 3 years ago

Do you have an example of a software emulator which supports TAMA5? I looked at the source code for Sameboy and Gambatte and it's not implemented yet.

paulb-nl commented 3 years ago

There is some documentation here https://gbdev.gg8.se/forums/viewtopic.php?id=469

I have the registers with ROM banking working and RAM reading/writing works. The RTC is not well documented and it is also unclear how it works with the single japanese Tamagotchi game that uses it.

Time runs about 16x realtime in the game so I am not sure how the RTC is used.

paulb-nl commented 3 years ago

This mapper has been added. RTC functionality is not working. The game keeps time by itself and seems to write it into save ram so the game starts with the time of the last save.

The in-game time runs at 16x speed but I think the RTC just runs at normal speed so I don't know how that can work.

paulb-nl commented 1 year ago

Added with 105c2c181f2364cdf6e936bd16dfb27213cd3c6c (no RTC)