![Axiom CML-5485 Скачать руководство пользователя страница 24](http://html.mh-extra.com/html/axiom/cml-5485/cml-5485_hardware-user-manual_3036878024.webp)
C M L - 5 4 8 5 U S E R M A N U A L V 1 . 0
0 6 / 2 2 / 0 5
23
BC - Block Compare
Usage:
BC addr1 addr2 length
The BC command compares two contiguous blocks of memory on a byte by byte basis. The
first block starts at address
addr1
and the second starts at address
addr2
, both of
length
bytes.
If the blocks are not identical, the address of the first mismatch is displayed. The value for
addresses addr1 and addr2 may be an absolute address specified as a hexadecimal value or
a symbol name. The value for length may be a symbol name or a number converted according
to the user defined radix (hexadecimal by default).
Example:
To verify that the data starting at 0x20000 and ending at 0x3_0000 is identical to the data
starting at 0x8_0000, the command is:
bc 20000 80000 10000
BF - Block Fill
Usage:
BF<width> begin end data <inc>
The BF command fills a contiguous block of memory starting at address
begin
, stopping at
address
end
, with the value
data
. <
Width
> modifies the size of the data that is written. If no
<width> is specified, the default of word sized data is used.
The value for addresses begin and end may be an absolute address specified as a
hexadecimal value, or a symbol name. The value for data may be a symbol name, or a number
converted according to the user-defined radix, normally hexadecimal.
The optional value <
inc
> can be used to increment (or decrement) the data value during the
fill.
This command first aligns the starting address for the data access size, and then increments
the address accordingly during the operation. Thus, for the duration of the operation, this
command performs properly-aligned memory accesses.
Examples:
To fill a memory block starting at 0x2_0000 and ending at 0x4_0000 with the value 0x1234, the
command is:
bf 20000 40000 1234
To fill a block of memory starting at 0x20000 and ending at 0x4_0000 with a byte value of
0xAB, the command is:
bf.b 20000 40000 AB