Question: EENG 2 2 8 7 Microprocessor Design Writing code, Part 1 : Using the MIPS Simulator in zyBooks The purpose of this exercise is to
EENG Microprocessor Design
Writing code, Part : Using the MIPS Simulator in zyBooks
The purpose of this exercise is to teach you:
How to use flowcharts to document the approach to solving a problem.
How to use the MIPS Simulator in zyBooks in Section of zyBooks
How to write a small program that has detailed comments.
Verify that the program works correctly by running it and checking the result.
For both Part and Part you should use comments.
Part : Write code to initialize an array of elements in DM starting at address The elements will contain the first positive integers, ie
Part : Write code to compute the sum of the elements in this array that you just created. Your code should read the array elements from memory one by one and compute the sum. The final sum should be stored in register $t when the program finishes.
The procedure you will follow is:
Draw a flowchart. You cannot use MIPS code in the flowchart. It must be written in plain English. Use draw.io to create a nicelooking flowchart. Cut and paste it into a word document. Also explain what the diagram does.
Using the flowchart as a guide, write a comment in the MIPS simulator. Only after this should you write the MIPS code.
After entering each line, run the program to make sure the code is executing properly. Check that the code is doing what you intended.
Keep adding additional lines of MIPS code and add the comments as you go along.
If you are satisfied with the solution, take a screenshot of the memory map. Insert this into your Word document. Also copy and paste the code that you wrote into the Word document. This will serve as the report. You may also reuse the code you wrote in other projects.
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
