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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

Submission Instruction You Must Run The Assembly Program Using The Spim Simulator Please Zip The Following Files The 1
Submission Instruction You Must Run The Assembly Program Using The Spim Simulator Please Zip The Following Files The 1 (466.76 KiB) Viewed 39 times
Submission Instruction: 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) and turn your zip file in Canvas. Task: Write a function AVA(&X, &Y, &Z, n, s, t) to perform the following absolute value vector addition, such that X₁ = |Y₁| + |Z₁| + 2xs+t; for 0≤i≤n-1 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, t = 2, 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.)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply