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

Fix DAA instruction #183

Merged
merged 1 commit into from
Aug 18, 2021
Merged

Fix DAA instruction #183

merged 1 commit into from
Aug 18, 2021

Conversation

Meepster99
Copy link
Contributor

@Meepster99 Meepster99 commented Aug 17, 2021

In the original gameboy's instruction file, the old DAA instruction modified the A register and used the modified value for further checks.
Also, the carry flag was not set properly.

@Screwtapello
Copy link
Contributor

Thanks for this! I can confirm this fixes both failures in blargg's CPU instruction test ROM.

@LukeUsher
Copy link
Contributor

@Meepster99 do you know if this impacts ares too, or if it was already fixed there?

If not, can we have permission to merge this into ares too? I need to ask because higan is GPL but ares is ISC licensed, so we can't just assume you're happy.

@Screwtapello
Copy link
Contributor

ares fails blargg's CPU instruction tests the same way higan did (I checked).

@Screwtapello Screwtapello merged commit 9bf1b33 into higan-emu:master Aug 18, 2021
@Meepster99
Copy link
Contributor Author

im not sure if this is present in ares, but feel free to merge this there too

LukeUsher added a commit to ares-emulator/ares that referenced this pull request Aug 18, 2021
thanks Meepster99, ported from higan-emu/higan#183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants