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

📄 3.htm

📁 浙江大学计算机学院计算机组成教材《计算机组成与设计》(潘学增)的课堂教学课件。
💻 HTM
📖 第 1 页 / 共 2 页
字号:
                                      
16位</font></strong></p>       
       
<p><strong><font color="#000000" size="4">举个例子说明:</font></strong></p>     
     
<p><strong><font color="#000000" size="4">lw&nbsp;&nbsp;&nbsp; $8,Astart($19)        
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 暂时寄存器$8=A[i],并假设Astart=1200.</font></strong></p>     
     
<p><strong><font color="#000000" size="4">值得注意的是:第一个操作数是寄存器$19,第二个操作数是寄存器$8;数组的起始地址是Astart,  
称为表头地址.</font></strong></p>    
    
<p><strong><font color="#000000" size="4">所以这条指令的格式是:</font></strong></p>    
    
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">    
  <tr>    
    <td width="16%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 35&nbsp;</font> </strong></td>       
    <td width="16%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $19        
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font> </strong></td>       
    <td width="17%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $8</font></strong></td>       
    <td width="51%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        
    1200</font></strong></td>       
  </tr>       
</table>       
       
<p><strong><font color="#000000" size="4">让我们来总结一下指令格式:</font></strong></p>     
     
<p><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       
<img border="0" src="../images/sub.gif" width="26" height="27"> MIPS machine language&nbsp;&nbsp;</font> </strong></p>       
       
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">       
  <tr>       
    <td width="11%" bgcolor="#008000"><strong><font color="#000000" size="4">Name</font></strong></td>     
    <td width="7%" bgcolor="#008000"><strong><font color="#000000" size="4">Format</font> </strong></td>     
    <td width="46%" colspan="6" bgcolor="#008000"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        
    Example</font></strong></td>       
    <td width="36%" bgcolor="#008000"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        
    Comments</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">add</font></strong></td>     
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; R</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 0</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 2</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 3</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 1</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 0</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp; 32</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add&nbsp; $1,$2,$3</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">sub</font></strong></td>     
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; R</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 0</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 2</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 3</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 1</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 0</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp; 34</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sub&nbsp; $1,$2,$3</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">lw</font></strong></td>     
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; I</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 35</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 2</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 1</font></strong></td>       
    <td width="24%" colspan="3"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        
    100</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lw&nbsp;&nbsp; $1,100($2)</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">sw</font></strong></td>     
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; I</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 43</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 2</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; 1</font></strong></td>       
    <td width="24%" colspan="3"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        
    100</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sw&nbsp;&nbsp; $1,100($2)</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">Field size</font> </strong></td>       
    <td width="7%"><font color="#000000" size="4"> </font></td>
    <td width="7%"><strong><font color="#000000" size="4">6 bits</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">5 bits</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">5 bits</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">5 bits</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">5 bits</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">6 bits</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp; All MIPS instructions 32 bits</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">Format R</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; R</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; op</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; rs</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; rt</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; rd</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp; shamt</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp; funct</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp; Arithmetic instruction format</font></strong></td>       
  </tr>       
  <tr>       
    <td width="11%"><strong><font color="#000000" size="4">Format I</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; I</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; op</font></strong></td>       
    <td width="8%"><strong><font color="#000000" size="4">&nbsp;&nbsp; rs</font></strong></td>       
    <td width="7%"><strong><font color="#000000" size="4">&nbsp;&nbsp; rt</font></strong></td>       
    <td width="24%" colspan="3"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        
    address</font></strong></td>       
    <td width="36%"><strong><font color="#000000" size="4">&nbsp;&nbsp;&nbsp;&nbsp; Data transfer format</font></strong></td>       
  </tr>       
</table>       
       
<p><font color="#000000"> </font></p>

<p> </p>
</body>
</html>

⌨️ 快捷键说明

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