Addition involving eight-bit 2's complement numbers and indicating overflow.

  • Context:
  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Addition Numbers
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
shamieh
Messages
538
Reaction score
0
Perform the following operations involving eight bit 2's complement numbers and indicate whether arithmetic overflow occurs.

1.
00110110 + 01000101 = 01111011 Overflow: there is none because we are adding to positive numbers.

Did I do this correctly?
 
Physics news on Phys.org
The sum is correct, and there is indeed no overflow, but not because you are adding two positive numbers. When you add 1 to 01111111, there is an overflow.