.data AA: .space 400 # int AA[100] BB: .space 400 # int BB[100] CC: .space 400 # int CC[100] m: .space 4 # m is an int whose value is at most 10 # actual size of the above matrices is mxm # You may add more variables here if you need to .text main: #------- INSERT YOUR CODE HERE for main ------- # # Best is to convert the C program line by line # into its assembly equivalent. Carefully review # the coding templates near the end of Lecture 8. # # # 1. First, read m (the matrices will then be size mxm). # 2. Next, read matrix A followed by matrix B. # 3. Compute matrix product. You will need triple-nested loops for this. # 4. Print the result, one row per line, with one (or more) space(s) between # values within a row. # 5. Exit. # #------------ END CODE --------------- exit: # this is code to terminate the program -- don't mess with this! addi $v0, $0, 10 # system call code 10 for exit syscall # exit the program #------- If you decide to make other functions, place their code here ------- # # You do not have to use helper methods, but you may if you would like to. # If you do use them, be sure to do all the proper stack management. # For this exercise though, it is easy enough to write all your code # within main. # #------------ END CODE ---------------