| Trees | Indices | Help |
|---|
|
|
A universal representation for an opcode
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
prefix_names =
|
|||
|
|||
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
|
Return a list of tuples. Each tuple contains the target VA of the branch, and a possible set of flags showing what type of branch it is. See the BR_FOO types for all the supported envi branch flags.... Example: for bva,bflags in op.getBranches(): |
Render this opcode to the memory canvas passed in. This is used for both simple printing AND more complex representations. |
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 16 18:22:11 2012 | http://epydoc.sourceforge.net |