MIPS Programming assignment

This should be a relatively simple program for you to write. The intent of this program is to get you familiar with writing MIPS programs and the MARS IDE. For this program I want you to build on the knowledge you learned from the MIPS tutorials, specifically Tutorials 8 and 9. I would like you to write a program that implements the following C instruction in MIPS:

f = g + (h – 5);

You can get as creative as you want but minimally you need to:

Declare the variables f, g and h and set them to the appropriate values.

Implement the math in MIPS.

Final result should be stored if the variable f.

Add comments to your program as you feel necessary. Make sure one of the comments includes your name.

When done please submit the .asm file that you created in MARS to this link. Please take the time to learn MARS, try debugging such as single stepping, monitor the registers, determine how to start and stop a program, review the online help, etc.. Spending this time now will help you during Week 5 where you will create a more complex program.

http://www.cs.utah.edu/~rajeev/cs3810/slides/3810-03.pdf

Book:

Title Computer Organization and Design

Author David A. Patterson; John L. Hennessy

ISBN 978-0-12-407726-3

TAKE ADVANTAGE OF OUR PROMOTIONAL DISCOUNT DISPLAYED ON THE WEBSITE AND GET A DISCOUNT FOR YOUR PAPER NOW!

© 2020 customphdthesis.com. All Rights Reserved. | Disclaimer: for assistance purposes only. These custom papers should be used with proper reference.