CSE 378, Autumn 1997 Assignment #2 Due: Wednesday, Oct 15th, 1997

This assignment will get you started writing some simple subroutines in MIPS assembly language. You should use the SPIM simulator to debug and test your subroutines. The routines you'll implement are fairly simple, but the primary goal of the assignment is for you to gain familiarity with programming and debugging in the SPIM environment. Feel free to use any MIPS instruction described in Appendix A of your book, whether or not it is one that we've covered in class.

Because reading assembly language programs can be difficult, it is very important when writing assembly language programs to provide explanatory comments in your code. Please do so for this assignment.

You'll use the turnin program to submit your assignment electronically. More details on this topic will be provided on the cse378 mailing-list.

The assembly files that we provide for you are located in the spim library directory. Adding the following command to your .cshrc file will give you access to these files.

source /cse/courses/cse378/97au/bin/spim-setup
For more information on getting started with spim and xspim, see the course help documents web pages.