chyyuu / distorm

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

Unable to reassemble with nasm/yasm #60

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 decomposed by distorm can not be assembled by nasm or 
yasm. The issue is largely related to nasm/yasm not supporting certain syntax 
inputs and that the distorm output just is not compatible with these.

Was it intended that distorm output by nasm/yasm syntax compatible?

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

GoogleCodeExporter commented 9 years ago
meant to give some examples

distorm --> nasm
fld tbyte  [ebx]  --> fld tword [ebx]
lods byte [gs:si] --> lodsb [gd:si]
xlat byte [ebx+al] --> xlatb

Original comment by mnor...@cerodias.com on 30 Nov 2012 at 8:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Actually it was never intended. I can give more examples like what you showed. 
As for now I'm not going to change it.

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

GoogleCodeExporter commented 9 years ago
No problem. If you could give me more examples, that would be great. I need
to be able to assemble the output of distorm with nasm and will just write
my own 'translator' to change things to nasm compatible code.

Original comment by mnor...@cerodias.com on 2 Dec 2012 at 3:25