Difficulty: Easy
Correct Answer: can perform subtraction by performing addition
Explanation:
Introduction / Context:
Two’s complement is the dominant signed-integer representation in general-purpose processors. Its popularity stems from the way it simplifies hardware design, especially for subtraction, overflow detection, and representation of zero and negative values without dual “+0/−0.”
Given Data / Assumptions:
Concept / Approach:
In two’s complement, subtraction A − B is implemented as A + (two’s complement of B). The same adder circuit performs both addition and subtraction by conditionally inverting B and adding 1 via the carry-in. This unifies the hardware path and eliminates the need for a separate subtractor. Additional benefits include a unique zero and straightforward overflow rules.
Step-by-Step Solution:
Verification / Alternative check:
Examine an ALU control table: addition and subtraction share the adder core, differing only by operand inversion and carry-in setting.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing one’s complement with two’s complement (one’s complement has +0 and −0 representations).
Final Answer:
can perform subtraction by performing addition
Discussion & Comments