Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
miasm2.arch.x86.arch.bs_modname_jecx Class Reference
+ Inheritance diagram for miasm2.arch.x86.arch.bs_modname_jecx:
+ Collaboration diagram for miasm2.arch.x86.arch.bs_modname_jecx:

Public Member Functions

def divert
 
def __getattr__
 

Public Attributes

 args
 

Static Public Attributes

int prio = 1
 

Detailed Description

Definition at line 972 of file arch.py.

Member Function Documentation

def miasm2.core.cpu.bs_divert.__getattr__ (   self,
  item 
)
inherited

Definition at line 512 of file cpu.py.

513  def __getattr__(self, item):
514  if item in self.__dict__:
515  return self.__dict__[item]
516  elif item in self.args:
517  return self.args.get(item)
518  else:
519  raise AttributeError
520 
def miasm2.arch.x86.arch.bs_modname_jecx.divert (   self,
  i,
  candidates 
)

Definition at line 975 of file arch.py.

976  def divert(self, i, candidates):
977  out = []
978  for candidate in candidates:
979  cls, name, bases, dct, fields = candidate
980  fopmode = opmode_prefix(
981  (dct['mode'], dct['opmode'], dct['admode']))
982  mode = dct['mode']
983  size, opmode, admode = dct['mode'], dct['opmode'], dct['admode']
984 
985  nfields = fields[:]
986  nfields = nfields[:-1]
987  args = dict(self.args)
988  ndct = dict(dct)
989  if mode == 64:
990  if admode:
991  ndct['name'] = "JECXZ"
992  else:
993  ndct['name'] = "JRCXZ"
994  elif mode == 32:
995  if admode:
996  ndct['name'] = "JCXZ"
997  else:
998  ndct['name'] = "JECXZ"
999  elif mode == 16:
1000  if admode:
1001  ndct['name'] = "JECXZ"
1002  else:
1003  ndct['name'] = "JCXZ"
1004  else:
1005  raise ValueError('unhandled mode')
1006  out.append((cls, ndct['name'], bases, ndct, nfields))
1007  return out
1008 

+ Here is the call graph for this function:

Member Data Documentation

miasm2.core.cpu.bs_divert.args
inherited

Definition at line 510 of file cpu.py.

int miasm2.arch.x86.arch.bs_modname_jecx.prio = 1
static

Definition at line 973 of file arch.py.


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