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

Public Member Functions

def decode
def encode

Public Attributes


Static Public Attributes

 parser = cpu.base_expr

Detailed Description

Definition at line 416 of file arch.py.

Member Function Documentation

def miasm2.arch.mips32.arch.mips32_esize.decode (   self,

Definition at line 417 of file arch.py.

418  def decode(self, v):
419  v = v & self.lmask
420  self.expr = ExprInt32(v+1)
421  return True
def miasm2.arch.mips32.arch.mips32_esize.encode (   self)

Definition at line 422 of file arch.py.

423  def encode(self):
424  if not isinstance(self.expr, ExprInt):
425  return False
426  v = self.expr.arg.arg -1
427  assert(v < (1<<16))
428  self.value = v
429  return True

Member Data Documentation


Definition at line 419 of file arch.py.

miasm2.arch.mips32.arch.mips32_imm.parser = cpu.base_expr

Definition at line 300 of file arch.py.


Definition at line 427 of file arch.py.

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