+=================================+ | | | CMP | | | +=================================+ SUMMARY Cmp compares two files on a byte-by-byte basis. SAMPLE INVOCATION Cmp :f1:file1.obj to :f1:file2.obj ACTIONS PERFORMED The files are compared 16 bytes at a time. Mismatching bytes are printed out, within the context of the 16-byte block within which they appear. Upon finding a mismatch in a 16-byte block, Cmp will display that block and restart the comparison at the beginning of the next 16-byte block. Cmp will exit after five mismatches have been found. SAMPLE PROGRAM OUTPUT -----+----+--------------------------------------------------+--------------- block|byte| hexadecimal | ascii disp |disp| display | display -----+----+--------------------------------------------------+--------------- *** COMPARE ERROR AT BYTE- 000A 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF 0004 0020 00 71 02 10 52 45 50 4F 52 54 46 49 4C 45 41 43 q REPORTFILEAC 0004 0020 00 71 02 10 52 45 50 4F 52 54 2B 49 4C 45 41 43 q REPORT+ILEAC *** COMPARE ERROR AT BYTE- 0005 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF 0008 0050 45 57 49 53 49 53 45 52 52 00 1A 52 45 50 4F 52 EWISISERR REPOR 0008 0050 45 57 49 53 49 2B 45 52 52 00 1A 52 45 50 4F 52 EWISI+ERR REPOR *** COMPARE ERROR AT BYTE- 0000 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF 000C 0080 00 08 00 60 22 04 00 03 8A 00 4D 06 06 00 02 8C `" M 000C 0080 2B 08 00 60 22 04 00 03 8A 00 4D 06 06 00 02 8C + `" M ----------------------------------------------------------------------------- SYNTAX cmp to