public static enum RegisterConstants.GPR extends Enum<RegisterConstants.GPR> implements RegisterConstants.IntelMachineRegister
Enum Constant and Description |
---|
EAX |
EBP |
EBX |
ECX |
EDI |
EDX |
EIP |
ESI |
ESP |
R10 |
R11 |
R12 |
R13 |
R14 |
R15 |
R8 |
R9 |
Modifier and Type | Field and Description |
---|---|
private static RegisterConstants.GPR[] |
vals
Local copy of the backing array.
|
Modifier and Type | Method and Description |
---|---|
static RegisterConstants.GPR |
getForOpcode(int opcode)
Convert encoded value representing an opcode into the GPR to represent it
|
boolean |
isValidAs8bitRegister()
Intel have two flavours of 8bit opcodes, ones that operate on 32bit
registers and ones that operate on 8bit registers.
|
static RegisterConstants.GPR |
lookup(int num)
Convert encoded value into the GPR it represents
|
boolean |
needsREXprefix() |
byte |
value() |
byte |
valueForOpcode() |
static RegisterConstants.GPR |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegisterConstants.GPR[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegisterConstants.GPR EAX
public static final RegisterConstants.GPR ECX
public static final RegisterConstants.GPR EDX
public static final RegisterConstants.GPR EBX
public static final RegisterConstants.GPR ESP
public static final RegisterConstants.GPR EBP
public static final RegisterConstants.GPR ESI
public static final RegisterConstants.GPR EDI
public static final RegisterConstants.GPR R8
public static final RegisterConstants.GPR R9
public static final RegisterConstants.GPR R10
public static final RegisterConstants.GPR R11
public static final RegisterConstants.GPR R12
public static final RegisterConstants.GPR R13
public static final RegisterConstants.GPR R14
public static final RegisterConstants.GPR R15
public static final RegisterConstants.GPR EIP
private static final RegisterConstants.GPR[] vals
public static RegisterConstants.GPR[] values()
for (RegisterConstants.GPR c : RegisterConstants.GPR.values()) System.out.println(c);
public static RegisterConstants.GPR valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte value()
value
in interface MachineRegister
value
in interface RegisterConstants.IntelMachineRegister
public byte valueForOpcode()
public boolean needsREXprefix()
needsREXprefix
in interface RegisterConstants.IntelMachineRegister
public boolean isValidAs8bitRegister()
public static RegisterConstants.GPR lookup(int num)
num
- encoded valuepublic static RegisterConstants.GPR getForOpcode(int opcode)
opcode
- encoded value