Professional Documents
Culture Documents
LAB #4
Write a program in MIPS assembly language that reverses the array of integers.
1. Download the code snippet from Moodle. The arrays and their lengths are given to you in
the code.
2. Your goal is to reverse both arrays in the Data segment. The first row in the Data Segment
represents the first array, which starts with 1 and ends with 5. The second row represents
the second array, which starts with 25 and ends with 75.
3. No output needed in the console, check Figure 3 below.
4. The numbers 5 and 6 on the 4th row of the Data Segment are the length of the arrays.