Você está na página 1de 2

Answer the following questions.

For research questions, you may use the Internet, but you must list the
web sites, books, or papers which you use in your answers. Your answers should be in your words and
not simply copes of sentences from your references. This includes information from your textbook. You
may use calculators for this homework.
1) What is the binary representation of the decimal numbe 25.625. (Note, simply indication the bits for
the integer and fractional parts; you do not need to place the number in a floating point format)
2) For each of the following unsigned decimal integer values, indicate the minimum number of bits
required to represent the value in unsigned binary.
126
256
8191
3) Consider the three ways of representing sign integer values (sign bit, one's complement, and two's
complement) for eight bit quantities. Do any of the possible integer values have the same bit pattern
representation in all with ways of representing sign values? If so, which ones?
4) Show the two's complement representation (in eight bit binary) of the following decimal values:
-1
-127
-63
5) Consider that eight bit binary number 10011001. Viewed as a two's complement representation, find
the decimal equivalent.
6) Perform the addition, 01111111+01111111. Is there unsigned overflow? Is there signed overflow?
Why or why not? If there is no unsigned overflow, what is the decimal equivalent of the sum? If there is no
signed overflow, what is the decimal equivalent of the sum?
7) Add the following pairs of eight bit binary integers.. For each addition, indicate either the decimal
value of the sum or that overflow has occurred, for both the signed and unsigned case.
11111111+01111111
01111111+10000000
10000000+10000000
8) Show the representation of the following real number in floating point representation, with a four bit
exponent field, and a six bit significand field (which has an implicit 1 to the left of the decimal point):
.8125. Were any bits of precision lost in representing this decimal value?
9) Suppose a floating point representation uses six bits for the exponent with a excess-32 bias. What
are the binary representations for the following exponent values:
5
0
-15
10) Perform the following subtractions in binary or hexadecimal as appropriate:
10001110 - 0010000
A123 - 1AAA
1AAA - CAA
11) Consider a signed integer word of 16 bits. What is the maximum and minimum signed values for the
16 bit word if the signed representation is:
sign bit
one's complement
two's complement

Você também pode gostar