Signed Magnitude Representation
Signed Magnitude (SM) is a method for encoding signed integers.
The Most Significant Bit is used to represent the sign. ‘1’ is used for a ‘-’ (negative sign), a ‘0’ for a ‘+’ (positive sign).
The format of a SM number in 8 bits is: % smmmmmmm
where ‘s’ is the sign bit and the other 7 bits represent the magnitude.
NOTE: for positive numbers, the result is the same as the unsigned binary representation.