Package envi :: Package archs :: Package i386 :: Module disasm :: Class i386PcRelOper
[hide private]
[frames] | no frames]

Class i386PcRelOper

source code


This is the operand used for EIP relative offsets for operands on instructions like jmp/call

Instance Methods [hide private]
 
__init__(self, imm, tsize) source code
 
repr(self, op)
Used by the Opcode class to get a humon readable string for this operand.
source code
 
isImmed(self)
If the given operand represents an immediate value, this must return True.
source code
 
isDiscrete(self)
If the given operand can be completly resolved without an emulator, return True.
source code
 
getOperValue(self, op, emu=None)
Get the current value for the operand.
source code
 
render(self, mcanv, op, idx)
Used by the opcode class when rendering to a memory canvas.
source code
 
__eq__(self, other) source code

Inherited from Operand: __ne__, getOperAddr, isDeref, isReg, setOperValue

Method Details [hide private]

repr(self, op)

source code 

Used by the Opcode class to get a humon readable string for this operand.

Overrides: Operand.repr
(inherited documentation)

isImmed(self)

source code 

If the given operand represents an immediate value, this must return True.

Overrides: Operand.isImmed
(inherited documentation)

isDiscrete(self)

source code 

If the given operand can be completly resolved without an emulator, return True.

Overrides: Operand.isDiscrete
(inherited documentation)

getOperValue(self, op, emu=None)

source code 

Get the current value for the operand.  If needed, use
the given emulator/workspace/trace to resolve things like
memory and registers.

NOTE: This API may be passed a None emu and should return what it can
      (or None if it can't be resolved)

Overrides: Operand.getOperValue
(inherited documentation)

render(self, mcanv, op, idx)

source code 

Used by the opcode class when rendering to a memory canvas.

Overrides: Operand.render
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 
Overrides: Operand.__eq__