If the sum of both inputs is large and has an overflow then wouldn't it be possible that my sign bit could change although it should be the opposite of what it's changed to. And then showing a positive when it should be a negative. If that makes any sense. Or have I just not followed this through fully?
Thanks for the reply
Main Topics
Browse All Topics





by: DropZonePosted on 2008-12-09 at 10:37:26ID: 23131867
If you are using 2's compliment, then the left most bit of the result is the sign bit: 1=negative; 0=positive.
edu/projec ts/biophys ics/techno tes/ progra m/2s_comp. htm
If the sign-bit is set, you know you have a 2's compliment of a negative number. This is how binary arithmetic works.
Here's some reference on binary arithmetic:
http://academic.evergreen.
-dZ.