Question: ( a ) Several integer numbers need to be represented, using 1 2 bits for each. Some of them are negative and therefore a question

(a) Several integer numbers need to be represented, using 12 bits for each. Some of them
are negative and therefore a question arises of their exact representation.
One option is to commit the most significant bit (MSB) to representing sign
(1 negative, 0 positive), and then use the rest of the bits to encode the absolute value
(sign + magnitude representation). Another is to use the 2s complement representation.
Find binary encoding of the following numbers: 2022dec, -2020dec, 0dec and -5dec, in
sign+magnitude and in 2s complement representation. (8 marks)
(b) Find the range of integers that can be encoded in each of these two representations

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!