
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A lab session for students using the mips assembly language on the mars simulator. The session involves writing a program to calculate the sum of subsequent integers entered by the user and saving the results in an array. The array is then printed out using syscalls. Students are encouraged to document their solutions and minimize memory i/o operations.
What you will learn
Typology: Study notes
1 / 1
This page cannot be seen from the preview
Don't miss anything!
Work in the given groups of two. Submit your solutions to the respective assignment on Blackboard. The le name is: s04_s0XXXXX_s0XXXXX.tar.gz One of the group members commits your solution. Keep an eye on the deadline (see Blackboard)!
Note: for a quick reference to the MIPS assembly language, see Figure 2.1 of Chapter 2 (page 78). Write a MIPS program for the MARS simulator that calculates an array of sums of subsequent integers. The following must be implemented:
As always, document your solution well (use #). Keep in mind that, in order to create an optimal solution, reading and writing to memory must be minimized, because such I/O operations are very expensive. (However, in this exercise you have to store your computed values in memory.)
There is no project this week. You only have to submit your solutions to the exercises. There will be no feedback loop on this lab session.