howardjack / distorm

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

operand size missing on many instructions when using Decode #59

Closed GoogleCodeExporter closed 9 years ago

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

What version of diStorm are you using? On what platform (Python/EXE/other)?
3.3 linux python2.7.3 

a number of instructions are ambiguous as to the size of the source or 
destination and the operand size needs to be specified.

the shift and rotate instructions have this issue (i.e. sal, sar, shl, shr, 
rcl, rcr, rol, ror)

some examples
all of these come back as shl [eax], cl
  d220     shl byte [eax], cl
  66d320   shl word [eax], cl
  d320     shl dword [eax], cl

movsx is exhibiting the same behavior
all of these come back as movsx eax, [ebx]
  0fbe0e   movsx eax, byte [ebx]
  0fbf0e   movsx eax, word [ebx]

Original issue reported on code.google.com by mnor...@cerodias.com on 30 Nov 2012 at 6:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, this is a regression in diStorm3, will be fixed!

Original comment by distorm@gmail.com on 1 Dec 2012 at 3:14

GoogleCodeExporter commented 9 years ago

Original comment by distorm@gmail.com on 20 Dec 2012 at 5:16