pokemon-speedrunning / gambatte-speedrun

Fork of https://github.com/sinamas/gambatte with Pokemon speedrunning-related changes.
GNU General Public License v2.0
94 stars 27 forks source link

Some games crash without proper open bus behavior #78

Closed CasualPokePlayer closed 3 years ago

CasualPokePlayer commented 3 years ago

See https://github.com/TASVideos/BizHawk/issues/2482, but the gist is that due a bug within this game, the game will end up reading the SRAM area (this game has no RAM lol) and then write to whatever it read, so under the "always return FF for lack of/disabled sram reads" the game writes to FFFF and ends up disabling interrupts. This bug is however benign on (most? at least the GBP anyways) consoles due to the write ending up happening in 0A0A, which does nothing.

So we end up actually have a game where you need tr00 open bus emulation for it to work, fun:tm:

CasualPokePlayer commented 3 years ago

https://github.com/mgba-emu/mgba/issues/2032

Related issue, this game also depends on open bus (due to some weird bug in the game), otherwise it ends up locking up at this section.