Assuming a given length of 8 bits what are the decimal value
Assuming a given length of 8 bits, what are the decimal values of the following signed binary numbers after being arithmetically shifted to the left by 2 bits?
(a) 11110011
(b) 01110010
(c) 00101011
(d) 11011001
State whether there is an overflow.
Assuming a given length of 8 bits, what are the decimal values of the following signed binary numbers after being arithmetically shifted to the left by 2 bits?
(a) 11110011
(b) 01110010
(c) 00101011
(d) 11011001
State whether there is an overflow.
Assuming a given length of 8 bits, what are the decimal values of the following signed binary numbers after being arithmetically shifted to the left by 2 bits?
(a) 11110011
(b) 01110010
(c) 00101011
(d) 11011001
State whether there is an overflow.
Solution
a) 11110011
Signed binary value in decimal = -13
binary after shifting left by two bits :-- 11001100
Signed binary value in decimal after shifting left by two bits = -52
no over flow
b)01110010
Signed binary value in decimal = 114
binary after shifting left by two bits :-- 11001000
Signed binary value in decimal after shifting left by two bits = -56
over flow
c)00101011
Signed binary value in decimal = 43
binary after shifting left by two bits :-- 10101100
Signed binary value in decimal after shifting left by two bits = -84
over flow
d)11011001
Signed binary value in decimal = -39
binary after shifting left by two bits :-- 01100100
Signed binary value in decimal after shifting left by two bits = 100
no over flow

