#--------------------------------- # Lab 6: Factorial # # Name: # Onyen: # # -------------------------------- # Below is the expected output. # # 720 # -- program is finished running -- #--------------------------------- .data newline: .asciiz "\n" .text main: addi $a0, $0, 6 #load the value we want to pass in to the factorial method #try a few different values by changing the "6" jal factorial add $a0, $0, $v0 #store value to print li $v0, 1 #System call code for printing an int syscall li $v0, 4 #System call code for print_str la $a0, newline #address of string to print syscall #print the string li $v0, 10 #System call code for exit syscall #exit the program factorial: #------- INSERT YOUR CODE HERE ------- # #(You may delete the comment here when you insert your code) # #------------ END CODE ---------------