Chapter 1
Chapter 1
(5) Using 8-bit register, convert the following decimal numbers to binary and find the 1’s
and 2’s complements.
(a) 1510 (b) 5310 (c) 11510 (d) 9510
(6) Using two’s complement in 8-bit register, show how the computer would evaluate
(a) 0001 11012 – 0001 01012 (b) 0011 11012 – 0001 01112
(c) 0111 11002 – 0111 01012 (d) 1110 – 2510 (e) –1110 – 2510
(f) 2510 – 1110 (g) 3210 – 1310 (h) –1010 – 510
(7) A computer stores the floating number in 16 bit where 1 bit for the sign, 6 bits for the
exponent having a biased or (+31) and mantissa has a hidden bit.
(a) Show how those floating-point values would be represented in that computer.
(i) 12.7510
(ii) –6.0312510
(iii) 8.62510
5
(iv)
16 10
(b) If the computer represents a number as
(i) 1100 1011 1000 00002,
(ii) 0100 1111 0111 01012
(iii) 0011 1101 0111 01012
what is the decimal value of this number?
(8) A computer stores the floating number in 32 bit where 1 bit for the sign, 8 bits for the
exponent having a biased or (+127) and mantissa has a hidden bit. Show how those
floating-point values would be represented in that computer.
(i) 27.7510
(ii) -37.87510