When two signed 2's complement numbers are added, overflow is detected if:
both operands are positive and the sum is negative, or
both operands are negative and the sum is positive.