evilsong / distorm

Automatically exported from code.google.com/p/distorm
GNU General Public License v3.0
0 stars 0 forks source link

instructionBytes is missing #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there something wrong ?

>>> from distorm3 import *
>>> x = Decompose(0x400000, 'b800000000'.decode('hex'), Decode32Bits)
>>> x[0].instructionBytes
''

Original issue reported on code.google.com by phucb...@gmail.com on 7 Sep 2010 at 1:16

GoogleCodeExporter commented 9 years ago
yield Instruction(di, code[codeOffset + delta : codeOffset + delta + di.size])

So the first parameter should be 0.

Original comment by phucb...@gmail.com on 7 Sep 2010 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by distorm@gmail.com on 8 Sep 2010 at 2:38