Hardware Reference
In-Depth Information
mdw * StartAddress + [ * EndAddress + ]
The mdw ( memory display words ) command displays the contents of memory locations
as hexadecimal words and ASCII characters, 16 bytes on each line. The , StartAddress . pa-
rameter must be supplied; the , EndAddress . parameter is optional. When the ,EndAddress.
parameter is not supplied, a single line is displayed.
The number supplied as the ,StartAddress. parameter is rounded down to the next lower
multiple of 16, while the number supplied as the ,EndAddress. parameter is rounded up to
the next higher multiple of 16 minus 1. This causes each line to display memory in the range of
$xxx0 through $xxxF.
Example 3.2
+ mdw 1000
1000 FC08 00CD - 0900 CE00 - 0A18 10CB - 306B 44B7
. . . . . . . . . . . . 0kD.
+ mdw 1000 1020
1000 FC08 00CD - 0900 CE00 - 0A18 10CB - 306B 44B7
. . . . . . . . . . . . 0kD.
1010 C5CE 000A - 1810 CB30 - 6B43 B7C5 - CE00 0A18
. . . . . . . 0kC . . . . . .
1020 10CB 306B - 42B7 C5CE - 000A 1810 - CB30 6B41
. . 0kB . . . . . . . . 0kA
.
mm * Address + [ * Data + ]
The mm ( memory modify ) command allows us to examine and modify the contents of mem-
ory locations 1 byte at a time. If the 8-bit data parameter is present on the command line, the
byte at memory location , Address . is replaced with , Data . and the command is terminated.
If no optional data is provided, then D-Bug12 enters the interactive memory modify mode . In the
interactive mode, each byte 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 mod-
ification 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 same 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 en-
tered, an appropriate error message is issued and the contents of the current memory location
are redisplayed.
Example 3.3
In this example, each line is terminated with a carriage-return character. However, the car-
riage return character is nondisplayable and hence is not shown.
. mm 1000
1000 00
1001 00 FF
1002 00 ^
1001 FF
 
Search WWH ::




Custom Search