Port K&T into Sonic 1 Hg Disassembly

Discussion in 'Discussion and Q&A Archive' started by Stardust Gear, Jul 10, 2014.

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

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    shamiIkemiI, I'm not saying I did a perfect job by ANY mean, but at least I made music hacking much simpler than before. But if you want to use Sonic QX for ethical reasons, be my guest.


    For the record, I know both Java and C++ (and a bunch of other languages). I just don't feel the need to use them. While I admit that C/C++ is the best language out there, I prefer to use the language I'm most comfortable with if I have the liberty to choose. Since nobody pays me to do what I do, I do what I want to do. It's different when I have to write code at work, in which case I do what I'm being paid to do.


    Java sucks btw, I don't know why it even exists, but that's WAY off topic here.
     
  2. LazloPsylus

    LazloPsylus The Railgun Member

    Joined:
    Nov 25, 2009
    Messages:
    Location:
    Academy City
    Try using the pl conditional in Z80. It doesn't exist in any documentation (including those on "undocumented" material), yet AS thinks it's valid and creates some abomination of code that doesn't work at all. And that's just the one I can think of off-hand.

    Sure, ASM68K's bugs can't be fixed, but they're minor and are generally just meager annoyances that make you pay attention to what you're writing. AS, unless you want to sift through that mess of a codebase and fix it yourself, it probably won't be fixed. I've run into major issues while writing code for the AS assembler, and got fed up fighting with it. I've never run into major problems with ASM68K, and I've written some pretty weird code, so I've damn well stuck with it.

    Also, your little "moveq #$FF,d0" problem is easily fixable. Write "moveq #$FFFFFFFF,d0" instead. Or, if you're lazy, "moveq #-1,d0".

    EDIT: Well, this was a fun derail. Trash or split if you want, staff.
     
    Last edited by a moderator: Jul 11, 2014
  3. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    923
    GerbilSoft was able to test that:

    I understand that both assemblers have problems, and honestly I'm just hoping that FraGag's assembler will be able to avoid them. Whenever it gets finished.
    I think it's worth noting that Hivebrain himself has repeatedly insisted that the 2005 version of the disassembly shouldn't be used, and is one of the lead contributors to the git disasm.

    I think I need to take a break from this site for a day, or a week, maybe a month.
     
    Last edited by a moderator: Jul 11, 2014
  4. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    Code:
    		moveq.l	#$FFFFFFFF,d0
    moveq is long-word signextended.
     
  5. Stardust Gear

    Stardust Gear A Programmer Member

    Joined:
    Apr 27, 2014
    Messages:
    134
    How long discussion...

    The tools I use:

    • SonLVL++ (secret... I'm fixing bugs that MainMemory made).
    • Some .NET utils I made to make sonic hacking easy. It's WIP.
    • Notepad++ for assembly editing. It's easy to find subroutine in many .asm files...
      Notepad++ is also used to making object definitions for SonLVL.
    • Xm3smps. I'm moving now to oerg866's one.
    • mid2smps of nineko.
    • SonMapEd. I'll move to .NET tool that will allow me editing art tiles.
    And what's bad with Git disassembly?

    I really didn't find the "Boundary_Bottom" but found something related in "_incObj/Sonic LevelBound.asm" with "at sign" subroutine.
     
  6. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    For the last time, mid2smps is a program developed by ValleyBell. I am not ValleyBell. Are we clear?
     
    Last edited by a moderator: Jul 13, 2014
  7. Stardust Gear

    Stardust Gear A Programmer Member

    Joined:
    Apr 27, 2014
    Messages:
    134
Thread Status:
Not open for further replies.