Project #105448 - Write a program that implements the following C instruction in MIPS

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:

  1. Declare the variables f, g and h and set them to the appropriate values.
  2. Implement the math in MIPS.
  3. Final result should be stored if the variable f.
  4. 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

Subject Computer
Due By (Pacific Time) 01/27/2016 10:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy