rewrite this C code and convert it to MIPS Assembler Language Program

Responsive Centered Red Button

Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.

Learning Goal: I’m working on a assembly language project and need an explanation and answer to help me learn.Below is C code that runs successfully but now I want to rewrite this C code and convert it to MIPS Assembler Language Program. using MARS code environment.Please include .data and .text#include#include// add two matrixvoid add(int m[2][2], int n[2][2], int sum[2][2]){for(int i=0; i<2; i++) for(int j=0; <2; j++) sum[i][j] = m[i][j] + n[i][j];}// subtract two matrixvoid subtract(int m[2][2], int n[2][2], int result[2][2]){for(int i=0; i<2; i++) for(int j=0; j<2; j++) result[i][j] = m[i][j] – n[i][j];}// multiply two matrixvoid multiply(int m[2][2], int n[2][2], int result[2][2]){for(int i=0; i < 2; i++){ for(int j=0; j < 2; j++) { result[i][j] = 0; // assign 0 // find product for (int k = 0; k < 2; k++) result[i][j] += m[i][k] * n[k][j]; }}}// find transpose matrixvoid transpose(int matrix[2][2], int trans[2][2]){for (int i = 0; i < 2; i++) for (int j = 0; j < 2; j++) trans[i][j] = matrix[j][i];}// display matrixvoid display(int matrix[2][2]){for(int i=0; i<2; i++){ for(int j=0; j<2; j++) printf(“%dt”,matrix[i][j]); printf(“n”);}}// mainint main(){// matrixint a[][2] = { {8,2,7}, {3,1,2} };int b[][2] = { {7,8,9}, {1,2,3} };int c[2][2];// print both matrixprintf(“First Matrix:n”);display(a);printf(“Second Matrix:n”);display(b);// variable to take choiceint choice;// menu-drivendo{ // menu printf(“nChoose one of the matrix operation:n”); printf(“—————————-n”); printf(“1. Additionn”); printf(“2. Subtractionn”); printf(“3. Multiplicationn”); printf(“4. Transposen”); printf(“5. Exitn”); printf(“—————————-n”); printf(“Enter your choice: “); scanf(“%d”, &choice); switch (choice) { case 1: add(a, b, c); printf(“Sum of matrix: n”); display(c); break; case 2: subtract(a, b, c); printf(“Subtraction of matrix: n”); display(c); break; case 3: multiply(a, b, c); printf(“Multiplication of matrix: n”); display(c); break; case 4: printf(“Transpose of the first matrix: n”); transpose(a, c); display(c); printf(“Transpose of the second matrix: n”); transpose(b, c); display(c); break; case 5: printf(“Thank You.n”); exit(0); default: printf(“Invalid input.n”); printf(“Please enter the correct input.n”); }}while(1);return 0;} Requirements: anything   |   .doc file | Assembly Language

How to create Testimonial Carousel using Bootstrap5

Clients' Reviews about Our Services