Question: COE 2 2 4 : Computer Organization and Architecture I LAB 8 : Procedures / Functions Objectives To learn and practice writing procedures / functions
COE : Computer Organization and Architecture I
LAB : ProceduresFunctions
Objectives
To learn and practice writing proceduresfunctions in MIPS instruction set and the different ways of passing the parameters.
Requirements:
A desktop or laptop computer.
Download the SPIM simulator QtSpim
Background:
Read and exercise Section ProceduresFunctions on Pages in the LabManual: "MIPS Assembly Language Programming using QtSpim By Ed Jorgensen, Ver Jan
Simulation:
Write and simulate a MIPS assemblylanguage routine that uses a procedure called LISTADD to add the elements of an integer array. The array, along with its length, is stored in memory words. Use the array: The arguments passed to LISTADD are the base address of the array passed through register $ and the length of the array passed through register $a The procedure LISTADD returns the result in register $ The main procedure saves the result in memory and prints it on console preceded by an appropriate text message. Procedure call should look like the following:
Results:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
