Hardware Reference
In-Depth Information
1002 00
1003 00 55 /
1003 55 .
.
mmw * Address + [ * Data + ]
The mmw ( memory modify, word ) command allows the contents of memory to be
examined and/or modified as 16-bit hex data. If the 16-bit data is present on the command
line, the word at memory location , Address . is replaced with , Data . and the command
is terminated. If not, D-Bug12 enters the interactive memory modify mode. In the interac-
tive mode, each word is displayed on a separate line following the address of data. Once the
memory modify command has been entered, single-character subcommands are used for the
modification and verification of memory contents. These subcommands have the following
format:
[ , Data . ] , CR . Optionally update current location and display the next location.
[ , Data . ] , / . or ,5. Optionally update current location and redisplay the current location.
[ , Data . ] , ^ . or ,2. Optionally update current location and display the previous location.
[ , Data . ] , . . Optionally update current location and exit memory modify.
With the exception of the carriage return (CR), the subcommand must be separated from
any entered data with at least a one-space character. If an invalid subcommand character is
entered, an appropriate error message is issued and the contents of the current memory location
are redisplayed.
Example 3.4
In this example, each line is terminated with a carriage-return character. However, the
carriage-return character is nondisplayable and hence is not shown.
. mmw 1100
1100 00F0
1102 AA55 0008
1104 0000 ^
1102 0008 aabb
1104 0000
1106 0000 .
.
move * StartAddress + * EndAddress + * DestAddress +
The move ( move memory block ) command is used to move a block of memory from one
location to another, 1 byte at a time. Addresses are specified in 16-bit hex values. The number
of bytes moved is one more than , EndAddress . 2 , StartAddress .. The block of memory
beginning at the destination address may overlap the memory block defined by ,StartAddress.
and ,EndAddress.. One of the uses of the move command might be to copy a program from
RAM into the on-chip EEPROM.
 
Search WWH ::




Custom Search