Assignment 5, due Feb 28

Part of the homework for 22C:60, Spring 2005
by Douglas W. Jones
THE UNIVERSITY OF IOWA Department of Computer Science

Always, on every assignment, please write your name legibly as it appears on your University ID and on the class list! All assignments will be due at the start of class on the day indicated, and unless there is what insurance companies call "an act of God" - something outside your control; the only exceptions to this rule will be by advance arrangement.

  1. From chapter 6 of the notes, do problems e and h (0.6 each).

  2. See problems i and k from chapter 6 of the notees for the inspiration of this problem. Write a macro that does what JSRS does, using the JUMPS instruction, plus any other Hawk instructions other than the JSR or JSRS instructions. Hint: You will have to use some other instruction to load the return address into the destination register of this macro before it uses JUMPS to transfer control to the destination. The LEA instruction may be useful (0.6 points).

  3. From chapter 6 of the notes, do problems l and q (0.6 each).