We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that SBC is not calculating correctly
Address Hexdump Dissassembly ------------------------------- $0600 a9 09 LDA #$09 $0602 e9 01 SBC #$01
0600: a9 09 e9 01
A=$07 X=$00 Y=$00 SP=$ff PC=$0605 NV-BDIZC 00110001
The text was updated successfully, but these errors were encountered:
The calculation is correct.
SBC is subtract with carry. If C is 0 prior to the SBC instruction, it subtracts one more than you expect.
To avoid the problem, always use SEC instruction before SBC
Sorry, something went wrong.
No branches or pull requests
It seems that SBC is not calculating correctly
0600: a9 09 e9 01
The text was updated successfully, but these errors were encountered: