# Homework #1 -- due Wed Jan 18

This is a fairly easy warm-up assignment, but you will have to read the text to find material not covered in lecture. Do the following exercises:

### (updated 1/13/2006 due to textbook being unavailable)

• (2.2 from book) What binary number does this hexadecimal number represent: 7fff fffahex? What decimal number does it represent? (If needed, here is help with hex)
• (2.3 from book) What hexadecimal number does this binary number represent: 1100 1010 1111 1110 1111 1010 1100 1110two
• Assume variables a, b, and c are assigned registers \$s1, \$s2, and \$s3, and the address of array X is in \$s6. Write the code for the following:
1. ` b = A[1] - A[2]; `
2. ` b = A[2 * c];    `

General homework requirements

• Every assginment (homework/lab/project) must have a completed coversheet stapled to the front of your assignment. This is worth 10% of your grade.
• Collaboration is encouraged per course policy, but you are required to document who you worked with on your cover sheet.