c (Compare)


c range addr

The c command compares one memory location with another memory location. If the two memory areas are identical, the debugger displays nothing and returns the debugger prompt. Differences, when they exist, are displayed in this form: addr1 byte1 byte2 addr2.

range

Specifies the block of memory that is to be compared with a block of memory starting at addr.

addr

Specifies the starting address of the second block of memory.

This example compares the bytes at addresses in the range 100h to 1FFh with the corresponding bytes at address from 300h to 3FFh:


c100 1FF 300

This example compares the same block of memory as the previous example but specifies the range by using the L (length) option.


c100 L 100 300