CS 352: Homework Assignment 5

      Assigned: Thursday, March 4, 2010
      Due: Thursday, March 11, 2010 at the beginning of class
      Instructions: Show your work to receive full credit.

      • 4.21.1, 4.21.2, 4.21.4
      • 4.23.1, 4.23.2, 4.23.3 4.23.5 (Solve only for breakdown a. and prediction accuracy a.)
      • 4.24.1, 4.24.3, 4.24.4
      • 4.25.1, 4.25.3
      • 4.28.1, 4.28.3, 4.28.5



      Refer to program hw5.asm:

      1. What does this program compute?
      2. What exception can the execution of this program cause?
      3. What is the smallest value of the input that produces this exception?

      Programming Problems:

      Write short MIPS assembly snippets that cause any two of the following exceptions to occur:
      1. Attempt to execute invalid instruction.
      2. Division by zero.
      3. Address error in store.

      Turn in your code snippets:
      bash$ turnin --submit upendra hw5 invalid.asm
      bash$ turnin --submit upendra hw5 zero.asm