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
ADC = A + V + C SBC = A - V - (1 - C) SBC = A + (-1 * (V - (C - 1))) SBC = A + (-V + (C - 1)) SBC = A + -(V + 1) + C
The explanation fits though. If the carry flag is not set (C == 0) then you subtract an extra 1. If C == 1 then it's A-V.
There are no comments on this comment yet.
The explanation fits though. If the carry flag is not set (C == 0) then you subtract an extra 1. If C == 1 then it's A-V.