Monday, January 27, 2014

Sign-Magnitude

Sign-Magnitude Representation
There are many schemes for representing negative integers with patterns of bits
One scheme is sign-magnitude.
It uses one bit (usually the leftmost) to indicate the sign. "0" indicates a positive integer, and "1" indicates a negative integer.
The rest of the bits are used for the magnitude of the number.
So -2410 is represented as:

1001 1000

The sign "1" means negative
The magnitude is 24 (in 7-bit binary)

http://chortle.ccsu.edu/AssemblyTutorial/Chapter-08/ass08_12.html

No comments:

Post a Comment