Question: Let b 3 1 , b 3 0 , b 2 9 , . . . b 1 , b 0 correspond to the 3

Let b31, b30, b29,... b1, b0 correspond to the 32 bits within a CPU register. The unsigned integer represented by this 32-bit pattern corresponds to the following polynomial in powers of two:
P_unsigned = b31*(2^31)+ b30*(2^30)+ b29*(2^29)+...+ b1*(2^1)+ b0*(2^0)
where, of course, each bn is either 0 or 1
The twos complement signed integer represented by the 32-bit pattern corresponds to the following polynomial in powers of two where the leftmost bit (b31) is multiplied by (2^31):
P_signed = b31*[-(2^31)]+ b30*(2^30)+ b29*(2^29)+...+ b1*(2^1)+ b0*(2^0)

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 Programming Questions!