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

📄 c_l.htm

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 HTM
字号:
<title>The l Command</title><h1>l</h1><!--INDEX "l command" disassemble "list memory" MIPS16 TinyRISC -->The l command disassembles instructions from memory.<p></dl><h2>Format</h2><dl><dd>The format for the l command is:<p><pre>l [-bctT] [adr [cnt]]</pre>where:<p><table><tr><td>-b	</td><td>lists only branches.</td></tr><tr><td>-c	</td><td>lists only calls.</td></tr><tr><td>-t	</td><td>lists the trace buffer.</td></tr><tr><td>-T	</td><td>assume TinyRISC (MIPS16) instructions.</td></tr><tr><td>adr	</td><td>is the base address from which to disassemble instructions.</td></tr><tr><td>cnt	</td><td>is the number of lines to disassemble.</td></tr></table><p>When invoking this command with no options, disassembly starts at the address in the EPC register and is output to the more command.<p></dl><h2>Functional Description</h2><dl><dd>The l command disassembles the memory contents, starting either at theEPC register's current value or at the specified address. The output ofthis command is passed to the more command, letting the user view onescreenful of disassembled output at a time. Optionally, the user canspecify a count value, which limits the number of disassembled lines tothat number.  <p>The regstyle Variable <p>The regstyle environment variable determines whether the <ahref="mondef.htm">Monitor</a> displays hardware or software registernames. Hardware register names are simply $0 through $31. Softwareregisters are defined by the MIPS software conventions. Set regstyle to"hw" for hardware register names. Set regstyle to "sw" for softwareregister names.  <p>Examples illustrating the use of the l command follow.<p><pre>PMON> set regstyle sw 			Normally the default. PMON> l 9fc00240Pmon+0x240 3c09a07f lui 	t1,0xa07f Pmon+0x244 3c08003c lui 	t0,0x3cPmon+0x248 3529ff20 ori 	t1,t1,0xff20 Pmon+0x24c 3508c62f ori 	t0,t0,0xc62f Pmon+0x250 ad280000 sw 		t0,0(t1) Pmon+0x254 3c09a07f lui 	t1,0xa07f Pmon+0x258 3529ff10 ori 	t1,t1,0xff10 Pmon+0x25c 24080025 addiu 	t0,zero,0x25 Pmon+0x260 ad280000 sw 		t0,0(t1) Pmon+0x264 3c020040 lui 	v0,0x40 PMON> set regstyle hw PMON> l 9fc00264 BPmon+0x264 3c020040 lui 	$2,0x40 Pmon+0x268 40826000 mtc0 	$2,$12 Pmon+0x26c 40806800 mtc0 	$0,$13 Pmon+0x270 3c1d8001 lui 	$29,0x8001Pmon+0x274 27bd8b40 addiu 	$29,$29,0x8b40 Pmon+0x278 3c01a000 lui 	$1,0xa000 Pmon+0x27c 03a1e825 or 		$29,$29,$1Pmon+0x280 0ff005bc jal 	flush_cache Pmon+0x284 24040000 addiu 	$4,$0,0x0 Pmon+0x288 0ff005bc jal 	flush_cachePmon+0x28c 24040001 addiu 	$4,$0,0x1</pre></dl><h2>Files</h2><dl><dd>The l command is located in <a href="../mon/dis.c">mon/dis.c</a>.</dl><h2>See Also</h2><dl><dd><a href="c_d.htm">d command</a>,<a href="c_m.htm">m command</a>,<a href="c_dump.htm">dump command</a>,<a href="c_more.htm">more</a> and <a href="tools/rdsrec.htm">rdsrec</a> commands.</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 + -