Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In digital
circuits, an adder-subtractor is a circuit that is capable of adding or
subtracting numbers (in particular, binary). Below is a circuit that
does adding or subtracting depending on a control signal. It is also
possible to construct a circuit that performs both addition and
subtraction at the same time. Having an n-bit adder for A and B, then S
= A + B. Then, assume the numbers are in two's complement.