miasm
Reverse engineering framework
miasm.core.cpu.cls_mn Class Reference
Inheritance diagram for miasm.core.cpu.cls_mn:
Collaboration diagram for miasm.core.cpu.cls_mn:

Public Member Functions

def guess_mnemo (cls, bs, attrib, pre_dis_info, offset)
 
def reset_class (self)
 
def init_class (self)
 
def add_pre_dis_info (self, prefix=None)
 
def getbits (cls, bs, attrib, offset_b, l)
 
def getbytes (cls, bs, offset, l)
 
def pre_dis (cls, v_o, attrib, offset)
 
def post_dis (self)
 
def check_mnemo (cls, fields)
 
def mod_fields (cls, fields)
 
def dis (cls, bs_o, mode_o=None, offset=0)
 
def fromstring (cls, text, loc_db, mode=None)
 
def dup_info (self, infos)
 
def get_cls_instance (cls, cc, mode, infos=None)
 
def asm (cls, instr, loc_db=None)
 
def filter_asm_candidates (cls, instr, candidates)
 
def value (self, mode)
 
def encodefields (self, decoded)
 
def decoded2bytes (self, result)
 
def gen_args (self, args)
 
def args2str (self)
 
def __str__ (self)
 
def parse_prefix (self, v)
 
def set_dst_symbol (self, loc_db)
 
def getdstflow (self, loc_db)
 
- Public Member Functions inherited from miasm.core.cpu.metamn
def __new__ (mcs, name, bases, dct)
 

Public Attributes

 args
 
 fields_order
 
 to_decode
 
 args_symb
 

Static Public Attributes

list args_symb = []
 
 instruction = instruction
 
int alignment = 1
 

Member Function Documentation

◆ __str__()

def miasm.core.cpu.cls_mn.__str__ (   self)
Here is the call graph for this function:

◆ add_pre_dis_info()

def miasm.core.cpu.cls_mn.add_pre_dis_info (   self,
  prefix = None 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

◆ args2str()

def miasm.core.cpu.cls_mn.args2str (   self)

◆ asm()

def miasm.core.cpu.cls_mn.asm (   cls,
  instr,
  loc_db = None 
)
Re asm instruction by searching mnemo using name and args. We then
can modify args and get the hex of a modified instruction
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_mnemo()

◆ decoded2bytes()

def miasm.core.cpu.cls_mn.decoded2bytes (   self,
  result 
)

Reimplemented in miasm.arch.msp430.arch.mn_msp430.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dis()

def miasm.core.cpu.cls_mn.dis (   cls,
  bs_o,
  mode_o = None,
  offset = 0 
)
Here is the call graph for this function:

◆ dup_info()

def miasm.core.cpu.cls_mn.dup_info (   self,
  infos 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

◆ encodefields()

def miasm.core.cpu.cls_mn.encodefields (   self,
  decoded 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

Here is the caller graph for this function:

◆ filter_asm_candidates()

def miasm.core.cpu.cls_mn.filter_asm_candidates (   cls,
  instr,
  candidates 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

Here is the caller graph for this function:

◆ fromstring()

def miasm.core.cpu.cls_mn.fromstring (   cls,
  text,
  loc_db,
  mode = None 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

Here is the call graph for this function:

◆ gen_args()

def miasm.core.cpu.cls_mn.gen_args (   self,
  args 
)
Here is the caller graph for this function:

◆ get_cls_instance()

def miasm.core.cpu.cls_mn.get_cls_instance (   cls,
  cc,
  mode,
  infos = None 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

Here is the caller graph for this function:

◆ getbits()

def miasm.core.cpu.cls_mn.getbits (   cls,
  bs,
  attrib,
  offset_b,
  l 
)

◆ getbytes()

def miasm.core.cpu.cls_mn.getbytes (   cls,
  bs,
  offset,
  l 
)

Reimplemented in miasm.arch.sh4.arch.mn_sh4, and miasm.arch.msp430.arch.mn_msp430.

Here is the caller graph for this function:

◆ getdstflow()

def miasm.core.cpu.cls_mn.getdstflow (   self,
  loc_db 
)
Here is the caller graph for this function:

◆ guess_mnemo()

def miasm.core.cpu.cls_mn.guess_mnemo (   cls,
  bs,
  attrib,
  pre_dis_info,
  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_class()

def miasm.core.cpu.cls_mn.init_class (   self)

◆ mod_fields()

def miasm.core.cpu.cls_mn.mod_fields (   cls,
  fields 
)

◆ parse_prefix()

def miasm.core.cpu.cls_mn.parse_prefix (   self,
  v 
)

◆ post_dis()

def miasm.core.cpu.cls_mn.post_dis (   self)

◆ pre_dis()

def miasm.core.cpu.cls_mn.pre_dis (   cls,
  v_o,
  attrib,
  offset 
)

Reimplemented in miasm.arch.x86.arch.mn_x86.

Here is the caller graph for this function:

◆ reset_class()

def miasm.core.cpu.cls_mn.reset_class (   self)

Reimplemented in miasm.arch.x86.arch.mn_x86, miasm.arch.msp430.arch.mn_msp430, and miasm.arch.aarch64.arch.mn_aarch64.

Here is the call graph for this function:

◆ set_dst_symbol()

def miasm.core.cpu.cls_mn.set_dst_symbol (   self,
  loc_db 
)
Here is the call graph for this function:

◆ value()

def miasm.core.cpu.cls_mn.value (   self,
  mode 
)

Reimplemented in miasm.arch.sh4.arch.mn_sh4, miasm.arch.ppc.arch.mn_ppc, miasm.arch.mep.arch.mn_mep, miasm.arch.arm.arch.mn_armt, miasm.arch.arm.arch.mn_arm, and miasm.arch.aarch64.arch.mn_aarch64.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ alignment

int miasm.core.cpu.cls_mn.alignment = 1
static

◆ args

miasm.core.cpu.cls_mn.args

◆ args_symb [1/2]

list miasm.core.cpu.cls_mn.args_symb = []
static

◆ args_symb [2/2]

miasm.core.cpu.cls_mn.args_symb

◆ fields_order

miasm.core.cpu.cls_mn.fields_order

◆ instruction

miasm.core.cpu.cls_mn.instruction = instruction
static

◆ to_decode

miasm.core.cpu.cls_mn.to_decode

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