MD[[format]] [[address|range]]
format
Specifies the format to dump data. The format can be one of the following:
Specifier | Format |
A | ASCII characters |
B | Byte (hexadecimal) |
C | Code (instructions) |
I | Integer (2-byte decimal) |
IU | Integer unsigned (2-byte decimal) |
IX | Integer hex (2-byte hexadecimal) |
L | Long (4-byte decimal) |
LU | Long unsigned (4-byte decimal) |
LX | Long hex (4-byte hexadecimal) |
R | Real (4-byte float) |
RL | Real long (8-byte float) |
RT | Real ten-byte (10-byte float) |
If format is not given, the Memory Dump command defaults to the format last used. If never used before, it defaults to an 8-bit dump.
address
Starting address of memory to be dumped. This can be any expression that evaluates to an address. The amount of memory dumped depends on the format specified. If address is omitted, the Memory Dump command defaults to the byte immediately following the last byte in the previous dump command. If the Memory Dump command was never used before, it defaults to DS:0000.
range
Range of memory to be dumped. Maximum range is 32K.
The Memory Dump (MD) command displays the contents of memory in the command window, using the format you specify. This command can be used with the Redirection commands to send the contents of memory to another device. Use the View Memory (VM) command to display the contents of memory in a separate window.
The Memory Dump Code (MDC) command is like the Unassemble (U) command, except that MDC displays instructions in the Command window instead of the active Source window. Although you normally specify a range with the L character, you can also use the I character with MDC to specify a range of instructions rather than bytes.
The following example displays 12 instructions starting from the address at line number 32 in the source code:
>mdc .32 I 12
The following example displays the byte values in the range between DS:0 and DS:1B. The data segment is assumed when no segment is given. ASCII characters are shown on the right.
>mdb 0x0 0x1b
0087:0000 00 00 00 00 00 00 00 00 4D 53 20 52 75 6E ........MS Run
0087:000E 2D 54 69 6D 65 20 4C 69 62 72 61 72 79 20 -Time Library
>
The following example displays seven elements of float_array as four-byte real values:
>mdr float_array[0]
0087:0D56 DC 0F 49 40 +3.141593E+000
0087:0D5A A0 17 CE 3F +1.610096E+000
0087:0D5E 66 66 5B C2 -5.485000E+001
0087:0D62 00 00 C0 3F +1.500000E+000
0087:0D66 FF FF 1F 41 +9.999999E+000
0087:0D6A 00 00 00 00 +0.000000E+000
0087:0D6E 00 00 00 00 +0.000000E+000
>