d

The d command displays memory contents in hex or ASCII format.

Format

The format for the d command is:
d [-b|h|w|s|S] adr [cnt|-rreg]

where:
 
-b   
  displays the memory contents in groups of bytes. 
-h   
  displays the memory contents in halfword groups. 
-w   
  displays the memory contents in word groups. 
-s   
  displays the memory contents as a null terminated string. 
adr   
  specifies the base address from which data is displayed. 
cnt   
  specifies the number of lines displayed. 
-rreg   
  displays the contents of memory as register reg. 

Functional Description

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.


The datasz and moresz Variables in the environment control the display of memory.
See set command.

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.

If invoked without cnt, the d command first displays the number of lines specified in the environment variable moresz. The Monitor then pauses and displays the more prompt. See the more command for commands available with the more prompt. Also see the more command for more information on the moresz variable.

The following example displays memory starting at 0xa0010000.

PMON> d a0010000 

a0010000 bf c0 2b 00 bf c0 2b 00 bf c0 2b 00 bf c0 2b 3c ..+...+...+...+<
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...x
a0010050 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...x
a0010070 bf c0 2e 78 00 00 00 00 00 00 00 00 00 00 00 00 ...x............

See Also

l command, m command and dump command.

Navigation:  Document Home | Document Contents | Document Index