Assigned: 9 September 2004 Due: 23 September 2004

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.

9 September 2004