chyyuu / distorm

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

Unable to disassemble valid CMPEQPD instruction #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In what mode did you try to disassemble (16/32/64)?
64

What is the input buffer (binary stream) you used to reproduce the problem?
Use hex.
660fc2da01

What is the expected output (or what instruction)?
CMPEQPD?

Which tool did you use to see the expected output?
Python console

What do you see instead?
>>> import distorm3
... i = distorm3.Decompose(0x0000000140c49a7e, "660fc2da01".decode('hex'), 
distorm3.Decode64Bits)[0]
... print i
MPEQPD XMM3, XMM2
>>> i.instructionClass
31: 'ISC_SSE2'
>>> i.mnemonic
32: 'CMPLTDD'
>>> i.valid
33: True

What version of diStorm are you using? On what platform (Python/EXE/other)?
distorm3.1.0, distorm-package 3.1
Python 2.7.2 (32 bits)
Windows 7 x64

Please provide any additional information below.

Original issue reported on code.google.com by cesare.d...@gmail.com on 4 May 2012 at 1:12

GoogleCodeExporter commented 9 years ago
May be the same problem can happen with another encoding: 0fc2d801

It generates a key error on the Mnemonic dictionary:

  Mnemonic = Mnemonics[di.opcode]
KeyError: 4311

Original comment by cesare.d...@gmail.com on 4 May 2012 at 1:24

GoogleCodeExporter commented 9 years ago
Same for f2440fc2ed02 . KeyError: 4549

Original comment by cesare.d...@gmail.com on 4 May 2012 at 1:32

GoogleCodeExporter commented 9 years ago
Hey,
might be I already fixed those bugs but haven't released the new code 
officially.
You can pull it off the trunk and check it out.
I will upload it all this week.
Thanks

Original comment by distorm@gmail.com on 5 May 2012 at 11:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Unfortunately (but correctly!) the trunk is missing the binaries for the 
library (.dll) that I need with Python.

Do you plan to release a new binary sooner?

Thanks

Original comment by cesare.d...@gmail.com on 5 May 2012 at 11:45

GoogleCodeExporter commented 9 years ago
Yes, I will get it done in the next few days.
Cheers

Original comment by distorm@gmail.com on 5 May 2012 at 4:20