Question: In the lecture, we learnt a MIPS code fragment that multiplies two double - precision matrices of size 3 2 x 3 2 . You

In the lecture, we learnt a MIPS code fragment that multiplies two double-precision matrices of size 32x32. You will use, modify and extend that code to write a complete MIPS program to multiply two 4x4 matrices. You will initialize two floating point (double-precision) arrays in the data segment. Here is how you do it:
x: .double 0000000000000000
y: .double 0000000000000000
z: .double 0000000000000000
The 16 zeros represent initial values for three 4x4 matrices where the first four values constitute the first row, so on and so forth. You will use loops to input 16 double type values from the user for y and z. The result of the multiplication of y and z will be saved in the x array. You will use a nested loop to print the values of x in a matrix format (4x4).
Appropriate input and output messages should be used. Check the help file of Mars to find out appropriate syscall parameters for double input and output.
Here is an example of the output if all values of x and y are input as 1 by the user:
Submission Instructions
Submit the complete program (.asm file). Try your program with some values other than all 1s for y and z. Submit a pdf document that includes the input matrices and the screenshot of the output matrix, x from Mars.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!