Testing and Debugging Assembly language programs are notoriously difficult to code correctly. Write your own extended driver programs to run these tests. You do not, however, need to submit any evidence that you performed these tests. We suggest that you output the intermediate values of registers using trap 12 while debugging. Passing the given test cases is necessary but not sufficient for getting more than zero marks on a given problem.
Documentation Follow the conventions discussed above and in class.
Also document any special implementation details or assumptions in your source code as comments at the start of each file. For part A only , you do not need to use the stack. Control should be returned to the calling program upon completion of the calculations. Don't worry about register overflow. These problems are intended to give you an understanding of how to go about writing useful programs in assembly language.