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.
156 lines
6.3 KiB
156 lines
6.3 KiB
<html>
|
|
|
|
<head>
|
|
<title>The m Command</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>m</h1>
|
|
<!--INDEX "m command" "modify memory" -->
|
|
|
|
<p>The m command displays and modifies memory. </p>
|
|
|
|
<h2>Format</h2>
|
|
|
|
<dl>
|
|
<dd>The format for the m command is:
|
|
<pre>
|
|
|
|
<font size="+1">m [-bhw] [adr [hexval|-s str]..]
|
|
</font>
|
|
</pre>
|
|
<p>where:</p>
|
|
<table width="95%">
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="59" align="right" valign="top">-b </td>
|
|
<td width="452" align="left" valign="top"> is a flag signifying that
|
|
byte accesses are to be used. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="59" align="right" valign="top">-h </td>
|
|
<td width="452" align="left" valign="top"> is a flag signifying that
|
|
halfword (16-bit) accesses are to be used. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="59" align="right" valign="top">-w </td>
|
|
<td width="452" align="left" valign="top"> is a flag signifying that
|
|
word (32-bit) accesses are to be used. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="59" align="right" valign="top">adr </td>
|
|
<td width="452" align="left" valign="top"> is the memory address
|
|
to display or modify without entering interactive mode. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="59" align="right" valign="top">hexval </td>
|
|
<td width="452" align="left" valign="top"> is the value to insert
|
|
at the specified address. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="59" align="right" valign="top">-s </td>
|
|
<td width="452" align="left" valign="top"> is a flag signifying that
|
|
the following parameter is a string value. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="59" align="right" valign="top">str </td>
|
|
<td width="452" align="left" valign="top"> is a string value to copy
|
|
to the specified address. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="59" align="right" valign="top"><cr></td>
|
|
<td width="452" align="left" valign="top"> enters interactive mode.
|
|
</td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="59" align="right" valign="top">= </td>
|
|
<td width="452" align="left" valign="top"> in interactive mode, reads
|
|
current address again. </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="59" align="right" valign="top">^|- </td>
|
|
<td width="452" align="left" valign="top"> in interactive mode, moves
|
|
back one word. </td>
|
|
</tr>
|
|
<tr bgcolor="#CCCCCC">
|
|
<td width="59" align="right" valign="top">. <cr> </td>
|
|
<td width="452" align="left" valign="top"> exits interactive mode.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p>Entering no values with this command causes the command to operate in interactive mode.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h2>Functional Description</h2>
|
|
|
|
<dl>
|
|
<dd>This command can display and then modify memory locations interactively.
|
|
This command can also set memory to a specified value directly. </dd>
|
|
</dl>
|
|
<p>If invoked with one or more values following the address, the command is executed
|
|
immediately, without entering the interactive mode.</p>
|
|
<p>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.</p>
|
|
<p>If the -s option is specified, the <a href="mondef.htm">Monitor</a> displays
|
|
the memory contents as an ASCII string. A multiple-word string may be specified
|
|
by enclosing the multiple-word string in quotation marks.</p>
|
|
<p>Examples illustrating the use of the m command follow.</p>
|
|
<blockquote>
|
|
<pre>
|
|
|
|
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 <cr>
|
|
a0020002 00 55
|
|
a0020003 00 66
|
|
a0020004 00 ^
|
|
a0020003 66 <cr>
|
|
a0020004 00 .
|
|
|
|
|
|
PMON> m 80020000 -s even Set memory starting at 0x80020000 to
|
|
the string "even."
|
|
|
|
|
|
PMON> m 80030100 -s "PMON 2000"<br> Set memory starting at 0x80030100 to
|
|
the multiple-word string "PMON 2000."
|
|
|
|
</pre>
|
|
</blockquote>
|
|
<h2>See Also</h2>
|
|
|
|
<dl>
|
|
<dd><a href="c_fill.htm">fill command</a>, <a href="c_l.htm">l command</a>, <a href="c_d.htm">d command</a>, and <a href="c_dump.htm">dump command</a>. </dd>
|
|
</dl>
|
|
|
|
<hr>
|
|
<p> <b>Navigation:</b> <a href="pmon.htm">Document Home</a> | <a href="doctoc.htm">Document
|
|
Contents</a> | <a href="docindex.htm">Document Index</a> </p>
|
|
<p><!--$Id: c_m.htm,v 1.1.1.1 2006/09/14 01:59:06 root Exp $ --></p>
|
|
</body>
|
|
</html>
|
|
|