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.sh4_dgpregpinc Class Reference
+ Inheritance diagram for miasm2.arch.sh4.arch.sh4_dgpregpinc:
+ Collaboration diagram for miasm2.arch.sh4.arch.sh4_dgpregpinc:

Public Member Functions

def fromstring
 
def decode
 
def encode
 

Public Attributes

 expr
 
 value
 

Static Public Attributes

 parser = dgpregs_p
 

Detailed Description

Definition at line 181 of file arch.py.

Member Function Documentation

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

Definition at line 194 of file arch.py.

195  def decode(self, v):
196  r = gpregs.expr[v]
197  e = ExprOp(self.op, r)
198  self.expr = ExprMem(e, self.sz)
199  return True
def miasm2.arch.sh4.arch.sh4_dgpregpinc.encode (   self)

Definition at line 200 of file arch.py.

201  def encode(self):
202  e = self.expr
203  if not isinstance(e, ExprMem):
204  return False
205  e = e.arg
206  res = MatchExpr(e, ExprOp(self.op, jra), [jra])
207  if not res:
208  return False
209  r = res[jra]
210  if not r in gpregs.expr:
211  return False
212  v = gpregs.expr.index(r)
213  self.value = v
214  return True
215 

+ Here is the call graph for this function:

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

Definition at line 184 of file arch.py.

185  def fromstring(self, s, parser_result=None):
186  start, stop = super(sh4_dgpregpinc, self).fromstring(s, parser_result)
187  if self.expr is None:
188  return None, None
189  if not isinstance(self.expr.arg, ExprOp):
190  return None, None
191  if self.expr.arg.op != self.op:
192  return None, None
193  return start, stop

Member Data Documentation

miasm2.arch.sh4.arch.sh4_dgpregpinc.expr

Definition at line 197 of file arch.py.

miasm2.arch.sh4.arch.sh4_dgpregpinc.parser = dgpregs_p
static

Definition at line 182 of file arch.py.

miasm2.arch.sh4.arch.sh4_dgpregpinc.value

Definition at line 212 of file arch.py.


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