don't click here

HEX2ASM

Discussion in 'Engineering & Reverse Engineering' started by Selbi, Dec 12, 2010.

Thread Status:
Not open for further replies.
  1. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    Something I hate about Hex editors is, that I can't do a lot of things I could do in normal text editors. If I'm pissed so much of using them, I always dig out IDA to convert the Hex into an ASM array (with dc.X commands). This, however, is annoying as well, so I decided to make a tiny program for it.

    Running the original menutext.bin file through it (level select text) looks like this:
    [​IMG]

    And the output looks like this:
    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">22</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1E</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">18</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">19</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1C</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1C</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1F</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1E</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">23</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">01</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">23</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">02</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">23</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">03</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">1C</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">12</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">0F</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">22</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">19</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1E</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">18</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1F</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1E</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">23</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">01</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">23</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">02</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">23</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">24</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">11</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">17</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">15</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">03</span>
    ...</pre><!--gc2--><!--CQlkYy5iCSYjMDM2OzE3LCYjMDM2OzIyLCYjMDM2OzE1LCYjMDM2OzE1LCYjMDM2OzFFLCYjMDM2O0ZG
    LCYjMDM2OzE4LCYjMDM2OzE5LCYjMDM2OzFDLCYjMDM2OzFDLCYjMDM2O0ZGLCYjMDM2OzEwLCYjMDM2O
    zFGLCYjMDM2OzFFLCYjMDM2OzE1LCYjMDM2O0ZGLCYjMDM2O0ZGLCYjMDM2OzIzLCYjMDM2OzI0LCYjMD
    M2OzExLCYjMDM2OzE3LCYjMDM2OzE1LCYjMDM2O0ZGLCYjMDM2OzAxCgkJZGMuYgkmIzAzNjtGRiwmIzA
    zNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwm
    IzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGR
    iwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjsyMywmIzAzNjsyNCwmIzAzNjsxMSwmIzAzNjsxNywmIzAzNj
    sxNSwmIzAzNjtGRiwmIzAzNjswMgoJCWRjLmIJJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY
    7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMw
    MzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJ
    iMwMzY7MjMsJiMwMzY7MjQsJiMwMzY7MTEsJiMwMzY7MTcsJiMwMzY7MTUsJiMwMzY7RkYsJiMwMzY7MD
    MKCQlkYy5iCSYjMDM2OzFDLCYjMDM2OzExLCYjMDM2OzEyLCYjMDM2OzBGLCYjMDM2OzIyLCYjMDM2OzE
    5LCYjMDM2OzFFLCYjMDM2OzI0LCYjMDM2OzE4LCYjMDM2O0ZGLCYjMDM2OzEwLCYjMDM2OzFGLCYjMDM2
    OzFFLCYjMDM2OzE1LCYjMDM2O0ZGLCYjMDM2O0ZGLCYjMDM2O0ZGLCYjMDM2OzIzLCYjMDM2OzI0LCYjM
    DM2OzExLCYjMDM2OzE3LCYjMDM2OzE1LCYjMDM2O0ZGLCYjMDM2OzAxCgkJZGMuYgkmIzAzNjtGRiwmIz
    AzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiw
    mIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjtG
    RiwmIzAzNjtGRiwmIzAzNjtGRiwmIzAzNjsyMywmIzAzNjsyNCwmIzAzNjsxMSwmIzAzNjsxNywmIzAzN
    jsxNSwmIzAzNjtGRiwmIzAzNjswMgoJCWRjLmIJJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMz
    Y7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiM
    wMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYsJiMwMzY7RkYs
    JiMwMzY7MjMsJiMwMzY7MjQsJiMwMzY7MTEsJiMwMzY7MTcsJiMwMzY7MTUsJiMwMzY7RkYsJiMwMzY7M
    DMKCQkuLi4=--><!--egc2--><!--g2--></div><!--eg2-->


    <span style="font-size:12pt;line-height:100%">Download: <a href="http://selbi.hapisan.com/HEX2ASM.exe" target="_blank">http://selbi.hapisan.com/HEX2ASM.exe</a><!--sizec--></span><!--/sizec-->


    Usage: Just drag'n'drop a file on it. The rest should be pretty obvious. Also download .NET Framework if you don't have it already!


    <span style="font-size:8pt;line-height:100%">Special Thanks to MarkeyJester for a 5 minutes beta testing!<!--sizec--></span><!--/sizec-->
     
  2. Sappharad

    Sappharad

    Oldbie
    1,398
    67
    28
    What's the advantage of this over .incbin "file.bin"?
     
  3. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    <!--quoteo(post=537633:date=Dec 12 2010, 06:12 PM:name=sonicblur)--><div class='quotetop'>QUOTE (sonicblur @ Dec 12 2010, 06:12 PM) <a href="index.php?act=findpost&pid=537633">[​IMG]</a></div><div class='quotemain'><!--quotec-->What's the advantage of this over .incbin "file.bin"?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Technically, there is no. But it's easier to work with this way (at least for me).
     
  4. FraGag

    FraGag

    Tech Member
    This might come in handy... if I can remember that I have it! :v: <strike>That's if I do any hacking before completing my own disassembler...</strike> I'm not fond of hex editors either, because you can't do any formatting and you can't put any comments (and if an hex editor can do that, that information has to be saved in a separate file anyway).

    By the way, you didn't change the copyright and company attributes on your assembly (see Project Properties, it's Assembly Information or something like that). <strike>And ugh, VB.NET.</strike>
     
  5. Hanoch

    Hanoch

    Also known as TheKnock, Birashot Member
    491
    0
    0
    Israel
    everything
    Awesome little program, selbi. I always hated to write dc.b over and over again!
    But here's what it really should have:

    - The ability to read from offests
    - If its a music file, create channel indexes (both relative and absolute indexes)
     
  6. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    <!--quoteo(post=537637:date=Dec 12 2010, 06:14 PM:name=FraGag)--><div class='quotetop'>QUOTE (FraGag @ Dec 12 2010, 06:14 PM) <a href="index.php?act=findpost&pid=537637">[​IMG]</a></div><div class='quotemain'><!--quotec-->By the way, you didn't change the copyright and company attributes on your assembly (see Project Properties, it's Assembly Information or something like that).<!--QuoteEnd--></div><!--QuoteEEnd-->Totally forget that. Added them and re-uploaded.

    <!--quoteo(post=537661:date=Dec 12 2010, 07:05 PM:name=Hanoch)--><div class='quotetop'>QUOTE (Hanoch @ Dec 12 2010, 07:05 PM) <a href="index.php?act=findpost&pid=537661">[​IMG]</a></div><div class='quotemain'><!--quotec-->- The ability to read from offests
    - If its a music file, create channel indexes (both relative and absolute indexes)<!--QuoteEnd--></div><!--QuoteEEnd-->- I thought people are smart enough to highlight and press Del, even though I can do it in future releases of course.
    - This program was not designed for music releated stuff but for pretty much anything, which is why I won't make anything special for Sonic Hacking. (I could provide the Source Code though, even though that will make my horrible ways of do things VB.NET public... :V)
     
  7. FraGag

    FraGag

    Tech Member
    <!--quoteo(post=537661:date=Dec 12 2010, 01:05 PM:name=Hanoch)--><div class='quotetop'>QUOTE (Hanoch @ Dec 12 2010, 01:05 PM) <a href="index.php?act=findpost&pid=537661">[​IMG]</a></div><div class='quotemain'><!--quotec-->- If its a music file, create channel indexes (both relative and absolute indexes)<!--QuoteEnd--></div><!--QuoteEEnd-->
    If it's a music file, use <a href="http://info.sonicretro.org/S1SMPS2ASM" target="_blank" style="background: url(http://info.sonicretro.org/images/5/50/Reticon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">S1SMPS2ASM</a>.
     
  8. MarkeyJester

    MarkeyJester

    Time to Grow Up. Resident Jester
    2,122
    247
    43
    Japan
    As I said on SSRG, this sir, is one of the several most useful tools I've found to use, you wouldn't believe the number of times I've had to manually copy code from a hex editor and reorganise in the assembler's format.
     
  9. Hivebrain

    Hivebrain

    Administrator
    3,001
    99
    28
    53.4N, 1.5W
    Github
    You can copy/paste data straight from a hex editor into asm if you use the "hex" instruction.
    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;">&nbsp;
    hex 0001020304
    &nbsp;</pre><!--gc2--><!--CmhleCAwMDAxMDIwMzA0Cg==--><!--egc2--><!--g2--></div><!--eg2-->
     
  10. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    I've been aware of that, but I don't like it that much. I just use dc.X whenever I can.
     
  11. <!--quoteo(post=537696:date=Dec 12 2010, 02:57 PM:name=MarkeyJester)--><div class='quotetop'>QUOTE (MarkeyJester @ Dec 12 2010, 02:57 PM) <a href="index.php?act=findpost&pid=537696">[​IMG]</a></div><div class='quotemain'><!--quotec-->As I said on SSRG, this sir, is one of the several most useful tools I've found to use, you wouldn't believe the number of times I've had to manually copy code from a hex editor and reorganise in the assembler's format.<!--QuoteEnd--></div><!--QuoteEEnd-->


    This, basically this. Bravo! So simple and yet so handy! :)
     
  12. Mercury

    Mercury

    His Name Is Sonic Tech Member
    I really like this idea, as it's something I coincidentally needed just recently.

    However, there are a couple of features I think would be nice:
    <ul><li>Adding labels to the beginning of each line, so you can find your way around.</li><li>Adding commented labels at the end of each line, so you can still find your way around if the labels are modified.</li><li>A progress bar</li><li>A preview so you can tweak the format before exporting it.</li><li>Not crashing on my system! =P</li></ul>
    I got the urge to code, so I just made a version from scratch with these features myself: <a href="http://dl.dropbox.com/u/5437265/hexdc.zip" target="_blank">hexdc</a>
     
  13. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    Well now that you did that, I doubt that I will need to add those features to my program as well, but I'll probably do it anyway. The progress bar was already done before you posted, but I didn't feel like updating just because of it. :v:

    EDIT: Just finished the comments at the end of the line stuff and my StreamWriter, so the update might already come today!
     
  14. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    Update, v1.1:
    <ul><li>Data is now directly being written to the output path (using a StreamWriter), rather than storing everything to a variable and then saving it. This allows you to convert huge files in the matter seconds!</li><li>Added a progress bar.</li><li>Reading from offsets and setting length (e.g Offset=$0001E000; Length=$2000 bytes).</li><li>Adding comments at the end of each line, showing you the offset of the first value in that line (Sorry Mercury, labels as well would be... unnecessary).</li></ul>
    But I totally have no interests in working on this program anymore. The source is already fucked up so much... it was hard enough to do the things listed above (I even think that there are still bugs releated to words and longwords when reading from offsets and the progress bar only really works when you convert the entire file).


    Download: <a href="http://selbi.hapisan.com/HEX2ASM-v1.1.exe" target="_blank">http://selbi.hapisan.com/HEX2ASM-v1.1.exe</a>


    That said, here's the source (I'm pretty sure the experienced people in those modern languages will do an epic failpalm now :v:): <a href="http://selbi.hapisan.com/HEX2ASM-Source.rar" target="_blank">http://selbi.hapisan.com/HEX2ASM-Source.rar</a>

    If anyone has the patience to crawl through this messy code to clean it up, fix the remaining bugs or add more handy features, just go ahead!
     
  15. SegaLoco

    SegaLoco

    W)(at did you say? Misfit
    <!--quoteo(post=540319:date=Dec 21 2010, 12:25 PM:name=Selbi)--><div class='quotetop'>QUOTE (Selbi @ Dec 21 2010, 12:25 PM) <a href="index.php?act=findpost&pid=540319">[​IMG]</a></div><div class='quotemain'><!--quotec-->If anyone has the patience to crawl through this messy code to clean it up, fix the remaining bugs or add more handy features, just go ahead!<!--QuoteEnd--></div><!--QuoteEEnd-->
    I'll take you up on that offer. :P

    Edit: Ugg...VB, I'll rewrite it in C

    Edit2: Okay, here it is: <a href="http://www.mediafire.com/?y5unt3vt1td454k" target="_blank">http://www.mediafire.com/?y5unt3vt1td454k</a>

    Only thing it doesn't do is the aesthetic arrangement of data like his (I.e. x items on one line) but it does feature start at x offset and only do y lines (note lines, not bytes, I'll implement bytes in a bit *teehee*)

    Edit3: Here's the patch for length of bytes, not lines <a href="http://www.mediafire.com/?fc5s3z3shknhsps" target="_blank">http://www.mediafire.com/?fc5s3z3shknhsps</a>
     
Thread Status:
Not open for further replies.