graph.i: AddCommand() was broken

- updated the ex_graph.py sample
- updated function usage comments
This commit is contained in:
elias.bachaalany
2010-05-06 07:56:25 +00:00
parent f4b1a7d87c
commit 5cede13626
3 changed files with 69 additions and 34 deletions
+11
View File
@@ -554,4 +554,15 @@ class _cpu(object):
return idc.SetRegValue(value, name)
cpu = _cpu()
"""This is a special class instance used to access the registers as if they were attributes of this object.
For example to access the EAX register:
print "%x" % cpu.Eax
"""
procregs = _procregs()
"""This object is used to access the processor registers. It is useful when decoding instructions and you want to see which instruction is which.
For example:
x = idautils.DecodeInstruction(here())
if x[0] == procregs.Esp:
print "This operand is the register ESP
"""