User guide
An alternate method for dumping memory (or other devices or files) is the hex
dump command, hd. The -l option specifies the number of bytes to display.
Note
Both -l and -n have the same result, but -l only works with hd and -n
only works with examine. The distinction is caused by the commands;
examine is a VMS like command and hd is a UNIX cloned command.
>>> hd pmem:3fff000 -l 10 # Dump the allocated memory.
00000000 55 55 aa aa 55 55 aa aa 55 55 aa aa 55 55 aa aa UUªªUUªªUUªªUUªª
>>> hd -l 20 show_status # Dump part of SHOW_STATUS script.
00000000 65 63 68 6f 20 27 64 2f 53 27 20 3e 24 24 73 73 echo ’d/S’ >$$ss
00000010 0a 65 63 68 6f 20 27 2d 2d 2d 27 20 3e 3e 24 24 .echo ’---’ >>$$
12.4.2 Examining Registers
You can use the examine and deposit commands to refer to registers. You must
include the address for the registers in one of the following ways:
• Symbolically, for example, r0 or ksp
• Explicitly, as offsets within device address space, for example, gpr:0 or ipr:0
• Implicitly, as offsets within the current device address space, for example, 0
You can also use the symbolic addresses +, *, -, and the implied address increment
(no address specified). The following examples show the ways to include an
address, as described in each command’s comment.
12–10 Console Primer