Next: About this document ...
CMSC 311 Computer Organization
Jolly Numbers Worksheet
-NO CALCULATORS-
Summer, 2000
Dr. Hugue
- Write the decimal number, , as an unsigned binary number. Express
your answer in hexadecimal and octal as well.
- Write the hexadecimal number, , as a decimal number.
- What is the largest integer (in decimal) that can be expressed as a
32-bit unsigned binary number? Note: as always, you may express your
answer in terms of powers of two or 16 if you like.
- Write the decimal number as a 16-bit sign magnitude
number. Express your answer in hexadecimal as well.
- Express the hexadecimal number as a base 10 number,
assuming that the original hexadecimal number is in sign magnitude form.
Repeat assuming unsigned binary form.
- Express the hexadecimal number as a base 10 number,
assuming that the original hexadecimal number is in sign magnitude
form. Repeat assuming unsigned binary form.
- Convert the following ``decimal fractions'' to 32-bit fixed point
equivalents, where the ``binary fraction'' is the lower
16 bits, and the ``binary
integer'' part is the upper 16 bits. The ``binary integer'' part is stored
as a sign magnitude number. You may give your answer in hexadecimal for
convenience. Also indicate which representations are exact, and which are
approximations because of truncations. Is underflow present anywhere?
- 125.25
- -456.089
- 512.0000000025
- 104.11111
- -116.8888
- Express the fixed point numbers above using 32-bit IEEE
floating-point notation.
- Express both operands in signed 2's complement, and perform the
indicated operations. (Note: don't forget to sign-extend the numbers so
that all arithmetic is performed between numbers of the same size.)
-
-
-
-
-
- Which of the operations in the previous problem, if any, can be
performed correctly using 16-bit signed 2's complement arithmetic.
Next: About this document ...
MM Hugue
2004-09-08