compare

The compare command compares the contents of two memory areas.

Format

The format of the compare command is:

compare adr1 adr2 siz
where:

adr1 specifies the start address of the first memory area.
adr2 specifies the start address of the second memory area.
siz is the size of the block of memory to be compared. This quantity is specified in bytes.

Functional Description

The compare command compares each byte in the two memory areas. Any bytes that are different are displayed with the address, the expected value, and the actual value read.

Examples

Files

The compare command is located in mon/compare.c.

See Also

copy command


Navigation: Document Home | Document Contents | Document Index