Question: Write a MIPS assembly code that sums four integers and provide their average. Instructions and hints: 1. Load the following immediate values to the following

 Write a MIPS assembly code that sums four integers and provide

Write a MIPS assembly code that sums four integers and provide their average. Instructions and hints: 1. Load the following immediate values to the following registers: $S0=1,$S1=2,$S3=2,$S4=4; you may want to use temporary registers. 2. Average =(1+2+2+4)/4. 3. You must use "div" instruction to do the division mentioned above. 4. Store the results of the average in the following memory (data segment) addresses: 010010000(10=$t0/$t1) \#quotient 010010004(hi=$t0%t1) \#reminder 5. Print out your full name. 6. Terminate the program. Attach File

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!