博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【2014-11-22】《The Hardware/Software Interface》– Section 4
阅读量:6633 次
发布时间:2019-06-25

本文共 604 字,大约阅读时间需要 2 分钟。

  1. Moving Data: IA32
  • movx Source, Dest
  • x is one of {b(1-byte), w(2-byte), l(4-byte)}
  • Operand Types
    • Immediate: Constant integer data
      • Example: $0x400, $-533
      • Like C constant, but prefixed with‘$’
    • Register; one of 8 integer registers
      • Example: %eax, %edx
      • But %esp and %ebp reserved for special use
    • Memory: 4 consecutive bytes of memory at address given by register
      • Simplest example: (%eax)
      • Various other “address modes”
Memory Addressing Modes: Basic
  1. Indirect (R) Mem[Reg[R]]
  2. Displacement D(R) Mem[Reg[R]+D]
Conditionals and Control Flow Loops Switch Statements

转载于:https://www.cnblogs.com/sjtujoe/p/4115462.html

你可能感兴趣的文章