flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > DOS > Printing or saving the disassembly

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
eotc



Joined: 26 Jan 2006
Posts: 2

Printing or saving the disassembly

The topic says it all. It's something that I have not been able to figure out.
I just would like to saving the disassembly into a file.

Any help would be appreciated.

thanks
Post 26 Jan 2006, 00:16
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7109
Location: Slovakia

look at http://www.programmersheaven.com/zone5/cat460/index.htm

And i know there was some ultimate tool for this, until IDA came, i think it was called "Sourcer"
Post 26 Jan 2006, 01:43
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2239
Location: Usono (aka, USA)

I would suggest BIEW, but you can also try NDISASM (with NASM) or NBDISASM (with NBASM32).
Post 26 Jan 2006, 04:18
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1586
Location: Ukraine

this ancient technology i've been using ~10 years ago - can be useful when have no tools.
1. batch file:

Code:
debug doscom.com < dz.txt > dz.asm


2.dz.txt:

Code:
u
q


(be sure to put enter after "q" at the end!)
3.result - dz.asm:

Code:
-u

0B7B:0100 BA1001        MOV     DX,0110                            
0B7B:0103 B409          MOV     AH,09                              
0B7B:0105 CD21          INT     21                                 
0B7B:0107 B400          MOV     AH,00                              
0B7B:0109 CD16          INT     16                                 
0B7B:010B B44C          MOV     AH,4C                              
0B7B:010D CD21          INT     21                                 
0B7B:010F 005468        ADD     [SI+68],DL                         
0B7B:0112 69            DB      69                                 
0B7B:0113 7320          JNB     0135                               
0B7B:0115 69            DB      69                                 
0B7B:0116 7320          JNB     0138                               
0B7B:0118 61            DB      61                                 
0B7B:0119 2031          AND     [BX+DI],DH                         
0B7B:011B 36            SS:                                        
0B7B:011C 2D6269        SUB     AX,6962                            
0B7B:011F 7420          JZ      0141                               
-q



Post 26 Jan 2006, 06:12
View user's profile Send private message Visit poster's website Reply with quote
TDCNL



Joined: 25 Jan 2006
Posts: 56

Cool trick you have got there shoorick.

Now I want to use it too Razz, but I want to add this little feature, when you drag a file onto an automated batch program, the program will make a disassembly and save it to the directory where the batch file is, after that, it should display "File saved to ....." Smile, do you know how to do this? Very Happy

_________________
:: The Dutch Cracker ::
Post 11 Apr 2006, 13:53
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1219
Location: Underwater

That's a cool retro tip shoorick!
Post 10 Aug 2007, 10:32
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3172
Location: Denmark

Sourcer was a decent tool, but by no means "Ultimate" - it was a plain old static disassembler, which did a moderately okay job.

There's really no reason to use anything except IDA, unless some new interactive disassembler has appeared without me noticing Smile
Post 10 Aug 2007, 10:57
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904

disassm

> I just would like to saving the disassembly into a file.

NDISASM VIRUS.EXE > VIRUS.ASM
DISTORM VIRUS.EXE > VIRUS.ASM Idea

> when you drag a file onto an automated batch program, the program will make a disassembly and

Not a DOS issue

> There's really no reason to use anything except IDA

IDA ? Open source ? Free ? Works in DOS ? <200 KiB ? Question

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 10 Aug 2007, 19:22
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3172
Location: Denmark

NTOSKRNL_VXE: IDA is not open-source and it's not <200kb. There used to be a DOS version, but I frankly don't care one bit about DOS these days, in my mind it's dead and gone and good f***ing riddance.

What's the point in having a small and/or dos and/or opensource disassembler if it's only able to produce dumb static disassembly listings? For any serious use, you need an interactive disassembler - and the FLIRT recognition in IDA also comes in extremely helpful, along with it's massive file format support (and processor support, for those that need it).
Post 10 Aug 2007, 22:25
View user's profile Send private message Visit poster's website Reply with quote
eek



Joined: 21 Oct 2006
Posts: 24

DOS will never die, its too interesting.
Post 11 Aug 2007, 10:16
View user's profile Send private message Reply with quote
eek



Joined: 21 Oct 2006
Posts: 24

And speaking of interactive debuggers...
http://www.btinternet.com/~btketman/

Plus an interpreter. Wink

no linkers or tweaking or "download this" and "download that" and
"put it here" and "put it there" and "are you using version 1.11063/zz2" Wink Wink

Just Click and go. Wink Wink Wink
Post 11 Aug 2007, 12:27
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904

fodder wrote:


Quote:
and good f***ing riddance



Thanks for very useful info Shocked

Ville wrote (in his MenuetOS subforum) :


Quote:
Just a few simple rules. Keep a professional attitude and messages programming related. If you don't like Menuet, just leave. Unrelated messages will be deleted.



This DOS forum seems to lack both rules and a moderator Crying or Very sad Crying or Very sad
Post 14 Aug 2007, 06:47
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web


Quote:
Just a few simple rules. Keep a professional attitude and messages programming related. If you don't like Menuet, just leave. Unrelated messages will be deleted.



Quote:

This DOS forum seems to lack both rules and a moderator Crying or Very sad Crying or Very sad


@ NTOSKRNL_VXE, Why do you not put your name forward to be the moderator of Dos forum Wink.
Post 14 Aug 2007, 16:32
View user's profile Send private message Reply with quote
Sahrian



Joined: 17 Mar 2007
Posts: 16

Matrix represents a lack of presence on this FASM DOS forum. Why he is moderator? He doesn't know anything about DOS, so he lacks the knowledge to be useful here. Please replace Matrix as moderator! Twisted Evil
Post 14 Aug 2007, 17:16
View user's profile Send private message Reply with quote
Sahrian



Joined: 17 Mar 2007
Posts: 16

@f0dder:

Please f*** off from this DOS forum! This is not your place!
Post 14 Aug 2007, 17:32
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7109
Location: Slovakia

Saharian: Please p*** your moderator-releated suggestions to Feedback section
Post 14 Aug 2007, 19:05
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Sahrian



Joined: 17 Mar 2007
Posts: 16

@vid:

What's your problem? From your past posts I saw that you are far from being a DOS fan. If you are Matrix's friend please follow f0dder!
Post 14 Aug 2007, 19:11
View user's profile Send private message Reply with quote
Sahrian



Joined: 17 Mar 2007
Posts: 16

I got bored to see people indicating Linux or Windows as solution for DOS questions. I'm sure that in Windows or Linux forums DOS is not indicated. If Matrix sleeps I'm awaken!!!
Post 14 Aug 2007, 19:30
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4634
Location: Argentina

I opened the discussion here.
Post 15 Aug 2007, 01:35
View user's profile Send private message Reply with quote
ATV



Joined: 31 Aug 2004
Posts: 109
Location: Finland

My Turbo Pascal disassembler can handle DOS com/exe programs (exe segment handler is not good).
http://board.flatassembler.net/topic.php?t=5248#47731

It's interactive and after setting code/data areas it can save as asm file (keys: F5=save, F1=help).
It's fast enought to work well on 286 under DOS 3.3

One picture viewer (30k com file) can be recompile without any change in asm file = exact copy, if same compiler is used.
Post 15 Aug 2007, 07:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< 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


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.