flat assembler
Message board for the users of flat assembler.

Index > Main > Disassembler, debugger, etc...

Author
Thread Post new topic Reply to topic
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
I think it would be cool if someone made a debugger and/or disassembler designed to use FASM "syntax" or whatever you want to call it... at the very least a debugger that uses FASM syntax, and a disassembler Twisted Evil would be nice too... obviously, it would strip EXE headers or include them as "DB" at the beginning of the file, same with other file formats (if it could detect them)
this is another one of those things that is beyond my area of "expertise" Laughing so if someone could (or already has? if so, tell me...) make one or both of these things, or tell me how to get them, that would be great. Imagine a disassembler for FASM:

DISASSEMBLE something.com something.asm
Code:
;SOMETHING.COM
format binary
org 0100h

start:
mov ax,0004h   <-Can be configured to output in decimal, or binary, or octal,
;as well as hex- for example, "mov ax,0000000000000100b" instead of
;mov ax,0004h - maybe even automatically strip zeroes out...
.label1.1:
  int 5h
  jnz far start     <-far jump, so no local label
  loop .label1.1 <-short loop, so label is local
    

this, of course, is nonsense jibberish useless code, but you get the idea...
It doesn't necessarily have to be written in FASM, of course (but why write it in anything else?) just so long as it works... that would be cool...

_________________
FASM Rules!
OS Dev is fun!
Pepsi tastes nasty!
Some ants toot!
It's over!


Last edited by THEWizardGenius on 24 Feb 2005, 17:22; edited 1 time in total
Post 22 Feb 2005, 23:11
View user's profile Send private message AIM Address Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
r22
That would be very convenient. A lot of the good disassemblers like IDApro make you buy them.
Post 23 Feb 2005, 04:51
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld
Some time ago I was writing disassembler plug-in for FAR (in FASM, for 16-bit code only) but haven't finished it and it may not be useful... Maybe later, who knows... It's definitely a good idea especially because I've accustomed to FASM syntax and everything else is just confusing me.
Post 23 Feb 2005, 06:34
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Post 23 Feb 2005, 12:58
View user's profile Send private message Visit poster's website Reply with quote
iklin



Joined: 20 Mar 2004
Posts: 120
Location: Russia, Siberia
iklin
Hex-viewer/disassembler I know -
HIEW - http://webhost.kemtel.ru/~sen/
It's shareware.

Hex-viewer/diassembler which understand 64-bit code -
BIEW - http://biew.sourceforge.net/
It's freeware.

There are no fasm syntax but this is not so important.
I use this utils every day.
Post 23 Feb 2005, 17:57
View user's profile Send private message ICQ Number Reply with quote
Juras



Joined: 18 Jun 2003
Posts: 23
Location: Belarus
Juras
ndisasm utility accompanying nasm is very good and almost the same as FASM's syntax.

for nice debugging FASM must include DEBUG information into the final EXE, like symbol names and their addresses and line numbers and source file names.
Post 23 Feb 2005, 21:08
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy
Quote:
for nice debugging FASM must include DEBUG information into the final EXE, like symbol names and their addresses and line numbers and source file names.
Will you implement this, Privalov?
Post 23 Feb 2005, 21:41
View user's profile Send private message Visit poster's website Reply with quote
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware
Tommy wrote:
Quote:
for nice debugging FASM must include DEBUG information into the final EXE, like symbol names and their addresses and line numbers and source file names.
Will you implement this, Privalov?

Please....?
Post 23 Feb 2005, 23:21
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
Remember, one of the main principles upon which FASM is based is that it assembles ONLY what is in the code- it will not append anything else, except of course EXE headers, etc. However, perhaps a directive, such as "incdebug" or something like that, used in the source... But I really only need a simple disassembler and/or debugger that maybe makes up line labels based on their position in source or by their context (for example, if the position is JMP'd to by a short JMP that is near by, the label would be output to the ASM file as a local label; if no nearby JMP's are used, or if all JMP's referencing that position are FAR, then it would not be local). This might be pretty complex. I suppose FASM syntax isn't the MOST important thing, but it is pretty high on my list... this is exactly what I mean:
Quote:
It's definitely a good idea especially because I've accustomed to FASM syntax and everything else is just confusing me.

_________________
FASM Rules!
OS Dev is fun!
Pepsi tastes nasty!
Some ants toot!
It's over!
Post 24 Feb 2005, 17:21
View user's profile Send private message AIM Address Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Well, you could always assemble to coff format and use a linker that generates debug info? Smile
Post 24 Feb 2005, 17:23
View user's profile Send private message Visit poster's website Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
I don't use Object files, ever, I prefer to use plain binary or if I have to, EXE. But I understand what you mean. Besides, that would be a two-step solution, and why use a two-step solution if you can use a one-step solution Question

_________________
FASM Rules!
OS Dev is fun!
Pepsi tastes nasty!
Some ants toot!
It's over!
Post 24 Feb 2005, 21:33
View user's profile Send private message AIM Address Reply with quote
iklin



Joined: 20 Mar 2004
Posts: 120
Location: Russia, Siberia
iklin
THEWizardGenius wrote:
I suppose FASM syntax isn't the MOST important thing, but it is pretty high on my list...

Well... Why you can't write your own disasm with fasm syntax? Smile It's not so simple but not so hard. Some times ago I think about it but I have not enough time. Sad
Post 25 Feb 2005, 15:16
View user's profile Send private message ICQ Number 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-2020, Tomasz Grysztar.

Powered by rwasa.