
M5253EVBE Users Manual, Rev. 1
Freescale Semiconductor
2-7
To interactively assembly memory at address 0x0040_0000, the command is:
asm 400000
2.4.2
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 0x2_0000 and ending at 0x3_0000 is identical to the data starting at
0x8_0000, the command is:
bc 20000 80000 10000
2.4.3
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 0x0002_0000 and ending at 0x0004_0000 with the value 0x1234, the
command is:
bf 20000 40000 1234
To fill a block of memory starting at 0x0002_0000 and ending at 0x004_0000 with a byte value of 0xAB,
the command is:
bf.b 20000 40000 AB
To zero out the BSS section of the target code (defined by the symbols bss_start and bss_end), the
command is: