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

Public Member Functions

def fromstring
 
def decode
 
def encode
 

Public Attributes

 expr
 
 value
 

Static Public Attributes

 parser = dgpregs_base
 

Detailed Description

Definition at line 155 of file arch.py.

Member Function Documentation

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

Definition at line 165 of file arch.py.

166  def decode(self, v):
167  r = gpregs.expr[v]
168  self.expr = ExprMem(r, self.sz)
169  return True
def miasm2.arch.sh4.arch.sh4_dgpreg.encode (   self)

Definition at line 170 of file arch.py.

171  def encode(self):
172  e = self.expr
173  if not isinstance(e, ExprMem):
174  return False
175  if not isinstance(e.arg, ExprId):
176  return False
177  v = gpregs.expr.index(e.arg)
178  self.value = v
179  return True
180 
def miasm2.arch.sh4.arch.sh4_dgpreg.fromstring (   self,
  s,
  parser_result = None 
)

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.sh4_dgpreg.expr

Definition at line 162 of file arch.py.

miasm2.arch.sh4.arch.sh4_dgpreg.parser = dgpregs_base
static

Definition at line 156 of file arch.py.

miasm2.arch.sh4.arch.sh4_dgpreg.value

Definition at line 177 of file arch.py.


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