Question: Write a MIPS assembly language program for the following pseudocode segment for matrix multiplication: //The three matrices A, B, C are stored at 2000, 4000
Write a MIPS assembly language program for the following pseudocode segment for matrix multiplication:
//The three matrices A, B, C are stored at 2000, 4000 and
6000 respectively
for(i = 0; i < 3 -> n; i ++){
for(j = 0; j < 3 -> n; j ++){
for(k = 0; k < 3 -> n; k++){
C[i][j] += A[i][k]*B[k][j]
}
}
}
Step by Step Solution
3.41 Rating (164 Votes )
There are 3 Steps involved in it
addi 1 0 0 i 0 addi 2 0 40 outer for loop bound for lw 3 2000 1 loa... View full answer
Get step-by-step solutions from verified subject matter experts
