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
According to the GBCPUman: C - Set if no borrow. In my opinion, the code should be:
C - Set if no borrow.
self.reg.set_flag(Flag::C, a >= n);
when the value of register A is greater then the number n, a-n is not borrowed. But in the project, the code is:
a-n
self.reg.set_flag(C, u16::from(a) < u16::from(n));
Which I couldn't understand.
The text was updated successfully, but these errors were encountered:
The substract in i8080/z80 is 'unintuitive' behaviour, See https://retrocomputing.stackexchange.com/questions/12558/the-behavior-of-the-auxiliary-carry-flag-in-subtraction-on-intel-8080
Sorry, something went wrong.
No branches or pull requests
According to the GBCPUman:
C - Set if no borrow.
In my opinion, the code should be:
when the value of register A is greater then the number n,
a-n
is not borrowed. But in the project, the code is:Which I couldn't understand.
The text was updated successfully, but these errors were encountered: