Homework 2

This homework is worth 30 points.

Please do the following problems:

  1. (2 points each) From the text book, page 59-60 problems 1.3 (all) and and 1.4 (1.4.1 through 1.4.5)
  2. (1 point each) Express the following instructions in MIPS binary format.
    1. add $t2, $sp, $t3 # (shamt = 0)
    2. sw $t4, 127($t5)
    3. jal 1024
  3. (1 point each) Assume that each instruction is in MIPS binary format, express in assembly code.
    1. 0019610016
    2. 0810000016
    3. 01eb402216
Remember, your homework must be typed, and you must show your work.

You are encouraged to use a spreadsheet. If you do so, you may email the spreadsheet to me. Your spreadsheet should be in either Open Office or Excel format. Make sure that your name is on the spreadsheet and all problems are labeled clearly. An easy way to do this is use a separate sheet for each problem.

Please turn in hard copy of your homework by the beginning of class on February 18. In addition, please email copies of your circuits, programs and other original source files to me.