flat assembler
Message board for the users of flat assembler.

Index > DOS > How to disassemble to a Flat Assembler source?

Author
Thread Post new topic Reply to topic
axlucas



Joined: 02 May 2014
Posts: 70
Location: Argentina
axlucas 12 Dec 2023, 13:32
Well, basically, it's that. I have a DOS EXE file and I would like to disassemble it to Flat Assembler format source code. If I can do it directly in one go, that's great. If I need to first disassemble it to, say, TASM, and then convert that to Flat Assembler, as long as it works, it's OK too. But I would like the process to not require Windows, since I'm a Linux user. If no other choice, I'll have to install Wine to do it once and then I have my source and won't need it again, but it'd be great to not need to do that.

What do you guys recommend for the disassembly?
Thanks
Post 12 Dec 2023, 13:32
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2566
Furs 12 Dec 2023, 14:39
objdump -d -M intel file.exe
Post 12 Dec 2023, 14:39
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 12 Dec 2023, 14:45
The closest output format from some of the most popular disassemblers, is probably NASM.

Then with a bit of scripting magic you could do post-processing of the NASM source.
Post 12 Dec 2023, 14:45
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 03 Jan 2024, 17:43
https://github.com/gdabah/distorm/releases DISTORM (NASM syntax)
https://nasm.us/ NDISASM (NASM syntax)
https://agner.org/optimize OBJCONV (can also brew NASN syntax)

FAQ
Post 03 Jan 2024, 17:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.