2

I think I know what a carry bit is and I also understand the concept of overflow. However, I fail to identify these when performing a simple addition/subtraction using two's complement.

Therefore I performed some calculations and expressed three corresponding questions.

Thank you very much in advance!

Two's Complement

typeduke
  • 6,494
  • 6
  • 25
  • 34

1 Answers1

1

I believe there is an overflow condition if there is a carry into, but not out of the most significant bit, and analogously when there is a carry out of, but not into the most significant bit.

Looking at your first example you see that there is a carry both into and out of the most significant bit, therefore the result is not overflowed.

wich
  • 16,709
  • 6
  • 47
  • 72