Chargement…
Chargement…
The two’s complement of b lets both operations share one adder.
Behavior
subtract=0 computes a+b; subtract=1 computes a-b.overflow flags a signed result that cannot fit in four bits.a, bsubtractresultcarry_out, overflow