Testing Machine Problem 1

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

To test your solution to MP1, presuming you have a file called mp1.a in your current working directory, and assuming that it conforms to the requirements for the assignment, use the following commands:

$ smal mp1.a
$ link mp1.o mp1test.o 
$ hawk link.o

The first command above assembles the code in your file mp1.a, producing mp1.o, the object file, and mp1.l, the listing file, both in your current working directory. It should output the message no errors to the terminal window.

The second command combines your mp1.o file with mp1test.o from the object code repository for the class, and produces link.o in your working directory. It should output the message no errors to the terminal window. The most likely errors you might encounter involve failure to define ITEM1 properly.

When you have the hawk emulator display up on the screen, use the emulator's r command to run the test program on your data structure.

Submit whatever you have by the deadline, using Icon to submit your mp1.a file. Late submissions will receive partial credit only if you submit something by the due date or if you have legitimate excuse such as what insurers call an act of God.