|
CSE Home | About Us | Search | Contact Info |
Due: Thursday, April 9, at 11 pm.
The purpose of this assignment is to get some practice with binary encodings of numbers, character strings, and instructions. All numbers should be treated as positive, unsigned numbers. We'll have a chance to practice with signed (negative) numbers later.
General hint: When converting between binary and decimal, it may be faster to convert to/from hexadecimal first, rather than dealing with the individual bits one by one. However, you should know how to do the conversions either way (directly from binary, or via hex numbers).
Obviously, many of these questions can be answered trivially by typing numbers into a calculator and pushing a button. Please be sure you can do them without having to rely on that.
We suggest you show your work or partial results so if your answer isn't completely correct we can fairly assign partial credit.
0000 0000 0100 0000 1111 1101 1100 1101
0011 1111 1001 1111 0000 1000
0011 0101
0xFACE
0x1CA2
0x1010111
0xDEADBEEF
"Foo"
would
be stored in 4 bytes with the hex value 0x466f6f00
. "Hi y'all!"
"x+1=17."
addi $s1, $t3, 5
addu $v0, $zero, $a3
or $t0, $t9, $s2
sw $s4, 80($fp)
Turn-in Instructions: Use the turn-in drop box link on the main course web page to submit a file containing your solutions. You can use any common file format, including plain text, word, or pdf. If you wish, you could also scan in a hand-written solution and submit that, but if you do that, please be sure your handwriting is neat and legible. Please be sure to include your name at the top of your answers.
Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX [comments to Hal Perkins] |