CS/컴퓨터 구조

2.17 Real Stuff : x86 Instruction

sliver__ 2023. 10. 31. 21:05
728x90

x86 Registers and Data Addressing Modes

 

The 80386(i386) register sets

GPR : General Purpose register sets

 

Instruction types for the arithmetic, logical, and data transfer instructions.
x86 32-bit addressing modes with register restrictions and the equivalent MIPS code.

8, 16, 32bits를 모두 지원하므로 default large size를 설정한다.

변수 중 가장 큰 사이즈로 설정하여 사용한다.

x86 interger operation은 4가지로 분류됨

  1. Data movement instructions, including move, push, and pop
  2. Arithmetic and logic instructions, including test, integer, and decimal arithmetic operations
  3. Control flow, including conditional branches, unconditional jumps, calls, and returns
  4. String instructions, including string move and string compare
Some typical operations on the x86.

 

Typical x86 instruction formats.

 

The encoding of the first address specifier of the x86: mod, reg, r/m.

 

728x90