This assignment consists of a single program, and some problems from the book. It must be turned in on paper at the beginning of class, 2 February 2007.
Factorial
You must write a MIPS assembly language program that implements a method determining the factorial of a number. For example, factorial of 5 is 5*4*3*2*1.
Your factorial method must call another method named multiply which you must implement using something similar to the last assignment (adding the numbers in a loop).
The example multiply using recursion should not be used, but serves as a procedure-calling example.
Problems
Please complete problems 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.30, 3.31
For this assignment, please turn in a copy of your source code plus the output of a successful run of the program. Print or screen capture the .data section of memory as shown by the simulator before and after your program has run. Also turn in your answers to the problems from the book.