📄 c_d.htm
字号:
<title>The d Command</title><h1>d</h1><!--INDEX "d command" "display memory" "dump memory" -->The d command displays memory contents in hex or ASCII format.<p></dl><h2>Format</h2><dl><dd>The format for the d command is:<p><pre>d [-b|h|w|s|S] adr [cnt|-rreg]</pre>where:<p><table><tr><td>-b </td><td>displays the memory contents in groups of bytes.</td></tr><tr><td>-h </td><td>displays the memory contents in halfword groups.</td></tr><tr><td>-w </td><td>displays the memory contents in word groups.</td></tr><tr><td>-s </td><td>displays the memory contents as a null terminated string.</td></tr><tr><td>-S </td><td>cnt is the number of data items to be displayed.</td></tr><tr><td>adr </td><td>specifies the base address from which data is displayed.</td></tr><tr><td>cnt </td><td>specifies the number of lines displayed.</td></tr><tr><td>-rreg </td><td>displays the contents of memory as register reg.</td></tr></table></dl><h2>Functional Description</h2><dl><dd>The d command displays memory, starting at the specified address, in hexadecimal or ASCII format. A -b, -h, -w, or -s option, if specified, sets how the data is displayed. See the examples at the end of this section for illustration of the possible display formats.<p>The datasz and moresz Variables<p>If invoked without a -b, -h, -w, or -s option, the datasz variable sets the display format. Setting datasz to -b, -h, -w, or -s has the same effect as the command line options of the same names described in this section. The datasz variable does not effect any other command displays.<p>If invoked without cnt, the d command first displays the number oflines specified in the environment variable moresz. The <ahref="mondef.htm">Monitor</a> then pauses and displays the moreprompt. See the more command for commands available with the moreprompt. Also see the more command for more information on the moreszvariable.<p>The following example displays memory starting at 0xa0010000.<p><pre>PMON> d a0010000 a0010000 bf c0 2b 00 bf c0 2b 00 bf c0 2b 00 bf c0 2b 3c ..+...+...+...+<a0010010 bf c0 2b 3c bf c0 2b 3c bf c0 2b 20 bf c0 2b 20 ..+<..+<..+...+.a0010020 bf c0 2b 20 bf c0 2b a8 bf c0 2b 78 bf c0 2b 60 ..+...+...+x..+`a0010030 bf c0 2b 48 bf c0 2b a8 bf c0 2b a8 bf c0 2b a8 ..+H..+...+...+.a0010040 bf c0 2b 78 bf c0 2b 60 bf c0 2b 48 bf c0 2e 78 ..+x..+`..+H...xa0010050 bf c0 2f 08 bf c0 2e c4 bf c0 2e 80 bf c0 2f 90 ../.........../.a0010060 bf c0 2f 90 bf c0 2f 90 bf c0 2e 78 bf c0 2e 78 ../.../....x...xa0010070 bf c0 2e 78 00 00 00 00 00 00 00 00 00 00 00 00 ...x............</pre></dl><h2>Files</h2><dl><dd>The d command is located in <a href="../mon/dump.c">mon/dump.c</a>.</dl><h2>See Also</h2><dl><dd><a href="c_l.htm">l command</a>,<a href="c_search.htm">search command</a>,<a href="c_m.htm">m command</a>and <a href="c_dump.htm">dump command</a>.</dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -