Overview of the IA-32 command system

IA-32 Architecture

IA is the abbreviation of Intel Architecture

  • 8 GPR (General Purpose Register, general purpose register)
    a flag register EFLAGs
    PC is the EIP register, which stores the instruction address
  • Addressable space 4GB
  • The instruction format becomes longer and the opcode becomes longer
    1

Information to be given in the command:

Operation nature (opcode)
source operand 1 or/and source operand 2 (immediate value, register number, storage address)
destination operand address (register number, storage address)
The description of the storage address is related to the data structure of the operand!


IA-32 register organization

2

  • flag register
6个条件标志
–OF、SF、ZF、CF各是什么标志(条件码)
–AF:辅助进位标志(BCD码运算时才有意义)
–PF:奇偶标志
•3个控制标志
–DF(Direction Flag):方向标志(自动变址方向是增还是减)
–IF(Interrupt Flag):中断允许标志 (仅对外部可屏蔽中断有用)
–TF(Trap Flag):陷阱标志(是否是单步跟踪状态)

3



IA-32 addressing mode

Six 16-bit segment registers get segment base address

  • Addressing Modes in Protected Mode
    4
    5



IA-32 machine instruction format

6


Reference: NTU Computer System Fundamentals (1)

Guess you like

Origin blog.csdn.net/weixin_61631200/article/details/127340321