Fall 2001
CSCI 2370
11/28/2001
Compare Files
Assignment 7
due:12/5
20 points
Write the main program, which should complete the project. The main program should get the filenames, initialize the files (including reading the first buffer full). While the buffers are the same (must compare the buffer byte by byte) and not at the end of either file, read the files. If the buffers differ, then display the appropriate message with the location of the difference and display the part of the buffers where the difference occurred. If the buffers did not differ (at the end of the files), then display a message that indicates the files are the same.
You can compare the buffers with a large FOR loop or use the REP CMPSB (compare strings) command.
Turn in the final version of the user documentation, the test runs, and turn in a disk containing the ASM, OBJ, and EXE versions of the program. Label it with your name and the name of the program.
Complete the user documentation. The user manual should be 3-5 pages with sample screens and full explanation of what the user is supposed to do.
The grade for each lab in the project includes a portion (15%) on programming style and a portion (20%) on how well the program and subprograms are tested.
Note: that at the end of the file, the interrupt reads up to the end of the file and the rest of the buffer is left alone. When you fill the rest of the buffer with the end of file special character or string, the buffers will still be identical.
Sample Screen