Starting from:

$15

Assignment 3 Matrix Multiplication Solved

In this assignment we will be using the SPIM simulator that you installed in lab. Your task will be to implement a matrix multiplication algorithm in MIPS assembly. Your code only needs to support a 4 × 4 matrix. Only unsigned integer values need to be supported.

Since we have not covered multiplication yet, a function has been provided to you. It is referenced specifically in the pseudocode but that is not the only location where it is appropriate to call it.

Below is some sample output. Note that your program should match these samples exactly. Printing the tab character is often enough to achieve acceptable spacing. The starter code can be found in the Resources section on Piazza.

Enter the values for matrix A:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

Enter the values for matrix B:

1

2

3

4

5

6

7

8

9 10

11

1

12

13

14

15

16 Product A x B matrices:

90
100
110
120
202
228
254
280
314
356
398
440
426
484
542
600

More products