Howto - Edit Sonic 1 Disassem in Ubuntu

Discussion in 'Tutorials Archive' started by hfdshdgfhgn, Dec 29, 2009.

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

    hfdshdgfhgn fdsgfdgfhgfds Member

    Joined:
    Dec 28, 2009
    Messages:
    89
    You may have seen my topic asking how I could make ASM68K compatible with Ubuntu. Well, I figured it out.


    STEP 1:


    Download the Sonic 1 Hacking Studio (S1HS) and take its ASM files (Unneeded if you have your own disassembly or are using the Hivebrain ASM68K disassembly) and get WINE (Windows Program Emulator) (Needed!!!).


    Find WINE in the Ubuntu Software Center.


    STEP 2:





    Moves S1HS's (Or your existing disassembly's) disassembly files to WINE's C:\ drive (Most commonly /home/yourusername/.wine/dosdevices/c:).





    STEP 3:



    Open the sonic1.asm file in GEdit.


    STEP 4:


    Click on the button of the pencil and magnifying glass and press "Replace All" after inputing each of these...


    COPY & PASTE THESE


    ---------------------------------


    Find: include "_


    Replace with: include "C:\_


    ---------------------------------


    Find: incbin\t


    Replace with: incbin\tC:\


    ---------------------------------


    Find: incbin "


    Replace with: incbin "C:\


    ---------------------------------


    In this, put two spaces after the defined in the find.


    Find: incbin


    Replace with: incbin C:\


    ---------------------------------


    Note- THIS ONE MUST BE DONE LAST!


    Find: incbin C:\\ "C:\\C:\\t


    Replace with: incbin "C:\\t


    STEP 5:


    Open Terminal and input this command to build...



    Code:
    wine C:\asm68k.exe /o op+ /o os+ /o ow+ /o oz+ /o oaq+ /o osq+ /o omq+ /p /o ae- C:\sonic1.asm,c:\s1built.bin

    S1Built.bin will appear in WINE's C:\ directory (Most commonly /home/yourusername/.wine/dosdevices/c:)


    Note - This MUST always be done in Terminal. A launcher will NOT build properly.


    So, that's it! Have fun editing your hack in Ubuntu! ;) :p :p


    Oh, and can someone find Soned2 for Ubuntu? Please? I NEED IT!!
     
    Last edited by a moderator: Dec 29, 2009
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    I haven't read this, since I don't have Linux at all. But it looks good. You posted in the wrong forum though. =P
     
  3. Qjimbo

    Qjimbo Well-Known Member Member

    Joined:
    Feb 27, 2008
    Messages:
    850
    Location:
    Vancouver, BC
    Moved this topic to tutorials, but due to it's rather specialist nature I left a link pointing here from General Discussion. I don't want it to get overlooked for those wishing to start modifying assembly in linux. Thanks ;)
     
  4. hfdshdgfhgn

    hfdshdgfhgn fdsgfdgfhgfds Member

    Joined:
    Dec 28, 2009
    Messages:
    89
    Thanks for moving, I though I might've posted in the wrong place.
     
    Last edited by a moderator: Dec 30, 2009
Thread Status:
Not open for further replies.