| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
code |
protected String |
label |
protected int |
offset |
| Constructor and Description |
|---|
AbstractInstruction() |
| Modifier and Type | Method and Description |
|---|---|
protected byte |
b1(int value) |
protected byte |
b2(int value) |
protected byte |
b3(int value) |
protected byte |
b4(int value) |
String |
getLabel() |
int |
getOffset() |
int |
getOpCode() |
void |
setLabel(String label) |
void |
setOffset(int offset) |
int |
size() |
byte[] |
toCode() |
protected byte[] |
toCode(int opcode) |
protected byte[] |
toCode(int opcode,
byte imm8) |
protected byte[] |
toCode(int opcode,
int imm32) |
protected byte[] |
toCode(int opcode,
ModRM modrm) |
protected byte[] |
toCode(int opcode,
ModRM modrm,
byte imm8) |
protected byte[] |
toCode(int opcode,
ModRM modrm,
byte disp8,
int imm32) |
protected byte[] |
toCode(int opcode,
ModRM modrm,
int imm32) |
protected byte[] |
toCode(int opcode,
ModRM modrm,
int disp32,
int imm32) |
protected byte[] |
toCode(int opcode,
ModRM modrm,
SIB sib,
byte imm8) |
protected byte[] |
toCode(int opcode,
ModRM modrm,
SIB sib,
int imm32) |
static String |
toHexString(byte value,
boolean showSign) |
static String |
toHexString(int value,
boolean showSign) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoIntelAssemblyprotected byte[] code
protected int offset
protected String label
public int size()
size in interface Instructionpublic byte[] toCode()
toCode in interface Instructionpublic int getOpCode()
public void setOffset(int offset)
public int getOffset()
public void setLabel(String label)
public String getLabel()
protected byte[] toCode(int opcode)
protected byte[] toCode(int opcode,
ModRM modrm)
protected byte[] toCode(int opcode,
byte imm8)
protected byte[] toCode(int opcode,
int imm32)
protected byte[] toCode(int opcode,
ModRM modrm,
byte imm8)
protected byte[] toCode(int opcode,
ModRM modrm,
int imm32)
protected byte[] toCode(int opcode,
ModRM modrm,
int disp32,
int imm32)
protected byte[] toCode(int opcode,
ModRM modrm,
byte disp8,
int imm32)
protected byte b1(int value)
protected byte b2(int value)
protected byte b3(int value)
protected byte b4(int value)
public static String toHexString(int value, boolean showSign)
public static String toHexString(byte value, boolean showSign)
Copyright © 2018. All Rights Reserved.