Question: This program takes in a string of digits, parses it to an int, and computes and returns its factorial in C repeatedly until 0 is
This program takes in a string of digits, parses it to an int, and computes and returns its factorial in C repeatedly until 0 is entered and the program terminates after returning the factorial of 0 (1). I need to convert it essentially line by line to MIPS, using syscall 8 to read input, then syscall 1 to print the result. code will have one main procedure and two leaf procedures. arguments must be passed to a_to_i and factorial in register $a0, and results should be returned in register $v0.
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
