Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gameboy advance "emulation" for GBA enhanced GBC games. #10

Open
nl255 opened this issue Jun 13, 2020 · 3 comments
Open

Add gameboy advance "emulation" for GBA enhanced GBC games. #10

nl255 opened this issue Jun 13, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@nl255
Copy link

nl255 commented Jun 13, 2020

Some gameboy color games can detect if they are running on a gameboy advance and unlock extra features. It would be nice to have an option to be able to simulate running on a gameboy advance to make those features work without having to patch the rom. Apparently it is fairly simple to do (and some versions of gambatte already support it) as the only difference is that the CPU register 'b' holds a value of 0 when a GBC is first turned on and a value of 1 on a GBA.

@bardeci
Copy link
Owner

bardeci commented Jun 14, 2020

I will look into it.

@bardeci bardeci added the enhancement New feature or request label Jun 14, 2020
@nl255
Copy link
Author

nl255 commented Jun 14, 2020

As for hardware detection games I found this document which hopefully will help. I am not sure if the Accumulator value is properly set in your port of Gambatte but if it is not then some GBC exclusive games will fail to run.

@nl255
Copy link
Author

nl255 commented Aug 14, 2020

Is there any update on this? From a quick look at the source code it appears that libgambatte already has support for that (search for "GBA_CGB" in include/gambatte.h or "isgba" in several places including bootloader.cpp, gambatte.cpp, and initstate.cpp) and it just needs a menu option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants