fcml
1.2.2
|
Describes an instruction. More...
#include <fcml_common.hpp>
Public Member Functions | |
Instruction () | |
Creates an empty instruction. More... | |
Instruction (const fcml_cstring &mnemonic) | |
Creates an empty instruction for given mnemonic. More... | |
void | add (const Operand &operand) |
Adds a new operand to the instruction. More... | |
void | setOperand (const Operand &operand, fcml_int index) |
Sets a new oeprand for the instruction at given index. More... | |
const Operand & | operator[] (fcml_int index) const |
Gets reference to the constant operand at given index. More... | |
Operand & | operator[] (fcml_int index) |
Gets reference to the operand at given index. More... | |
void | clean () |
Cleans the instruction by removing all operands from it. More... | |
const Condition & | getCondition () const |
Gets a pointer to the constant condition associated with the instruction. More... | |
Condition & | getCondition () |
Gets a pointer to the condition associated with the instruction. More... | |
Instruction & | setCondition (const Condition &condition) |
Sets a new condition for the instruction. More... | |
fcml_hints | getHints () const |
Gets instruction level hits associated with the instruction. More... | |
Instruction & | setHints (fcml_hints hints) |
Sets new instruction hints. More... | |
bool | isConditional () const |
Gets true if it's a conditional instruction. More... | |
Instruction & | setConditional (bool isConditional) |
Sets conditional flag for the instruction. More... | |
const fcml_cstring & | getMnemonic () const |
Gets the mnemonic associated with the instruction. More... | |
Instruction & | setMnemonic (const fcml_cstring &mnemonic) |
Sets a new mnemonic for the instruction. More... | |
fcml_int | getOperandsCount () const |
Gets number of operands associated with the instruction. More... | |
Instruction & | setOperandsCount (fcml_int operandsCount) |
Sets number of operands available in the instruction. More... | |
fcml_prefixes | getPrefixes () const |
Gets prefixes associated with the instruction. More... | |
Instruction & | setPrefixes (fcml_prefixes prefixes) |
Sets a new set of prefixes for the instruction. More... | |
bool | isLock () const |
Returns true if lock prefix is set. More... | |
bool | isRepne () const |
Returns true if repne prefix is set. More... | |
bool | isRepnz () const |
Returns true if lock repnz is set. More... | |
bool | isRep () const |
Returns true if rep prefix is set. More... | |
bool | isRepe () const |
Returns true if repe prefix is set. More... | |
bool | isRepz () const |
Returns true if repz prefix is set. More... | |
bool | isXAcquire () const |
Returns true if xacquire prefix is set. More... | |
bool | isXRelease () const |
Returns true if xrelease prefix is set. More... | |
bool | isBranchHint () const |
Returns true if branch_hint prefix is set. More... | |
bool | isNoBranchHint () const |
Returns true if no_branch_hint prefix is set. More... | |
bool | isFarPointer () const |
Returns true if far pointer hint is set. More... | |
bool | isNearPointer () const |
Returns true if near pointer hint is set. More... | |
bool | isLongFormPointer () const |
Returns true if long form pointer hint is set. More... | |
bool | isIndirectPointer () const |
Returns true if indirect pointer hint is set. More... | |
bool | isDirectPointer () const |
Returns true if direct pointer hint is set. More... | |
|
inline |
Creates an empty instruction.
|
inline |
Creates an empty instruction for given mnemonic.
mnemonic | The mnemonic for the newly created instruction. |
|
inline |
Adds a new operand to the instruction.
operand | The operand to be added to the instruction. |
IllegalStateException | No more operands allowed. |
|
inline |
Cleans the instruction by removing all operands from it.
|
inline |
Gets a pointer to the constant condition associated with the instruction.
|
inline |
Gets a pointer to the condition associated with the instruction.
|
inline |
Gets instruction level hits associated with the instruction.
|
inline |
Gets the mnemonic associated with the instruction.
|
inline |
Gets number of operands associated with the instruction.
|
inline |
Gets prefixes associated with the instruction.
|
inline |
Returns true if branch_hint prefix is set.
|
inline |
Gets true if it's a conditional instruction.
|
inline |
Returns true if direct pointer hint is set.
|
inline |
Returns true if far pointer hint is set.
|
inline |
Returns true if indirect pointer hint is set.
|
inline |
Returns true if lock prefix is set.
|
inline |
Returns true if long form pointer hint is set.
See manual for more information about this hint.
|
inline |
Returns true if near pointer hint is set.
|
inline |
Returns true if no_branch_hint prefix is set.
|
inline |
Returns true if rep prefix is set.
|
inline |
Returns true if repe prefix is set.
|
inline |
Returns true if repne prefix is set.
|
inline |
Returns true if lock repnz is set.
|
inline |
Returns true if repz prefix is set.
|
inline |
Returns true if xacquire prefix is set.
|
inline |
Returns true if xrelease prefix is set.
|
inline |
Gets reference to the constant operand at given index.
index | The operand index. |
|
inline |
Gets reference to the operand at given index.
index | The operand index. |
|
inline |
Sets a new condition for the instruction.
condition | The condition to be set for the instruction. |
|
inline |
Sets conditional flag for the instruction.
isConditional | Set to true in order to mark instruction as conditional one. |
|
inline |
Sets new instruction hints.
hints | The hints to be set. |
|
inline |
Sets a new mnemonic for the instruction.
mnemonic | The new mnemonic. |
|
inline |
Sets a new oeprand for the instruction at given index.
operand | The operand to be set. |
index | The index operand should be set at. |
IllegalStateException | Operand's number exceeds maximal number of operands allowed. |
|
inline |
Sets number of operands available in the instruction.
operandsCount | Number of operands. |
|
inline |
Sets a new set of prefixes for the instruction.
prefixes | The set of prefixes to be set for the instruction. |