Sign magnitude/1's Complement/2's Complement

  • Thread starter Thread starter JWest
  • Start date Start date
  • Tags Tags
    Sign
AI Thread Summary
The lowest number represented by a 12-bit machine using Sign Magnitude is -2047, while the largest is 2047. The calculations for these values are based on the signed integer range formula for N bits. The bit pattern "101001010010" corresponds to the decimal value of -594 in Signed Magnitude representation. The conversion process involves interpreting the leading bit as a sign indicator and calculating the magnitude from the remaining bits. Overall, the calculations confirm the correct representation of signed integers in this format.
JWest
Messages
12
Reaction score
0

Homework Statement



a.) What is the lowest number represented by a 12-bit machine using Sign Magnitude?

b.) What is the largest?

c.) What decimal number does the bit pattern "101001010010" represent?

Homework Equations



For a and b:

Signed integer ranges for N bits (I don't know if this is what I need to use):

Lowest: -[2^(N-1) - 1]

Highest: [2^(N-1) - 1]

The Attempt at a Solution



a.) -[2^(N-1) - 1]
-[2^(12-1) - 1]
-[2^(11) - 1]
-[2048 - 1]
-[2047]

b.) [2^(N-1) - 1]
[2^(12-1) - 1]
[2^(11) - 1]
[2048 - 1]
[2047]

c.) Bit pattern: 101001010010
Signed Magnitude: 101001010010b
= -01001010010b
= -[(2^9) + (2^6) + (2^4) + (2^1)]
= -[512 + 64 + 16 + 2]
= -[594]
= -594d
 
Physics news on Phys.org
Looks good.
 
Back
Top