Assigned 24 September 2001
Due 3 October 2001
Complete exercises 3.2, 3.4, 3.5, and 3.23.
For exercise 3.23, make sure your program runs in the SPIM simulator without errors. It doesn’t need to produce output on the console window, as long as you can verify that it produces the correct result by checking the register $v0 in the SPIM simulator. Use any nontrivial string as the input of your program, by declaring it in the .data section as you did with the ID in HW3.
Submit your answers via EMAIL to fytsai@email.unc.edu by the beginning of class on the due date. Put HW4 in the subject line of your mail.
23 September 2001