Assignment 1 -- Due Monday September 18, 2001
Please be sure to follow the guidelines in the syllabus regarding paper size, crediting sources, etc.
1. Write fully commented MIPS code for the following C++ program fragment. Be sure to include comments which indicate the purpose of all registers used.
j=a+b[312]
i=j-c
k=(a-c)+(b[312]-i)
j=i+j
k=j
2. Translate the assembly code you have written in answer to problem 1. into machine language.