Program 1
Short Description:
Write a program which given a set of points sorts those points left to right, then high to low.
This assignment is worth 30 points.
Goals
When you finish this homework, you should:
- Demonstrate that you can properly manipulate the stack.
- Demonstrate that you can properly save registers on the stack.
- Demonstrate that you can properly implement subroutines.
- Demonstrate that you can manipulate simple structures and arrays of structures.
Formal Description
Implement a MIPS assembly program version of this c++ program. In general you should:
- Implement all of my routines, with the given function signature.
- Properly preserve registers, pass parameters, and return arguments.
Discussion
- I used a c style bool, where 0 is false and not 0 is true.
- The initialization of array1 in the C++ program is used to mimic what you will do in your assembly code for that array.
- Your assembly code should be well documented.
- I believe that I have set up a discussion board for this program on D2L, please direct your questions there (as well as email) so that all may view questions and answers.
Required Files
Email your assembly file to danbennett360@gmail.com by April 1 at class time.