⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c_fill.htm

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 HTM
字号:
<title>The fill Command</title><h1>fill</h1><!--INDEX "fill command" "fill memory" -->The fill command writes a hexadecimal pattern or string to a block of memory.<p></dl><h2>Format</h2><dl><dd>The format for the fill command is:<p><pre>fill from to {val|-s str}-</pre>where:<p><table><tr><td>from	</td><td>is the base address for the fill operation.</td></tr><tr><td>to	</td><td>is the end address for the fill operation.</td></tr><tr><td>val	</td><td>is the hexadecimal value of the byte that is written to the area 	to be filled.</td></tr><tr><td>-s str	</td><td>specifies that the memory block should be filled with an ASCII string rather than a particular value. String str is the ASCII string to be written to the memory block during the fill operation if the -s parameter is specified.</td></tr></table><p></dl><h2>Functional Description</h2><dl><dd>The fill command fills an area of memory with a specified hexadecimal pattern or repeating string. The pattern can be a single byte or multiple bytes. For the fill command to work correctly, to must be greater than from. If the -s option is specified, the next parameter is interpreted as an ASCII string. Multiple-word strings may be specified by enclosing them in quotes.<p>For example, to clear an area of memory from 0xa0020000 to 0xa0021000, enter:<p><pre>PMON> fill a0020000 a0021000 0</pre>To fill an area of memory from 0xa0020000 to 0xa00210000 with the string of values 0x41, 0x42, 0x43, 0x44, and 0x45, enter:<p><pre>PMON> fill a0020000 a00210000 41 42 43 44 45 </pre>To fill an area of memory from 0xa0020000 to 0xa00210000 with the ASCII string "hello world," enter:<p><pre>PMON> fill a0020000 a0021000 -s "hello world" </pre></dl><h2>Files</h2><dl><dd>The fill command is located in <a href="../mon/fill.c">mon/fill.c</a>.</dl><h2>See Also</h2><dl><dd><a href="c_m.htm">m command</a>.</dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -