Got it now!
Thanks a lot![]()
To convert a 2's compliment negative value to a positive number, invert all the bits (NOT) and add 1.Remember we reverse the bits to get the absolute value disregarding the left most, sign bit
For example 2's compliment -1 = FFFF
invert = 0000, add 1 = 0001
I was reffering to the left most bits but yes. Absolutely correct, to convert a positive to negative after reversing all bits you add one.
Ioannis
Bookmarks