#--------------------------------- # Lab 6: ASCII to Integer # # Name: # Onyen: # # -------------------------------- # Below is the expected output. # # 1337 # -- program is finished running -- #--------------------------------- .data numberString: .asciiz "1337" .text main: la $a0, numberString #address of string to print jal atoi add $a0, $0, $v0 #store value to print li $v0, 1 #System call code for printing an int syscall li $v0, 10 #System call code for exit syscall #exit the program atoi: #------- INSERT YOUR CODE HERE ------- # #(You may delete the comment here when you insert your code) # #------------ END CODE ---------------