The m command displays and modifies memory.
m [-bhw] [adr [hexval|-s str]..]
where:
-b | is a flag signifying that byte accesses are to be used. |
-h | is a flag signifying that halfword (16-bit) accesses are to be used. |
-w | is a flag signifying that word (32-bit) accesses are to be used. |
adr | is the memory address to display or modify without entering interactive mode. |
hexval | is the value to insert at the specified address. |
-s | is a flag signifying that the following parameter is a string value. |
str | is a string value to copy to the specified address. |
enters interactive mode. | |
= | in interactive mode, reads current address again. |
^|- | in interactive mode, moves back one word. |
. <cr> | exits interactive mode. |
Entering no values with this command causes the command to operate in interactive mode.
If invoked with one or more values following the address, the command is executed immediately, without entering the interactive mode.
If the command is invoked without a value, the command enters the interactive memory mode. In interactive memory mode, the user enters a command at the cursor. The interactive memory mode first displays the address and its current value. Interactive memory mode then lets the user select one of the commands listed in the following table.
If the -s option is specified, the Monitor displays the memory contents as an ASCII string. A multiple-word string may be specified by enclosing the multiple-word string in quotation marks.
Examples illustrating the use of the m command follow.
PMON> m a0020000 Display memory at address in interactive mode. a0020000 00 _ User can enter command at cursor (_). PMON> m a0020000 1 2 3 4 Set address 0xa0020000 to 1, address 0xa0020001 to 2, etc., in noninteractive mode. PMON> m a0020000 Display memory at 0xa0020000. a0020000 01 CR a0020001 02 CR a0020002 03 CR a0020003 04 . PMON> m a0020000 22 Set address 0xa0020000 to 0x22. PMON> m a0020000 Display memory at 0xa0020000. a0020000 22 44 a0020001 00a0020002 00 55 a0020003 00 66 a0020004 00 ^ a0020003 66 a0020004 00 . PMON> m 80020000 -s even Set memory starting at 0x80020000 to the string "even." PMON> m 80030100 -s "PMON 2000"
Set memory starting at 0x80030100 to the multiple-word string "PMON 2000."
Navigation: Document Home | Document Contents | Document Index