Assignment 4, due Sept 22

Part of the homework for 22C:40, Fall 2003
by Douglas W. Jones
THE UNIVERSITY OF IOWA Department of Computer Science

Machine Problem I, due Sept 24

Note the due date! The due date was misstated on the original assignment.

Also note that there is a small bug in the SMAL assembler that causes listings to incorrectly show the machine code one line after the source line for Hawk machine instructions. Compare the listings in chapter 5 of the notes with the listings you get for the same input to see what this does.

The Homework

  1. Do the following exercises from Chapter 5 of the notes:

Note, you may use the SMAL assembler and the Hawk emulator to test some of your answers to homework problems. Unlike the machine problems, however, you are not required to use the computer. Pure pencil and paper solutions are acceptible here, and if they are correct, they will get full credit. If they are wrong, however, you might have done better to use the computer.