edu.ustc.cs.compile.arch.x86
类 X86Register

java.lang.Object
  继承者 edu.ustc.cs.compile.arch.x86.X86Register
所有已实现的接口:
Register

public class X86Register
extends java.lang.Object
implements Register

Provides a representation of registers for x86.

Following is a list of registers and their representation in this class(which could be used in the form of X86Register.XXX):
eax EAX
ebx EBX
ecx ECX
edx EDX
and so on...

To represent an X86 register in our assembly representation, we should wrap the register in Instruct.Operand. To identify an X86 register, we use the form of "X86Register.RegName". The following statement sequence shows an example of how to declare an register as an assembly instruct operand:
Instruct.Operand opnd = new Instruct.Operand(X86Register.EBX, new Integer(12));
The above statement builds up an assembly operand, using %ebx with offset 12, that is, "12(%eax)". Then this operand can be used in building up an Instruct to form a complete AT&T X86 assembly instruction.
See also: MIPSRegister


字段摘要
static X86Register CS
          X86 Register: %cs
static X86Register DS
          X86 Register: %ds
static X86Register EAX
          X86 Register: %eax
static X86Register EBP
          X86 Register: %ebp
static X86Register EBX
          X86 Register: %ebx
static X86Register ECX
          X86 Register: %ecx
static X86Register EDI
          X86 Register: %edi
static X86Register EDX
          X86 Register: %edx
static X86Register ES
          X86 Register: %es
static X86Register ESI
          X86 Register: %esi
static X86Register ESP
          X86 Register: %esp
static X86Register FS
          X86 Register: %fs
static X86Register GS
          X86 Register: %gs
static X86Register SS
          X86 Register: %ss
 
构造函数摘要
X86Register()
           
 
方法摘要
 java.lang.String toString()
          Returns a string representation of this Register.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

EAX

public static final X86Register EAX
X86 Register: %eax


EBX

public static final X86Register EBX
X86 Register: %ebx


ECX

public static final X86Register ECX
X86 Register: %ecx


EDX

public static final X86Register EDX
X86 Register: %edx


EDI

public static final X86Register EDI
X86 Register: %edi


ESI

public static final X86Register ESI
X86 Register: %esi


EBP

public static final X86Register EBP
X86 Register: %ebp


ESP

public static final X86Register ESP
X86 Register: %esp


CS

public static final X86Register CS
X86 Register: %cs


DS

public static final X86Register DS
X86 Register: %ds


ES

public static final X86Register ES
X86 Register: %es


SS

public static final X86Register SS
X86 Register: %ss


FS

public static final X86Register FS
X86 Register: %fs


GS

public static final X86Register GS
X86 Register: %gs

构造函数详细信息

X86Register

public X86Register()
方法详细信息

toString

public java.lang.String toString()
从接口 Register 复制的描述
Returns a string representation of this Register.

指定者:
接口 Register 中的 toString
覆盖:
java.lang.Object 中的 toString
返回:
a string representation of this Register.