[solved]-1 Translate Following C Program Mips Assembly Program Please E Plain Instruction Code Comm Q39024897

1- Translate the following C++ program to MIPS assembly program (Please e plain each instruction of your code by a comment and submit a .asm file) x- int main() 6; int values[SIZE] {5, 7, 2,8,9, 1}; cout <<“The unsorted values aren”; showArray(values, SIZE); selection Sort(values, SIZE); cout <<“The sorted values areln”; const int SlIZE = showArray(values, SIZE) return 0 } void selectionSort(int array, int size){ int startScan, minlndex, minValue; for (startScan = 0; startScan < (size 1); startScan++) minlndex startScan; minValue array[startScan]; for(int index startScan 1; index < size; index++){ if (array[index] minValue) minValue minlndex index; } – < array[index]; } array[minlndex] array[startScan]; array[startScan minValue } } = void showArray(const int arrayI, int size) for (int count = 0; count < size; count++) cout << array[Count] << ” “; cout << endl;} Show transcribed image text 1- Translate the following C++ program to MIPS assembly program (Please e plain each instruction of your code by a comment and submit a .asm file) x- int main() 6; int values[SIZE] {5, 7, 2,8,9, 1}; cout
Expert Answer
Answer to 1- Translate the following C++ program to MIPS assembly program (Please e plain each instruction of your code by a comme… . . .
OR

