COMP226 Assignment 1



There is now a sample program called "mikesa1" which you can run to check the expected output. The program expects to be told the name of your data file (by typing

/home/student/comp226/mikesa1 yourdatafilesname
on the command line in a titanic window) and it will produce the same output that your program should produce when run when linked with that data file. (The "/home/student/comp226" just tells the operating system (Unix) where to go to to find mikesa1.)

Special detail about mikesa1: there should be no comments in your data file, except maybe at the end, and the file should begin with

	.data 0x1F00

        .global howmany
        .global thenums 
exactly as in the sample data file.

Remember, the output from your program will be compared with the output from my program. Part of this process will be mechanical so you must be careful to make them match EXACTLY. Notice that there is a blank line in my output - make sure that there is one in yours too. Similarly, notice that there is a space in my ouput before -100 in the histogram. Be very careful.

Also remember that your program will only be checked on valid (according to the specifications) data. There is no need for you to check the data. (My program does do some checks of the data file, but that's just to help you - don't bother to imitate those checks!).

Details about how to submit your program electronically will be provided later.


Comp226 homepage 25 August 2013