V22.0436 - Prof. Grishman

Assignment 4 - MIPS Assembly Language

Suppose there is an array of five (32-bit) words stored beginning at location 100. Write a MIPS program, using a loop, which computes the sum of these five words and leaves the result in register $5.

Reminder: MIPS uses byte addressing, so the addresses of successive words differ by 4, not 1.

Due October 13. Late assignments are penalized 10% for each weekday late. This is a small assignment and will be counted as 1/2 of other assigments.