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

📄 lesson301.htm

📁 为所有对破解感兴趣的朋友准备的礼物。希望大家能够喜欢。
💻 HTM
📖 第 1 页 / 共 2 页
字号:
          CDQ    双字扩展.    (把EAX中的字的符号扩展到EDX中去) 
  <br>
  <br>
  三、逻辑运算指令 <br>
  ─────────────────────────────────────── <br>
  &nbsp; &nbsp; &nbsp; &nbsp; AND&nbsp; &nbsp; 与运算. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; OR&nbsp; &nbsp; &nbsp; 或运算. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; XOR&nbsp; &nbsp; 异或运算. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; NOT&nbsp; &nbsp; 取反. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; TEST&nbsp; &nbsp; 测试.(两操作数作与运算,仅修改标志位,不回送结果). <br>
  &nbsp; &nbsp; &nbsp; &nbsp; SHL&nbsp; &nbsp; 逻辑左移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; SAL&nbsp; &nbsp; 算术左移.(=SHL) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; SHR&nbsp; &nbsp; 逻辑右移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; SAR&nbsp; &nbsp; 算术右移.(=SHR) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ROL&nbsp; &nbsp; 循环左移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ROR&nbsp; &nbsp; 循环右移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; RCL&nbsp; &nbsp; 通过进位的循环左移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; RCR&nbsp; &nbsp; 通过进位的循环右移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 以上八种移位指令,其移位次数可达255次. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 移位一次时, 可直接用操作码.&nbsp; 如 SHL 
  AX,1. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 移位>1次时, 则由寄存器CL给出移位次数. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 如&nbsp; MOV CL,04 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SHL AX,CL 
  <br>
  <br>
  四、串指令 <br>
  ─────────────────────────────────────── <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DS:SI&nbsp; 源串段寄存器&nbsp; :源串变址. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ES:DI&nbsp; 目标串段寄存器:目标串变址. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CX&nbsp; &nbsp; &nbsp; 重复次数计数器. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AL/AX&nbsp; 扫描值. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D标志&nbsp; 0表示重复操作中SI和DI应自动增量; 1表示应自动减量. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Z标志&nbsp; 用来控制扫描或比较操作的结束. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; MOVS&nbsp; &nbsp; 串传送. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( MOVSB&nbsp; 传送字符.&nbsp; &nbsp; MOVSW&nbsp; 
  传送字.&nbsp; &nbsp; MOVSD&nbsp; 传送双字. ) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; CMPS&nbsp; &nbsp; 串比较. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( CMPSB&nbsp; 比较字符.&nbsp; &nbsp; CMPSW&nbsp; 
  比较字. ) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; SCAS&nbsp; &nbsp; 串扫描. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 把AL或AX的内容与目标串作比较,比较结果反映在标志位. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; LODS&nbsp; &nbsp; 装入串. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 把源串中的元素(字或字节)逐一装入AL或AX中. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( LODSB&nbsp; 传送字符.&nbsp; &nbsp; LODSW&nbsp; 
  传送字.&nbsp; &nbsp; LODSD&nbsp; 传送双字. ) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; STOS&nbsp; &nbsp; 保存串. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 是LODS的逆过程. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; REP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 当CX/ECX&lt;>0时重复. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; REPE/REPZ&nbsp; &nbsp; &nbsp; 当ZF=1或比较结果相等,且CX/ECX&lt;>0时重复. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; REPNE/REPNZ&nbsp; &nbsp; 当ZF=0或比较结果不相等,且CX/ECX&lt;>0时重复. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; REPC&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 当CF=1且CX/ECX&lt;>0时重复. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; REPNC&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 当CF=0且CX/ECX&lt;>0时重复. 
  <br>
  <br>
  五、程序转移指令 <br>
  ─────────────────────────────────────── <br>
  &nbsp; &nbsp; 1>无条件转移指令 (长转移) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; 无条件转移指令 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; CALL&nbsp; &nbsp; 过程调用 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; RET/RETF过程返回. <br>
  &nbsp; &nbsp; 2>条件转移指令 (短转移,-128到+127的距离内) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ( 当且仅当(SF XOR OF)=1时,OP1&lt;OP2 ) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JA/JNBE 不小于或不等于时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JAE/JNB 大于或等于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JB/JNAE 小于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JBE/JNA 小于或等于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 以上四条,测试无符号整数运算的结果(标志C和Z). <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JG/JNLE 大于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JGE/JNL 大于或等于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JL/JNGE 小于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JLE/JNG 小于或等于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 以上四条,测试带符号整数运算的结果(标志S,O和Z). <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JE/JZ&nbsp; 等于转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JNE/JNZ 不等于时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JC&nbsp; &nbsp; &nbsp; 有进位时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JNC&nbsp; &nbsp; 无进位时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JNO&nbsp; &nbsp; 不溢出时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JNP/JPO 奇偶性为奇数时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JNS&nbsp; &nbsp; 符号位为 "0" 时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JO&nbsp; &nbsp; &nbsp; 溢出转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JP/JPE&nbsp; 奇偶性为偶数时转移. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JS&nbsp; &nbsp; &nbsp; 符号位为 "1" 时转移. <br>
  &nbsp; &nbsp; 3>循环控制指令(短转移) <br>
  &nbsp; &nbsp; &nbsp; &nbsp; LOOP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CX不为零时循环. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; LOOPE/LOOPZ&nbsp; &nbsp; CX不为零且标志Z=1时循环. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; LOOPNE/LOOPNZ&nbsp; CX不为零且标志Z=0时循环. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JCXZ&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CX为零时转移. 
  <br>
  &nbsp; &nbsp; &nbsp; &nbsp; JECXZ&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ECX为零时转移. 
  <br>
  &nbsp; &nbsp; 4>中断指令 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; INT&nbsp; &nbsp; 中断指令 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; INTO&nbsp; &nbsp; 溢出中断 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; IRET&nbsp; &nbsp; 中断返回 <br>
  &nbsp; &nbsp; 5>处理器控制指令 <br>
  &nbsp; &nbsp; &nbsp; &nbsp; HLT&nbsp; &nbsp; 处理器暂停, 直到出现中断或复位信号才继续. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; WAIT&nbsp; &nbsp; 当芯片引线TEST为高电平时使CPU进入等待状态. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ESC&nbsp; &nbsp; 转换到外处理器. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; LOCK&nbsp; &nbsp; 封锁总线. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; NOP&nbsp; &nbsp; 空操作. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; STC&nbsp; &nbsp; 置进位标志位. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; CLC&nbsp; &nbsp; 清进位标志位. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; CMC&nbsp; &nbsp; 进位标志取反. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; STD&nbsp; &nbsp; 置方向标志位. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; CLD&nbsp; &nbsp; 清方向标志位. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; STI&nbsp; &nbsp; 置中断允许位. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; CLI&nbsp; &nbsp; 清中断允许位. <br>
  <br>
  六、伪指令 <br>
  ─────────────────────────────────────── <br>
  &nbsp; &nbsp; &nbsp; &nbsp; DB&nbsp; &nbsp; &nbsp; 定义字节. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; DW&nbsp; &nbsp; &nbsp; 定义字(2字节). <br>
  &nbsp; &nbsp; &nbsp; &nbsp; PROC&nbsp; &nbsp; 定义过程. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ENDP&nbsp; &nbsp; 过程结束. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; SEGMENT 定义段. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ASSUME&nbsp; 建立段寄存器寻址. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; ENDS&nbsp; &nbsp; 段结束. <br>
  &nbsp; &nbsp; &nbsp; &nbsp; END&nbsp; &nbsp; 程序结束. <br>
  <br>
</p>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#99CCFF" bordercolorlight="#99CCFF" bordercolordark="#99CCFF">
  <tr> 
    <td width="82%" class="p8" height="34">Copyright @看雪 2000 All rights reserved 
        <a href="mailto:toye@126.com">与我联系</a></td>
    <td width="10%" class="p9" height="34"><a href="index.htm" tppabs="http://toye.dihou.org/index.htm">返回<br>
      首页</a></td>
    <td width="8%" class="p8" height="34"><a href="molu.htm" tppabs="http://toye.dihou.org/molu.htm" class="p9">返回<br>
      目录</a></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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