User`s guide

SROM Mini-Debugger Command Set 3–9
User Commands
cm
The compare (cm) command compares two sections of memory and displays any dif-
ferences.
Control Flags
ba (base address flag)
lo (loop flag)
qw (quadword data flag)
Description
The compare command checks the equality of two blocks of memory and prints any
differences. The first two addresses specify the starting and ending addresses of the
first block to be checked and the third input provides the starting address of the
second block.
Example
In the following example, two blocks are filled with the same data and then two
locations are changed. The compare command shows those two locations as having
different data, even though the display flag is disabled.
SROM> fm ! Fill the first block with a known pattern.
A> 500000
A> 500020
D> 12345678
SROM> fm ! Fill the second block with a known pattern.
A> 600000
A> 600020
D> 12345678
SROM> dm
! Change first location.
A> 600004
D> bad
SROM> dm ! Change second location.
A> 60000c
D> deed