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

Public Member Functions

def decode
 
def encode
 
def fromstring
 
def fromstring
 
def check_fbits
 

Public Attributes

 expr
 
 value
 
 fmask
 

Static Public Attributes

 reg_info = gpregs_l
 
 parser = gpregs_l_wb
 

Detailed Description

Definition at line 1819 of file arch.py.

Member Function Documentation

def miasm2.core.cpu.reg_noarg.check_fbits (   self,
  v 
)
inherited

Definition at line 666 of file cpu.py.

667  def check_fbits(self, v):
668  return v & self.fmask == self.fbits
669 
def miasm2.arch.arm.arch.armt_reg_wb.decode (   self,
  v 
)

Definition at line 1823 of file arch.py.

1824  def decode(self, v):
1825  v = v & self.lmask
1826  e = self.reg_info.expr[v]
1827  if not e in self.parent.trlist.expr.args:
1828  e = ExprOp('wback', e)
1829  self.expr = e
1830  return True
def miasm2.arch.arm.arch.armt_reg_wb.encode (   self)

Definition at line 1831 of file arch.py.

1832  def encode(self):
1833  e = self.expr
1834  if isinstance(e, ExprOp):
1835  if e.op != 'wback':
1836  return False
1837  e = e.args[0]
1838  self.value = self.reg_info.expr.index(e)
1839  return True
1840 
def miasm2.core.cpu.m_arg.fromstring (   self,
  s,
  parser_result = None 
)
inherited

Definition at line 604 of file cpu.py.

605  def fromstring(self, s, parser_result=None):
606  if parser_result:
607  e, start, stop = parser_result[self.parser]
608  self.expr = e
609  return start, stop
610  try:
611  v, start, stop = self.parser.scanString(s).next()
612  except StopIteration:
613  return None, None
614  self.expr = v[0]
615  return start, stop
616 

+ Here is the call graph for this function:

def miasm2.core.cpu.reg_noarg.fromstring (   self,
  s,
  parser_result = None 
)
inherited

Definition at line 636 of file cpu.py.

637  def fromstring(self, s, parser_result=None):
638  if parser_result:
639  e, start, stop = parser_result[self.parser]
640  self.expr = e
641  return start, stop
642  try:
643  v, start, stop = self.parser.scanString(s).next()
644  except StopIteration:
645  return None, None
646  self.expr = v[0]
647  return start, stop

Member Data Documentation

miasm2.arch.arm.arch.armt_reg_wb.expr

Definition at line 1828 of file arch.py.

miasm2.core.cpu.reg_noarg.fmask
inherited

Definition at line 667 of file cpu.py.

miasm2.arch.arm.arch.armt_reg_wb.parser = gpregs_l_wb
static

Definition at line 1821 of file arch.py.

miasm2.arch.arm.arch.armt_reg_wb.reg_info = gpregs_l
static

Definition at line 1820 of file arch.py.

miasm2.arch.arm.arch.armt_reg_wb.value

Definition at line 1837 of file arch.py.


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