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_rlist Class Reference
+ Inheritance diagram for miasm2.arch.arm.arch.armt_rlist:
+ Collaboration diagram for miasm2.arch.arm.arch.armt_rlist:

Public Member Functions

def encode
 
def decode
 
def fromstring
 

Public Attributes

 value
 
 expr
 

Static Public Attributes

 parser = gpreg_list
 

Detailed Description

Definition at line 1752 of file arch.py.

Member Function Documentation

def miasm2.arch.arm.arch.armt_rlist.decode (   self,
  v 
)

Definition at line 1764 of file arch.py.

1765  def decode(self, v):
1766  v = v & self.lmask
1767  out = []
1768  for i in xrange(0x10):
1769  if 1 << i & v:
1770  out.append(gpregs.expr[i])
1771  if not out:
1772  return False
1773  e = ExprOp('reglist', *out)
1774  self.expr = e
1775  return True
1776 
def miasm2.arch.arm.arch.armt_rlist.encode (   self)

Definition at line 1755 of file arch.py.

1756  def encode(self):
1757  e = self.expr
1758  rlist = [gpregs_l.expr.index(x) for x in e.args]
1759  v = 0
1760  for r in rlist:
1761  v |= 1 << r
1762  self.value = v
1763  return True
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:

Member Data Documentation

miasm2.arch.arm.arch.armt_rlist.expr

Definition at line 1773 of file arch.py.

miasm2.arch.arm.arch.armt_rlist.parser = gpreg_list
static

Definition at line 1753 of file arch.py.

miasm2.arch.arm.arch.armt_rlist.value

Definition at line 1761 of file arch.py.


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