CSE 378 Assignment 1
Spring 2002
Due: Wednesday 4/10/02
- Subscribe to class mailing list (do this soon)
- Read Chapters 1, Appendix B, 4.1-4.3, and start Chapter 3 of the text.
- Do, but don't hand in, questions 1.1-1.26.
- Do and hand in the following questions:
- 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.
- 39,563
- 2047
- -4,096
- -2,330,123
- For the next 3 questions, convert the given two's complement
binary number to both hexidecimal and decimal.
- 1111 1111 1111 1111 1111 1111 1100 1010
- 1111 1111 1111 1111 1111 1111 1101 0011
- 0111 1111 1111 1111 1111 0001 0000 1001
- For the next 3 questions, convert the given hexidecimal
number to both binary and decimal (assume we're using two's
complement representation).
- 10111010
- FFFFF51B
- 94F00BC0
- Suppose three adjacent (4-byte) words of memory contain the
following values:
Address | Value |
0 | 62616E61 |
4 | 6E612073 |
8 | 706C6974 |
- What does memory contain if you interpret the contents as
ASCII characters? (HINT: check out section 3.7 of the text.)
- What does memory contain if you interpret the contents as
32-bit, signed, two's complement numbers?
- Extra Credit:Convert 516 (base 10) to base -3.
dugan@cs.washington.edu