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_gpregz Class Reference
+ Inheritance diagram for miasm2.arch.aarch64.arch.aarch64_gpregz:
+ Collaboration diagram for miasm2.arch.aarch64.arch.aarch64_gpregz:

Public Member Functions

def decode
 
def encode
 
def fromstring
 
def check_fbits
 
def fromstring
 

Public Attributes

 expr
 
 value
 
 fmask
 
 expr
 

Static Public Attributes

 parser = gpregsz_32_64
 
 gpregs_info = gpregsz_info
 
 reg_info = None
 

Detailed Description

Definition at line 642 of file arch.py.

Member Function Documentation

def miasm2.core.cpu.reg_noarg.check_fbits (   self,
  v 
)
inherited

Definition at line 666 of file cpu.py.

667  def check_fbits(self, v):
668  return v & self.fmask == self.fbits
669 
def miasm2.arch.aarch64.arch.aarch64_gpreg_noarg.decode (   self,
  v 
)
inherited

Definition at line 542 of file arch.py.

543  def decode(self, v):
544  size = 64 if self.parent.sf.value else 32
545  self.expr = self.gpregs_info[size].expr[v]
546  return True
def miasm2.arch.aarch64.arch.aarch64_gpreg_noarg.encode (   self)
inherited

Definition at line 547 of file arch.py.

548  def encode(self):
549  if not test_set_sf(self.parent, self.expr.size):
550  return False
551  if not self.expr.size in self.gpregs_info:
552  return False
553  if not self.expr in self.gpregs_info[self.expr.size].expr:
554  return False
555  self.value = self.gpregs_info[self.expr.size].expr.index(self.expr)
556  return True
557 

+ Here is the call 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.core.cpu.reg_noarg.fromstring (   self,
  s,
  parser_result = None 
)
inherited

Definition at line 636 of file cpu.py.

637  def fromstring(self, s, parser_result=None):
638  if parser_result:
639  e, start, stop = parser_result[self.parser]
640  self.expr = e
641  return start, stop
642  try:
643  v, start, stop = self.parser.scanString(s).next()
644  except StopIteration:
645  return None, None
646  self.expr = v[0]
647  return start, stop

Member Data Documentation

miasm2.arch.aarch64.arch.aarch64_gpreg_noarg.expr
inherited

Definition at line 544 of file arch.py.

miasm2.core.cpu.m_arg.expr
inherited

Definition at line 607 of file cpu.py.

miasm2.core.cpu.reg_noarg.fmask
inherited

Definition at line 667 of file cpu.py.

miasm2.arch.aarch64.arch.aarch64_gpregz.gpregs_info = gpregsz_info
static

Definition at line 644 of file arch.py.

miasm2.arch.aarch64.arch.aarch64_gpregz.parser = gpregsz_32_64
static

Definition at line 643 of file arch.py.

miasm2.core.cpu.reg_noarg.reg_info = None
staticinherited

Definition at line 633 of file cpu.py.

miasm2.arch.aarch64.arch.aarch64_gpreg_noarg.value
inherited

Definition at line 554 of file arch.py.


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