Homework 1

Short Description:

This program is intended to help you become familiar with MIPS assembly programming.

This assignment is worth 20 points.

Goals

When you finish this homework, you should:

Formal Description

Output

Your output should look something like:
Program 1, Computer Architecture, Fall 2009
This program is from page B-7 of Patterson and Hennessy
Program run by Dan Bennett 
-----------------------------------
i = 1, 	 Total = 1
i = 2, 	 Total = 5
i = 3, 	 Total = 14
...
i = 100, Total = 338350
-----------------------------------
The sum from 0 .. 100 is 338350

Discussion

You may use any MIPS simulator you wish, but I will grade your homework using xspim 7-4. It must run under this simulator.

Required Files

The body of your email must contain the following statement.

"I do solemnly swear (or affirm) that I have read the assigned reading. I also swear (or affirm) that I have made the additions to the code myself, and I understand what these additions do."

You should also include the links to reference material you found.

You should attach your modified program.

I intend for you to type the code. I want you to look at the code as you enter it. It would be really useful for you to look the instructions up on the green MIPS Reference Data sheet. Notice where the nemonics are classified. Further notice the use of registers.

Extra Credit

Submission

Email the above to dbennett@edinboro.edu by Jan 22 at class time.