COMP 231 - Assignment 3

Due in class, Thurs. March 29

In this assignment you are to write a MIPS assembly program to maintain a sorted list of integers in the range 0...9. Here are the commands that your program should be able to handle:

The commands are to be coded using 2 decimal digits as follows:

So for example a log of a session with your program might look like:

Command: 11
Command: 13
Command: 11
Command: 30
3
Command: 40
1,1,3
Command: 21
Command: 30
2
Command: 40
1,3
Command: 50
Good-bye!

To be handed in: (1) A complete listing of your fully documented code. Almost every line of code should have a comment. (2) The log of one session which fully tests your code. Make sure your session tests all features of your program. (3) Email me your dot s file.

Bonus: Modify your program so that is accepts arbitrary signed integers and allows the user to use the words "Insert", "Delete", etc. to input their requests.

Report problems to dkrizanc at wesleyan dot edu Top of Page