Lab 9: SAMS Test Driver
Due: Thursday, April 24, 2008

Background

You will recall that, before the blur of Carnival, you implemented the SAMS Simulator as well as the compliant assembler. Since you are, no doubt, by this point in the semester, old and wise, you have already, surely, written a test driver to ensure the correctness of your solution.

And, we want to give you credit for your effort. So, this week's lab is to write a test utility in either shell script or Perl. You might need to massage your existing test program to meet our spec -- but we're sure that it is close.

Should you discover any problems with your simulator or assembler during testing, please do correct the problems and let the course staff know by submitting a README.TXT, which describes your fixes, with your handin for this lab.

Invoking the Assembler and Simulator

Recall how the simulator is started:

ssim <memorysize> <assembledprogram>
ssim 10000 someprog

Ditto for the assembler:

sas <sourceprog> <execprog>
sas prog1.s prog1

Your task

Assume that you are given four directories