Debug: D (Dump)
Page updated January 21, 2005
Displays the contents of a range of memory addresses. Used without parameters, d displays the contents of 128 bytes, starting at the end of the address range specified in the previous d subcommand.
Syntax
Parameters
Remarks
- Windows XP and the Windows Server 2003 family of products do not use this command. It is included only to preserve compatibility with existing MS-DOS files, but it has no effect at the command line because the functionality is automatic.
-
Specifying valid Range entries
Use Range with a debug subcommand to specify a range of memory. You can choose one of the following formats for Range: a starting address and an ending address, or a starting address and the length (denoted by l) of the range. For example, both of the following syntaxes specify a 16-byte range beginning at CS:100:
cs:100 10f
cs:100 l 10
- When you use the d subcommand, Debug.exe displays memory contents in two portions: a hexadecimal portion (that is, each byte value is shown in hexadecimal format) and an ASCII portion (that is, each byte value is shown as an ASCII character). Each nonprinting character is denoted by a period (.) in the ASCII portion of the display. Each display line shows the contents of 16 bytes, with a hyphen between the eighth and ninth bytes. Each display line begins on a 16-byte boundary.
- For information about displaying the contents of registers by using the r (register) subcommand, see Related Topics
Examples
dcs:100 10f
Debug.exe displays the contents of the range in the following format:
04BA:0100 54 4F 4D 00 53 41 57 59-45 52 00 00 00 00 00 00.....
If you type the d subcommand without parameters, Debug.exe formats the display as described in the previous example. Each line in the Command Prompt window begins with an address that is 16 bytes greater than the address on the previous line (or 8 bytes if you have a 40-column screen). For each subsequent d subcommand that you type without parameters, Debug.exe displays the bytes immediately following those last displayed.
To display the contents of 20h bytes, starting at CS:100, type:
dcs:100 l 20
To display the contents of all bytes in the range of lines from 100h through 115h in the CS segment, type:
dcs:100 115
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |
Some of these terms may be the same or similar to DOS commands. For information on DOS Commands, click here