Win32/64 6502 Disassmebler

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
Post Reply
User avatar
banedon
Posts: 742
Joined: 08 Sep 2013
Location: A missile silo somewhere under southern England

Win32/64 6502 Disassmebler

Post by banedon »

Hi guys

Does anyone know of a decent Win32/64 6502 disassembler? I.e. one that they've used and can recommend?
I've found a few already, but they're either web based or Win16 or Linux/Unit.

Any recommendations?

[edit]

I've found this one: http://sourceforge.net/projects/dis6502/
Seems ok, but will have a play. Recommendations still welcome, though :).
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Win32/64 6502 Disassmebler

Post by BigEd »

You might try Ruud's disassembler:
http://www.baltissen.org/htm/auto_dis.htm

I use the very basic facility in Ian Piumarta's lib6502: can dump a disassembly of memory and then get to work in a text editor.
User avatar
banedon
Posts: 742
Joined: 08 Sep 2013
Location: A missile silo somewhere under southern England

Re: Win32/64 6502 Disassmebler

Post by banedon »

Thanks for the recommendation, Ed. Unfortunately, it won't run under windows 7 x64 (it's a 16 bit DOS app). However, I do like the idea of his data auto detection routine that he mentions on the main page.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Win32/64 6502 Disassmebler

Post by BigEd »

Oops!
magicaros
Posts: 6
Joined: 05 Apr 2015
Location: Belgium

Re: Win32/64 6502 Disassmebler

Post by magicaros »

for running 16bit dos app under Win7/8 64bit or whatever else there is DOSbox
User avatar
HansO
Posts: 206
Joined: 31 Oct 2003

Re: Win32/64 6502 Disassmebler

Post by HansO »

banedon wrote:
Thanks for the recommendation, Ed. Unfortunately, it won't run under windows 7 x64 (it's a 16 bit DOS app). However, I do like the idea of his data auto detection routine that he mentions on the main page.
Turbo Pascal source is included, so perhaps Freepascal will compile it. Or run it in a VM or MS- DOS emulator
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Win32/64 6502 Disassmebler

Post by GARTHWILSON »

See if there's one in the list on my links page at http://wilsonminesco.com/links.html#assem that suits you. One or two of the links there are to other pages with further long lists of 65xx assemblers.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
White Flame
Posts: 704
Joined: 24 Jul 2012

Re: Win32/64 6502 Disassmebler

Post by White Flame »

I've got one here that's quite powerful: http://www.white-flame.com/wfdis/ It requires HTML5 & Javascript enabled, but will run anywhere that runs. You can even download & run a local copy; it's not technically "web based", as it runs completely in local javascript.

It's currently Commodore 64 specific, but if you have a binary, prepending the 2-byte load address to the file will make it work as a "prg" file.

Features:
  • Tracing 6502 disassembler
  • CBM BASIC detokenization, finding SYS addresses and disassembling from there
  • Very slow emulator for running relocation or decompression code, allowing you to disassemble further from that
  • Understands .prg and .sid formats, as well as .d64 images containing them
  • Edit formatting (indentation, blank lines), and comments
  • Create or rename labels
  • Built-in C64 ROM & I/O labels
  • View areas as some C64 graphics types
This is technically just the front-end to my AI-driven disassembler back end, but I am also keeping it fully runnable client-side with just the rudimentary tracing disassembler.

Big caveat: no saving/export yet. Saving & loading the disassembler state does work, but there's no UI hook for it yet. Still, you can explore the workings of a file, and copy/paste out if you're desparate. :)

Small caveats: No "illegal" opcodes yet. Manually switching things from gfx back to binary sometimes doesn't register quite right.

To get more features in, just bug me.

Image
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Win32/64 6502 Disassembler

Post by BigEd »

A timely post from Peter Fröhlich mentions a resurrection of "a flow-tracing 6502 disassembler first published in 1986 by Robert Bond" - it's a work in progress.

The project page has a link to Eric Smith's dis6502 page (including the original dis6502 sources)

Note that this is a command-line program and needs lex and yacc to build it - probably OK using cygwin or similar on Windows, but it's not a GUI program as was originally sought. Might be interesting anyway.

Cheers
Ed
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Win32/64 6502 Disassmebler

Post by BigEd »

There's a mention of the impressive-looking open source 'radare' reverse engineering tool, and at least one simple command line disassembler, over in this thread.
White Flame
Posts: 704
Joined: 24 Jul 2012

Re: Win32/64 6502 Disassmebler

Post by White Flame »

Note that radare actually is an interactive disassembler, as the main part of its tool. I had to search to try to find how to do a simple commandline disassembly dump of a file, for that particular thread. :)
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Win32/64 6502 Disassmebler

Post by BigEd »

I'm glad you did search - for someone who prefers command line, it's essential to know that a GUI-looking tool also supports the command line.
Post Reply