CSE 378 Assignment 1

Spring 2002

Due: Wednesday 4/10/02

  1. Subscribe to class mailing list (do this soon)
  2. Read Chapters 1, Appendix B, 4.1-4.3, and start Chapter 3 of the text.
  3. Do, but don't hand in, questions 1.1-1.26.
  4. Do and hand in the following questions:

  5. For the next 4 questions, convert the given decimal number to a 32-bit, two's complement binary number AND also write the resulting binary number in hexidecimal notation.
    1. 39,563
    2. 2047
    3. -4,096
    4. -2,330,123

  6. For the next 3 questions, convert the given two's complement binary number to both hexidecimal and decimal.
    1. 1111 1111 1111 1111 1111 1111 1100 1010
    2. 1111 1111 1111 1111 1111 1111 1101 0011
    3. 0111 1111 1111 1111 1111 0001 0000 1001

  7. For the next 3 questions, convert the given hexidecimal number to both binary and decimal (assume we're using two's complement representation).
    1. 10111010
    2. FFFFF51B
    3. 94F00BC0

  8. Suppose three adjacent (4-byte) words of memory contain the following values:
    AddressValue
    062616E61
    46E612073
    8706C6974
    1. What does memory contain if you interpret the contents as ASCII characters? (HINT: check out section 3.7 of the text.)
    2. What does memory contain if you interpret the contents as 32-bit, signed, two's complement numbers?

  9. Extra Credit:Convert 516 (base 10) to base -3.


dugan@cs.washington.edu