- #1
shamieh
- 539
- 0
Perform the following operations involving eight-bit 2's complement numbers and indicate whether arithmetic overflow occurs.
1) 01110101 + 11011110.
So I have a +Positive + a -Negative number. So I just added normally, and got the result of 01010011.
I realized before I started the problem I essentially had 117 +(-34) which is really 117 - 34 = 83.
So my result 01010011 = 83. Was there an easier way I could have done this? And, is this correct? It seems logically correct, but I've been known to screw these up. Also, there would be no overflow right?
1) 01110101 + 11011110.
So I have a +Positive + a -Negative number. So I just added normally, and got the result of 01010011.
I realized before I started the problem I essentially had 117 +(-34) which is really 117 - 34 = 83.
So my result 01010011 = 83. Was there an easier way I could have done this? And, is this correct? It seems logically correct, but I've been known to screw these up. Also, there would be no overflow right?