#--------------------------------- # Lab 6: Putting it together # # Name: # Onyen: # # -------------------------------- # Below is the expected output. # # 479001600 # -- program is finished running -- #--------------------------------- .data numberString: .asciiz "12" .text main: #------- INSERT MAIN CODE HERE ------- # # Here you should call atoi and factorial functions. #(You may delete the comment here when you insert your code) # #------------ END CODE --------------- add $a0, $0, $v0 #take the result of atoi/factorial and print it li $v0, 1 #System call code for print_int syscall li $v0, 10 #System call code for exit syscall #exit the program atoi: #------- INSERT ATOI CODE HERE ------- # #(You may delete the comment here when you insert your code) # #------------ END CODE --------------- factorial: #------- INSERT FACTORIAL # #(You may delete the comment here when you insert your code) # #------------ END CODE ---------------