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

Public Member Functions

def decode
 
def encode
 
def fromstring
 

Public Attributes

 expr
 
 value
 

Static Public Attributes

 parser = d_gpreg_gpreg
 

Detailed Description

Definition at line 551 of file arch.py.

Member Function Documentation

def miasm2.arch.sh4.arch.bs_dr0gp.decode (   self,
  v 
)

Definition at line 554 of file arch.py.

555  def decode(self, v):
556  self.expr = ExprMem(gpregs.expr[v] + R0, self.sz)
557  return True
def miasm2.arch.sh4.arch.bs_dr0gp.encode (   self)

Definition at line 558 of file arch.py.

559  def encode(self):
560  res = MatchExpr(self.expr, ExprMem(R0 + jra, self.sz), [jra])
561  if not res:
562  return False
563  r = res[jra]
564  if not r in gpregs.expr:
565  return False
566  self.value = gpregs.expr.index(r)
567  return True
568 

+ Here is the call graph for this function:

def miasm2.arch.sh4.arch.sh4_dgpreg.fromstring (   self,
  s,
  parser_result = None 
)
inherited

Definition at line 158 of file arch.py.

159  def fromstring(self, s, parser_result=None):
160  start, stop = super(sh4_dgpreg, self).fromstring(s, parser_result)
161  if start is None:
162  return start, stop
163  self.expr = ExprMem(self.expr.arg, self.sz)
164  return start, stop

Member Data Documentation

miasm2.arch.sh4.arch.bs_dr0gp.expr

Definition at line 555 of file arch.py.

miasm2.arch.sh4.arch.bs_dr0gp.parser = d_gpreg_gpreg
static

Definition at line 552 of file arch.py.

miasm2.arch.sh4.arch.bs_dr0gp.value

Definition at line 565 of file arch.py.


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