Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1737.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index949a-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.200e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index949a-2.html.zxy&h^`xOKtext/htmlISO-8859-1gzip@`xWed, 11 Mar 2020 00:01:22 GMT0 0Py&h^`x why did i wait so long to do this?

Author Topic: why did i wait so long to do this?  (Read 1469 times)

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
why did i wait so long to do this?
« on: July 29, 2012, 09:43:07 PM »
ever run across a big chunk of data in a bank disassembly, which currently appears as ugly nonsensical code, and has an arbitrary number of bytes per line?

i have.

ever manually convert line after line after freakin' line like a mindless zombie?

i have.

when in the middle of such another project today, i decided enough was enough, and automated the process.  coding this took me about 30 minutes, so not doing it earlier is all the more inexcusable:

http://home.comcast.net/~assassin17/data-dumper.zip

compile with Free Pascal or Borland/Turbo Pascal.  i'd include the .EXE, but this computer got virused/spywared a couple years ago, and i've never formatted like i should, so i'm not 100% sure the evil is gone.

any suggestions or corrections are welcome for the program.  one known shortcoming is that it has no error checking on the commandline parameters, so it can be easily hosed.  i didn't bother supporting an output file; just use "> outputfile" at the end of the command to accomplish that.

are there any SNES disassemblers that already allow for data blocks?  i just use TRaCER, so i'm not familiar with the others.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: why did i wait so long to do this?
« Reply #1 on: July 30, 2012, 01:07:45 AM »
DisPel does, but the version RHDN has is broken, and doesn't dump code correctly. I think the -a and -x arguments aren't even read, so everything always dumps 16-bit, or something like that. I believe data does dump correctly with that version, though. (*cough*version 0.99*cough*)

I've been meaning to submit the updated version to RHDN, but laziness has set in.

119 bugs fixed and counting.

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: why did i wait so long to do this?
« Reply #2 on: July 30, 2012, 01:10:24 PM »
thanks!  i'd actually downloaded v0.9 like an hour after my post, but never bothered to run it, because i didn't see any mention of data dumping in the Readme (nor is it in 0.99's).  it turns out that the "-d" option does something totally different than in the Readme, with its old purpose fulfilled by "-e".  were it not for your reply, i might never have noticed this.

i'll probably be sticking with my little program for now, as i prefer separated hex bytes versus them all listed next to each other, but it's good to know about DisPel's abilities and what its latest version is.

yeah, RHDN's Lord-Tech Snes9x (DOS-based, has debugger) is also outdated: they have 1.23a, when there is a version 1.37 out since September 2001.  it's a bitch to find online (i had to search for the the filename saved on my computer back in 2001), but here it is:
http://www.emulationzone.org/sections/wakdhacks/utils/LT_S9X_137.zip

also, they have an outdated version (2.0) of Simkin's SNES memory map document, when there's a 3.5 that's been available on his website since March 1998:
http://simsnex.tripod.com/SNESMem.txt

ok, i submitted both files, though i dunno why the dingbats are rejecting the Tripod URL; i had to upload it to my webspace first.

i'll probably submit DisPel 0.99 next, unless your laziness is going on vacation. ;)

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: why did i wait so long to do this?
« Reply #3 on: July 30, 2012, 01:45:43 PM »
Nah, go ahead. My schedule has been consisting of "work and sleep" for the past several weeks. :bah:

119 bugs fixed and counting.