Question: in mips : You must run the assembly program using the SPIM simulator. Please zip the following files: The assembly programs ( using file extension

in mips :

You must run the assembly program using the SPIM simulator. Please zip the following files:

The assembly programs ( using file extension .asm)

Readme.txt ( 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 program finishes executing)in mips : You must run the assembly program using the SPIM

Problem 2. Write a function AVA(&X, &Y,&Z, n,s, t) to perform the following absolute value vector addition, such that where &x,&Y, and &Z refer to the array X, Y, Z's starting address, n is the size of the array, and s and t are integers. Please use the stack to pass these six parameters Also, write main programs that call the AVA function on the following data sets (note: please prepare two separate program files, one for each data set) .n 5, s-2, t-1, Y - (1, 2, 3, 4, 5), and Z -(-5,-4,-3,-2,-1) . n 10, s 3, t2,Y (-1, 3, -5, 7, -9, 2, -4, 6, -8, 10, and Z 1,2,3,4,5,6,7,8,9,10 For each data set, the main program should first print out Y and Z arrays, and then to calculate X and finally prints out X array.)

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!