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

SPC700 SUBW tests do not test 0, 0 #34

Open
twvd opened this issue Feb 18, 2024 · 0 comments
Open

SPC700 SUBW tests do not test 0, 0 #34

twvd opened this issue Feb 18, 2024 · 0 comments

Comments

@twvd
Copy link

twvd commented Feb 18, 2024

Subtracting 0 from 0 will still set the carry flag because the SPC700, like many CPUs, uses two's complement subtraction. Naive subtract implementations will pass the tests now because there's no test that verifies flag behavior for subtracting 0 from 0.

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

No branches or pull requests

1 participant