28
2.4.16. MM - Memory Modify
MM
MM
MM
MM
MM
Usage:
MM<width> addr <data>
The MM command modifies memory at the address addr. The value for address addr may be an absolute address
specified as a hexadecimal value, or a symbol name. Width modifies the size of the data that is modified. The
value for data may be a symbol name, or a number converted according to the user defined radix, normally
hexadecimal.
If a value for data is provided, then the MM command immediately sets the contents of addr to data. If no value
for data is provided, then the MM command enters into a loop. The loop obtains a value for data, sets the contents
of the current address to data, increments the address according to the data size, and repeats. The loop terminates
when an invalid entry for the data value is entered, i.e., a period.
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 set the byte at location 0x30010000 to be 0xFF, the command is:
mm.b 30010000 FF
To interactively modify memory beginning at 0x30010000, the command is:
mm
30010000
2.4.17. RD - Register Display
RD
RD
RD
RD
RD
Usage:
RD <reg>
The RD command displays the register set of the target. If no argument for reg is provided, then all registers
are displayed. Otherwise, the value for reg is displayed.
Examples:
To display all the registers and their values, the command is:
rd
To display only the program counter, the command is:
rd
pc
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..