A 4-bit ripple-carry adder-subtractor created in Logisim.
Turn on the four inputs to form binary operands in both the A and B rows. The result is shown in binary in the four S outputs.
In addition mode, the calulation is A + B.
In subtraction mode, the calculation is A - B.