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

Public Member Functions

def decode
 
def encode
 
def decode_w_size
 
def encode_w_size
 
def get_postpre
 
def fromstring
 

Public Attributes

 expr
 
 value
 

Static Public Attributes

 parser = deref_nooff
 

Detailed Description

Definition at line 1338 of file arch.py.

Member Function Documentation

def miasm2.arch.aarch64.arch.aarch64_deref_nooff.decode (   self,
  v 
)

Definition at line 1341 of file arch.py.

1342  def decode(self, v):
1343  reg = gpregs64_info.expr[v]
1344  self.expr = m2_expr.ExprOp('preinc', reg)
1345  return True
def miasm2.arch.aarch64.arch.aarch64_deref.decode_w_size (   self,
  off 
)
inherited

Definition at line 1272 of file arch.py.

1273  def decode_w_size(self, off):
1274  return off

+ Here is the caller graph for this function:

def miasm2.arch.aarch64.arch.aarch64_deref_nooff.encode (   self)

Definition at line 1346 of file arch.py.

1347  def encode(self):
1348  expr = self.expr
1349  if not isinstance(expr, m2_expr.ExprOp):
1350  return False
1351  if expr.op != 'preinc':
1352  return False
1353  if len(expr.args) == 1:
1354  reg = expr.args[0]
1355  elif len(expr.args) == 2:
1356  reg, off = expr.args
1357  if not isinstance(off, m2_expr.ExprInt):
1358  return False
1359  if off.arg != 0:
1360  return False
1361  else:
1362  return False
1363 
1364  if not reg in gpregs64_info.expr:
1365  return False
1366  self.value = gpregs64_info.expr.index(reg)
1367  return True
1368 
def miasm2.arch.aarch64.arch.aarch64_deref.encode_w_size (   self,
  off 
)
inherited

Definition at line 1275 of file arch.py.

1276  def encode_w_size(self, off):
1277  return off

+ Here is the caller graph for this function:

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.arch.aarch64.arch.aarch64_deref.get_postpre (   self,
  parent 
)
inherited

Definition at line 1278 of file arch.py.

1279  def get_postpre(self, parent):
1280  if hasattr(self.parent, "postpre"):
1281  if self.parent.postpre.value == 0:
1282  op = 'postinc'
1283  else:
1284  op = 'preinc_wb'
1285  else:
1286  op = 'preinc'
1287  return op

+ Here is the caller graph for this function:

Member Data Documentation

miasm2.arch.aarch64.arch.aarch64_deref_nooff.expr

Definition at line 1343 of file arch.py.

miasm2.arch.aarch64.arch.aarch64_deref_nooff.parser = deref_nooff
static

Definition at line 1339 of file arch.py.

miasm2.arch.aarch64.arch.aarch64_deref_nooff.value

Definition at line 1365 of file arch.py.


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