This homework has to be done on MARS application In this homework, you will demo
ID: 3783413 • Letter: T
Question
This homework has to be done on MARS application
In this homework, you will demonstrate that you have MARS running on your computer and get practice with load, store and add instructions.
Program description:
Write a program to add the last 4 digits of your phone number and store it in a memory location named “sum”. Store each digit in its own memory location, called “digit1” … “digit4”.
What to turn in:
1. The program code, make sure you include comments as described in class.
2. A screen shot of your program code (the Edit window). Make sure you have comments on most lines.
3. A screen shot of the registers and memory after you have single-stepped through the program (the Execute window). You can make separate screen shots of the registers and memory in order to zoom in so that they are readable
Explanation / Answer
i := 0; for K from 0 to ceil(99999 / 2^k) do while iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.