Question: Question 1 ( 2 0 points ) : ( a ) Find the range of unsigned decimal integers that can be stored in a dword.

Question 1(20 points):
(a) Find the range of unsigned decimal integers that can be stored in a dword.
(b) Find the range of signed decimal integers (smallest to largest) that can be stored in
2s complement form in a dword.
Question 2(20 points): Perform the addition operation, giving the sum in hex using the
same number of hex digits as the original two operands; State whether or not overflow
and carry occur; Interpret the operations as 2s complement signed and convert the
problem to the equivalent decimal problem; Verify that the signed interpretation is
correct when there is no overflow; Interpret the operands as unsigned and convert the
problem to the equivalent decimal problem; Verify that the unsigned interpretation is
correct when there is no carry.
2A 44+ D9 CC
Note: See chapter 1 slides. I did a bunch of questions similar to this.
Question 3(20 points): Instructions are the same as in Question 2 but repeat them for 5E
+4B.
Question 4(20 points): Consider the byte length 2s complement representation and show
that FF is -1. Now consider the word length 2s complement representation of FF FF and
show that it is also -1.
Question 5(20 points): We learned how to take the 2s complement of a number by
subtracting it from an appropriate power of 2. An alternative method is to write the
number in binary (using the correct number of bits for the length of the representation),
change each 0 bit to 1 and each 1 bit to 0(this is called taking the 1s complement),
and then adding 1 to the result (discarding any carry into an extra bit). Show that these
two methods are equivalent.
Note: It is not sufficient to show that these two approaches are the same by using an
particular example. You should take an arbitrary n-bit binary number and argue.
1

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!