4-8.htm
来自「浙江大学计算机学院计算机组成教材《计算机组成与设计》(潘学增)的课堂教学课件。」· HTM 代码 · 共 650 行 · 第 1/4 页
HTM
650 行
cond.</font></td>
</tr>
<tr>
<td width="145" height="16"><font color="#000000" size="4">branch on FP flase</font></td>
<td width="138" height="16"><font color="#000000" size="4">bclf 100</font></td>
<td width="144" height="16"><font color="#000000" size="4">if(cond==0) go to
PC+4+100</font></td>
<td width="235" height="16"><font color="#000000" size="4">PC relative branch if
not cond.</font></td>
</tr>
<tr>
<td width="145" height="30"><font color="#000000" size="4">FP compare single<br>
(eq,ne,lt,le,gt,ge)</font></td>
<td width="138" height="30"><font color="#000000" size="4">c.lt.s $f2,$f4</font></td>
<td width="144" height="30"><font color="#000000" size="4">if($f2<$f4)cond=1;else
cond=0</font></td>
<td width="235" height="30"><font color="#000000" size="4">Floating-Pt.compare less
than single precision</font></td>
</tr>
<tr>
<td width="145" height="31"><font color="#000000" size="4">FP comp.double<br>
(eq,ne,lt,le,gt,ge)</font></td>
<td width="138" height="31"><font color="#000000" size="4">c.lt.d $f2,$f4</font></td>
<td width="144" height="31"><font color="#000000" size="4">if($f2<$f4)cond=<br>
1;else cond=0</font></td>
<td width="235" height="31"><font color="#000000" size="4">Floating-Pt.compare less
than double precision</font></td>
</tr>
</table>
</center>
</div>
<p align="center"><b><font color="#000000" size="4">MIPS floating-point machine language</font></b></p>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" width="716" height="194" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="82" height="14">
<p align="center"><font color="#000000" size="4">Name</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">Format</font></td>
<td width="340" height="14" colspan="6">
<p align="center"><font color="#000000" size="4">Example</font></td>
<td width="227" height="14">
<p align="center"><font color="#000000" size="4">Comments</font></td>
</tr>
<tr>
<td width="82" height="17"><font color="#000000" size="4">add.s</font></td>
<td width="57" height="17">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="17">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="17">
<p align="center"><font color="#000000" size="4">16</font></td>
<td width="52" height="17">
<p align="center"><font color="#000000" size="4">6</font></td>
<td width="48" height="17">
<p align="center"><font color="#000000" size="4">4</font></td>
<td width="60" height="17">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="54" height="17">
<p align="center"><font color="#000000" size="4">0</font></td>
<td width="227" height="17"><font color="#000000" size="4">add.s $f2,$f4,$f6</font></td>
</tr>
<tr>
<td width="82" height="16"><font color="#000000" size="4">sub.s</font></td>
<td width="57" height="16">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="16">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="16">
<p align="center"><font color="#000000" size="4">16</font></td>
<td width="52" height="16">
<p align="center"><font color="#000000" size="4">6</font></td>
<td width="48" height="16">
<p align="center"><font color="#000000" size="4">4</font></td>
<td width="60" height="16">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="54" height="16">
<p align="center"><font color="#000000" size="4">1</font></td>
<td width="227" height="16"><font color="#000000" size="4">sub.s $f2,$f4,$f6</font></td>
</tr>
<tr>
<td width="82" height="13"><font color="#000000" size="4">mul.s</font></td>
<td width="57" height="13">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="13">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="13">
<p align="center"><font color="#000000" size="4">16</font></td>
<td width="52" height="13">
<p align="center"><font color="#000000" size="4">6</font></td>
<td width="48" height="13">
<p align="center"><font color="#000000" size="4">4</font></td>
<td width="60" height="13">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="54" height="13">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="227" height="13"><font color="#000000" size="4">mul.s $f2,$f4,$f6</font></td>
</tr>
<tr>
<td width="82" height="16"><font color="#000000" size="4">div.s</font></td>
<td width="57" height="16">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="16">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="16">
<p align="center"><font color="#000000" size="4">16</font></td>
<td width="52" height="16">
<p align="center"><font color="#000000" size="4">6</font></td>
<td width="48" height="16">
<p align="center"><font color="#000000" size="4">4</font></td>
<td width="60" height="16">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="54" height="16">
<p align="center"><font color="#000000" size="4">3</font></td>
<td width="227" height="16"><font color="#000000" size="4">div.s $f2,$f4,$f6</font></td>
</tr>
<tr>
<td width="82" height="14"><font color="#000000" size="4">add.d</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="14">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="52" height="14">
<p align="center"><font color="#000000" size="4">6</font></td>
<td width="48" height="14">
<p align="center"><font color="#000000" size="4">4</font></td>
<td width="60" height="14">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="54" height="14">
<p align="center"><font color="#000000" size="4">0</font></td>
<td width="227" height="14"><font color="#000000" size="4">add.d $f2,$f4,$f6</font></td>
</tr>
<tr>
<td width="82" height="14"><font color="#000000" size="4">sub.d</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="14">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="52" height="14">
<p align="center"><font color="#000000" size="4">6</font></td>
<td width="48" height="14">
<p align="center"><font color="#000000" size="4">4</font></td>
<td width="60" height="14">
<p align="center"><font color="#000000" size="4">2</font></td>
<td width="54" height="14">
<p align="center"><font color="#000000" size="4">1</font></td>
<td width="227" height="14"><font color="#000000" size="4">sub.d $f2,$f4,$f6</font></td>
</tr>
<tr>
<td width="82" height="14"><font color="#000000" size="4">mul.d</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">R</font></td>
<td width="59" height="14">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="57" height="14">
<p align="center"><font color="#000000" size="4">17</font></td>
<td width="52" height="14">
<p align="center"><font color="#000000" size="4">6</font></td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?