c

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 the following form:

addr1 byte1 byte2 addr2

Parameters

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.

Example

This section shows two forms of the c command that have the same effect. Each compares the block of memory from 100h to 1FFh with the block of memory from 300h to 3FFh.

The first example specifies a range with a starting address of 100h and an ending address of 1FFh. This block of memory is compared with a block of memory of the same size starting at 300h.

c100 1FF 300

The second example compares the same block of memory but specifies the range by using the L (length) option.

c100 L 100 300