Package envi :: Module arm :: Class ArmOpcode
[hide private]
[frames] | no frames]

Class ArmOpcode

source code

Opcode --+
         |
        ArmOpcode

Instance Methods [hide private]
 
__init__(self, opcode, mnem, opers, cond=COND_AL, iflags=0)
constructor for the basic Envi Opcode object.
source code
 
__repr__(self)
Over-ride this if you want to make arch specific repr.
source code

Inherited from Opcode: __eq__, __hash__, __len__, __ne__, getBranches, getOperValue, getOperands, getPrefixName, render

Class Variables [hide private]

Inherited from Opcode: prefix_names

Method Details [hide private]

__init__(self, opcode, mnem, opers, cond=COND_AL, iflags=0)
(Constructor)

source code 

constructor for the basic Envi Opcode object.  Arguments as follows:

opcode   - An architecture specific numerical value for the opcode
mnem     - A humon readable mnemonic for the opcode
prefixes - a bitmask of architecture specific instruction prefixes
size     - The size of the opcode in bytes
operands - A list of Operand objects for this opcode
iflags   - A list of Envi (architecture independant) instruction flags (see IF_FOO)
va       - The virtual address the instruction lives at (used for PC relative immediates etc...)

NOTE: If you want to create an architecture spcific opcode, I'd *highly* recommend you
      just copy/paste in the following simple initial code rather than calling the parent
      constructor.  The extra

Overrides: Opcode.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

Over-ride this if you want to make arch specific repr.

Overrides: Opcode.__repr__
(inherited documentation)