【2014-11-22】《The Hardware/Software Interface》– Section 4

  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”
  2. image
  3. Memory Addressing Modes: Basic
    1. Indirect (R) Mem[Reg[R]]
    2. Displacement D(R) Mem[Reg[R]+D]
  4. Conditionals and Control Flow
  5. Loops
  6. Switch Statements

posted on 2014-11-22 18:04  sjtujoe  阅读(135)  评论(0编辑  收藏  举报