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.
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.