Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 683 Bytes

汇编.md

File metadata and controls

34 lines (32 loc) · 683 Bytes

数据传输指令

  1. mov
  2. push
  3. pop
  4. pushf 标志位入栈
  5. popf 设置标志位
  6. xchg reg,[...] 交换寄存器和内存值,位数一致

算术运算指令

  1. add
  2. sub
  3. adc 加法运算+CF
  4. sbb 减法运算-CF
  5. inc
  6. dec
  7. cmp
  8. imul 有符号 mul无符号 ax/al低位,dx/ah高位
  9. idiv 有符号 div无符号 ax/al低位或商,dx/ah高位或余数
  10. aaa 压缩al低四位 09 保留低四位,清除高四位 al第四位 1015,ax+6 然后保留第四位清除高四位

逻辑指令

  1. and
  2. or
  3. not
  4. xor 异或 0 0=0 1 0=1 0 1=1 1 1=0
  5. test 执行and但不改变
  6. shl
  7. shr
  8. sal
  9. sar
  10. rol
  11. ror
  12. rcl
  13. rcr