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 right by 1 bit?
(a) 11110010
(b) 01110010
(c) 00101010
(d) 11011000
Assuming a given length of 8 bits, what are the decimal values of the following signed binary numbers after being arithmetically shifted to the right by 1 bit?
(a) 11110010
(b) 01110010
(c) 00101010
(d) 11011000
Assuming a given length of 8 bits, what are the decimal values of the following signed binary numbers after being arithmetically shifted to the right by 1 bit?
(a) 11110010
(b) 01110010
(c) 00101010
(d) 11011000

Solution

Signed Binary numbers use most significant bit as sign bit

(a) 1111 0010 ----negative number = -114

sign bit 1    111 0010

right shift remaining bits by 1 position     011 1001

answer = 1011 1001 = -57

(b) 0111 0010 ---- Positive number = 114

shift right by 1 bit = 0011 1001 = 57

(c) 0010 1010 -----Positive number = 42

shift right by 1 bit = 0001 1010 = 21

(d) 1101 1000 ----negative number = -88

sign bit --1 right shift other bits 010 1100

answer = 1010 1100 = -44

 Assuming a given length of 8 bits, what are the decimal values of the following signed binary numbers after being arithmetically shifted to the right by 1 bit?

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site