krocki / gb

A minimal C implementation of Nintendo Gameboy - An fast research environment for Reinforcement Learning
Apache License 2.0
170 stars 15 forks source link

Pokemon incompatibility #2

Open AdrienLE opened 5 years ago

AdrienLE commented 5 years ago

Hi all, awesome work on this! It seems there are still a few incompatible games, in particular it looks like all the Pokemon games just give a blank screen right now. Any plans to fix compatibility for these?

Thanks!

krocki commented 5 years ago

Thanks, yes, the fix should be quite simple. It’s most likely due to the particular memory mapper (aka cartridge format) that Pokémon uses. Most games run on a mapper called MBC1 which is implemented. Here you can find more information on this: http://gbdev.gg8.se/wiki/articles/Memory_Bank_Controllers The key is just to figure out which mapper a particular game uses and modify w8 / r8 functions accordingly