Compare command

Purpose: Compares the contents of two blocks of memory.

Format: C range address

Remarks: The contents of the two blocks of memory are compared; the
length of the comparison is determined from the range. If
unequal bytes are found, their addresses and contents are
displayed, in the form:

addr1 byte1 byte2 addr2

where, the first half (addr1 byte1) refers to the location
and contents of the mismatching locations in range, and the
second half (byte2 addr2) refers to the byte found in ad-
dress.

If you enter only an offset for the beginning address of
range, the C command assumes the segment contained in the
DS register. To specify an ending address for range, enter
it with only an offset value.

Example: C 100 L20 200

The 32 bytes (20h) of memory beginning at DS:100h are com-
pared with the 32 bytes beginning at DS:200h. L20 is the
range.