You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
2.7 KiB
107 lines
2.7 KiB
The m Command
|
|
m
|
|
|
|
The m command displays and modifies memory.
|
|
|
|
Format
|
|
|
|
The format for the m command is:
|
|
|
|
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 accesses are to be used.
|
|
|
|
-w is a flag signifying that word 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.
|
|
|
|
. exits interactive mode.
|
|
|
|
Entering no values with this command causes the command to operate in
|
|
interactive mode.
|
|
|
|
Functional Description
|
|
|
|
This command can display and then modify memory locations
|
|
interactively. This command can also set memory to a specified value
|
|
directly.
|
|
|
|
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 00
|
|
a0020002 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 "LSI Logic"
|
|
Set memory starting at 0x80030100 to
|
|
the multiple-word string "LSI Logic."
|
|
|
|
Files
|
|
The m command is located in mon/modify.c.
|
|
|
|
See Also
|
|
fill command,
|
|
l command,
|
|
d command,
|
|
and dump command.
|
|
|
|
��������������������������������������������������������������������������������
|
|
Navigation:
|
|
Document Home |
|
|
Document Contents |
|
|
Document Index
|
|
|
|
|