Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AT&T to Intel assembly converter

Tags:

x86

assembly

I'm looking for a converter from AT&T-style x86 assembly to Intel-style assembly.

The Att2Intl is a DOS executable, and won't run on 64-bit Windows.

The Gas2masm is sorely incomplete - it chokes on comments, on .ascii, on numerous legitimate commands like leave or movs, clobbers some identifiers...

Any others out there? The target assembler has to be a Microsoft one, there's no way to switch syntax.

EDIT: about 400,000 lines. Not a one time deal, need a not too often but repeatable process. But I won't have to debug it. :)

like image 291
Seva Alekseyev Avatar asked Nov 02 '22 19:11

Seva Alekseyev


1 Answers

There's a not-quite-complete Perl script here that might help you out if you're up for making some modifications/extensions to anything missing: http://boinc.berkeley.edu/android-boinc/libssl/crypto/perlasm/x86_64-xlate.pl

If not, just run Att2Intl in DOSBox or a WinXP VM. If you don't have access to XP, you could also try installing ReactOS in a VM. I believe they used DOSBox source to implement the DOS layer so that may provide a long-term solution without having to resort to actually running DOSBox every time.

like image 149
sraboy Avatar answered Nov 11 '22 17:11

sraboy