ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AssemblerX86::InsnDefn Class Reference

Defines static characteristics of an instruction used by the assembler and disassembler. More...

Collaboration diagram for AssemblerX86::InsnDefn:

Public Member Functions

 InsnDefn (const std::string &mnemonic, X86InstructionKind kind, unsigned compatibility, uint64_t opcode, unsigned opcode_modifiers, OperandDefn op1=od_none, OperandDefn op2=od_none, OperandDefn op3=od_none, OperandDefn op4=od_none)
 
std::string to_str () const
 
void set_location (const std::string &s)
 

Public Attributes

std::string mnemonic
 
X86InstructionKind kind
 
unsigned compatibility
 
uint64_t opcode
 
unsigned opcode_modifiers
 
std::vector< OperandDefnoperands
 
std::string location
 

Detailed Description

Defines static characteristics of an instruction used by the assembler and disassembler.

The opcode contains up to eight bytes, but leading zeros are not emitted during assembly (except when the opcode is zero, in which case a single zero byte is emitted; see ADD).

Definition at line 358 of file AssemblerX86.h.

Constructor & Destructor Documentation

AssemblerX86::InsnDefn::InsnDefn ( const std::string &  mnemonic,
X86InstructionKind  kind,
unsigned  compatibility,
uint64_t  opcode,
unsigned  opcode_modifiers,
OperandDefn  op1 = od_none,
OperandDefn  op2 = od_none,
OperandDefn  op3 = od_none,
OperandDefn  op4 = od_none 
)
inline

Definition at line 360 of file AssemblerX86.h.

References operands.

Member Function Documentation

std::string AssemblerX86::InsnDefn::to_str ( ) const
void AssemblerX86::InsnDefn::set_location ( const std::string &  s)
inline

Definition at line 370 of file AssemblerX86.h.

References location.

Member Data Documentation

std::string AssemblerX86::InsnDefn::mnemonic

Definition at line 373 of file AssemblerX86.h.

X86InstructionKind AssemblerX86::InsnDefn::kind

Definition at line 374 of file AssemblerX86.h.

Referenced by AssemblerX86::define().

unsigned AssemblerX86::InsnDefn::compatibility

Definition at line 375 of file AssemblerX86.h.

uint64_t AssemblerX86::InsnDefn::opcode

Definition at line 376 of file AssemblerX86.h.

unsigned AssemblerX86::InsnDefn::opcode_modifiers

Definition at line 377 of file AssemblerX86.h.

std::vector<OperandDefn> AssemblerX86::InsnDefn::operands

Definition at line 378 of file AssemblerX86.h.

Referenced by InsnDefn().

std::string AssemblerX86::InsnDefn::location

Definition at line 379 of file AssemblerX86.h.

Referenced by set_location().


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