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_u16imm Class Reference
+ Inheritance diagram for miasm2.arch.mips32.arch.mips32_u16imm:
+ Collaboration diagram for miasm2.arch.mips32.arch.mips32_u16imm:

Public Member Functions

def decode
def encode

Public Attributes


Static Public Attributes

 parser = cpu.base_expr

Detailed Description

Definition at line 369 of file arch.py.

Member Function Documentation

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

Definition at line 370 of file arch.py.

371  def decode(self, v):
372  v = v & self.lmask
373  self.expr = ExprInt32(v)
374  return True
def miasm2.arch.mips32.arch.mips32_u16imm.encode (   self)

Definition at line 375 of file arch.py.

376  def encode(self):
377  if not isinstance(self.expr, ExprInt):
378  return False
379  v = self.expr.arg.arg
380  assert(v < (1<<16))
381  self.value = v
382  return True

Member Data Documentation


Definition at line 372 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 380 of file arch.py.

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