The addition and subtraction operations can be done using an Adder-Subtractor circuit. The figure shows the logic diagram of a 4-bit Adder-Subtractor circuit.
The circuit has a mode control signal M which determines if the circuit is to operate as an adder or a subtractor.