Question: 3 (Coding Question: submit your MIPS program). Write a program in the MIPS assembly language that reads the integers 4, -4, 64679, and -64679, and

 3 (Coding Question: submit your MIPS program). Write a program in

3 (Coding Question: submit your MIPS program). Write a program in the MIPS assembly language that reads the integers 4, -4, 64679, and -64679, and loads them into registers Ss0 to Ss3 respectively, and then performs the following operations. Do not change values in saved registers Ss0 to Ss3. (20 pts) a. Print each above integers b. Add Ss2 and Ss3, and print the result; c. Perform logical "OR" on constant 4 and Ss3, and print the result; d. Shift Ss3 one bit left, and then print the result; 4 (Coding Question: submit your MIPS program). Implement a MIPS assembly program that processes two integer arrays of size 20 : Raw and Fresh. The Raw array is initialized with the values (2, 17, 28, 20, 6, 51, 20, 48, 12, 54, 3, 31, 15, 22, 46, 72, 41, 39, 30, 55). The values for Fresh array wil1 be read in (note: add proper prompt for reading data.) All elements of Fresh will be stored in memory The program will output (i.e. display) the sum of two largest integers and the sum of two smallest integers of Raw and store the sum of two largest integers and the sum of two smallest integers of Fresh in memory locations right after where the last element of Fresh is stored. Test the program once and enter the Fresh array's data of your choice. (40 pts) Submission Instruction for 3 and 4s: You must run the assembly program using the SPIM simulator. Please zip the following files * The assembly programs (using file extension.asm) Readme.tct (for each of the problems, you should explain how to run your program. Also, you need to provide the output in console window and the log in message window, after the programfinishes executing) and turn your zip file in blackboarad

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!