Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Nestur: NES Emulator in Rust. Parent comment
Also, this line is bothersome, they do opposite things but that's why you have already done (1 - C).
Maybe the fact that -V is actually (!V + 1) (in 2's complement) that eats up the extra -1 is the correct explanation?
So,
SBC = A - V - 1 + C SBC = A + !V + 1 - 1 + C SBC = A + !V + C
At the time of writing I was sure I had it right too!
I’ll fix that up. Thanks :)
Also, this line is bothersome, they do opposite things but that's why you have already done (1 - C).
Maybe the fact that -V is actually (!V + 1) (in 2's complement) that eats up the extra -1 is the correct explanation?
So,