fcml  1.2.2
Public Types | Public Member Functions | List of all members
fcml::InstructionPrefixDetails Class Reference

Instruction prefix. More...

#include <fcml_disassembler.hpp>

Public Types

enum  PrefixType {
  PT_GROUP_UNKNOWN = FCML_PT_GROUP_UNKNOWN,
  PT_GROUP_1 = FCML_PT_GROUP_1,
  PT_GROUP_2 = FCML_PT_GROUP_2,
  PT_GROUP_3 = FCML_PT_GROUP_3,
  PT_GROUP_4 = FCML_PT_GROUP_4,
  PT_REX = FCML_PT_REX,
  PT_VEX = FCML_PT_VEX,
  PT_XOP = FCML_PT_XOP,
  PT_EVEX = FCML_PT_EVEX
}
 Type of the instruction prefix. More...
 

Public Member Functions

bool isMandatoryPrefix () const
 Returns true if it's a mandatory prefix. More...
 
void setMandatoryPrefix (bool mandatoryPrefix)
 Sets mandatory prefix flag for the prefix. More...
 
fcml_uint8_t getPrefix () const
 Gets the prefix byte. More...
 
void setPrefix (fcml_uint8_t prefix)
 Sets the prefix byte. More...
 
PrefixType getPrefixType () const
 Gets the prefix type. More...
 
void setPrefixType (PrefixType prefixType)
 Sets a new prefix type. More...
 
const fcml_uint8_t * getAvxBytes () const
 Gets the second and third bytes of the XOP/VEX prefix. More...
 
fcml_uint8_t * getAvxBytes ()
 Gets the second and third bytes of the XOP/VEX prefix. More...
 

Detailed Description

Instruction prefix.

Since
1.1.0

Member Enumeration Documentation

◆ PrefixType

Type of the instruction prefix.

Since
1.1.0

Member Function Documentation

◆ getAvxBytes() [1/2]

const fcml_uint8_t* fcml::InstructionPrefixDetails::getAvxBytes ( ) const
inline

Gets the second and third bytes of the XOP/VEX prefix.

Returns
A pointer to the VEX/XOP bytes.
Since
1.2.0

◆ getAvxBytes() [2/2]

fcml_uint8_t* fcml::InstructionPrefixDetails::getAvxBytes ( )
inline

Gets the second and third bytes of the XOP/VEX prefix.

Returns
A pointer to the VEX/XOP bytes.
Since
1.2.0

◆ getPrefix()

fcml_uint8_t fcml::InstructionPrefixDetails::getPrefix ( ) const
inline

Gets the prefix byte.

Returns
The prefix byte.
Since
1.1.0

◆ getPrefixType()

PrefixType fcml::InstructionPrefixDetails::getPrefixType ( ) const
inline

Gets the prefix type.

Returns
The prefix byte.
Since
1.1.0

◆ isMandatoryPrefix()

bool fcml::InstructionPrefixDetails::isMandatoryPrefix ( ) const
inline

Returns true if it's a mandatory prefix.

Returns
True if it's a mandatory prefix.
Since
1.1.0

◆ setMandatoryPrefix()

void fcml::InstructionPrefixDetails::setMandatoryPrefix ( bool  mandatoryPrefix)
inline

Sets mandatory prefix flag for the prefix.

Parameters
mandatoryPrefixSet to true in order to make the prefix mandatory one.
Since
1.1.0

◆ setPrefix()

void fcml::InstructionPrefixDetails::setPrefix ( fcml_uint8_t  prefix)
inline

Sets the prefix byte.

Parameters
prefixThe prefix byte.
Since
1.1.0

◆ setPrefixType()

void fcml::InstructionPrefixDetails::setPrefixType ( PrefixType  prefixType)
inline

Sets a new prefix type.

Parameters
prefixTypeThe prefix byte to be set.
Since
1.1.0

The documentation for this class was generated from the following file: