Build Problems

Discussion in 'Discussion and Q&A Archive' started by Sephiroth, Sep 10, 2007.

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

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    Whenever I build my Rom, I always get this error



    Code:
    SNASM68K, version 2.1D, Dec 06 1995, 11:55:16, DOS4G PRO
    
    (c) 1993-95 Cross Products Ltd. All Rights Reserved
    
    s2comb.asm(43576) : Error 06060 : Branch offset 0 is not allowed
    
    
    
    1 error encountered processing file 's2comb.asm'
    
    102370 source statements in 122868 lines processed in 0.6 seconds
    I tried deleting the line or two at line number 43576 (Psy suggested t) but after building my ROM it came back. I don't think it has anything to do with the coding of s2.asm, does it?


    EDIT: Fixed Tags
     
    Last edited by a moderator: Sep 10, 2007
  2. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Show what you did to the ASM file you edited to get this error, we can't help otherwise.
     
  3. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    Got it fixed now. I had to see what the line was in s2comb.asm and then look in s2.asm and delete the same line. It was useless anyway, all it did was branch to the next object which if it wasn't there it wouldn't have changed anyway as nothing was pointing to it.
     
  4. Armada

    Armada DID SOMEONE SAY WEEABOO? Member

    Joined:
    Aug 17, 2007
    Messages:
    98
    Why would you branch to something to follow? XD It's an error I've made a lot.
     
  5. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    I didn't type that, I found it, it was just there.
     
  6. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    This is why I hate working with disassemblies that use an external program for includes (thank God Aurochs's disassembly doesn't do this). It's a pain in the ass opening up s2comb.asm/s1comb.asm (which is always huge), examining the line giving the error, locating the corresponding line in the actual asm file, and fixing that.
     
    Last edited by a moderator: Sep 11, 2007
  7. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    I figured it out, and afterwards my ROM was gaying. It would load EHZ1, then play the continue sound, then reset. So I restarted my coding, starting with a brand new ASM file and fixed it. I use ConTEXT with both s2.asm and s2comb.asm so I don't have to worry about loading it over and over.
     
  8. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    If you're restarting coding, you might as well use Aurochs' disassembly, or at least one of the incbined ones ...
     
  9. StephenUK

    StephenUK Working on a Quackshot disassembly Member

    Joined:
    Aug 5, 2007
    Messages:
    1,026
    You should never delete lines to fix errors, especially if you can't see the purpose of that line. Clearly it was there for a reason. I'm not surprised your ROM broke.
     
  10. puto

    puto Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    52
    Except when the line is a 0-length branch.
     
  11. Shadow Fire

    Shadow Fire Well-Known Member Member

    Joined:
    Aug 6, 2007
    Messages:
    303
    If the line branched to nothing, would it not make more sense to put an rts command there?
     
  12. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    I did something to the Tails Monitor code, but messed up and upon attempting to fix it, messed up. It still built but wouldnt get past the title card of EHZ1.


    I restarted and edited a different moniter and changed the Star Poles (that's what the bra code was from, I had meant to delete that for it to work, but only deleted one line.)


    So it's all fixed now.
     
  13. StephenUK

    StephenUK Working on a Quackshot disassembly Member

    Joined:
    Aug 5, 2007
    Messages:
    1,026
    Granted, but for that to occur it'd have to be part of custom code or a code alteration focussed around it. What I meant was that an offending lines found away from unaltered code shouldn't be deleted to fix the errors.
     
Thread Status:
Not open for further replies.