Programming Assigment 2


  • Background:

    This assignment requires you to write two simple programs in MIPS I assembly language. You may discuss this assignment with other students and work the problems together. However, your programs should be your own individual work. Remember that all assignments are to be turned in in class on the date due.

    Information on SGI's assembler, as, can be found in the man page and at http://techpubs.sgi.com/ under the Books-IRIX6.5 Developer section; see "MIPSpro Assembly Language Programmer's Guide."

  • Supplemental Materials:

    The following examples are available:

    • recfact.s A recursive factorial program.
    • loop.s an example program illustrating loops.
  • Assigment:

    • Write the assembler for the Hello World problem from PA-1.
    • Write the assembler for the iterative factorial problem from PA-1.
  • Tools: