ASM Problem

Discussion in 'Discussion and Q&A Archive' started by Blaumagier, Jun 8, 2008.

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

    Blaumagier Blue Mage Member

    Joined:
    Jun 5, 2008
    Messages:
    85
    Location:
    Alabama
    What does this mean?


    [​IMG]


    All I did between this build and the last one that worked was save tile graphics, mappings, and pattern cues for the Sonic that pops up on the title screen.
     
  2. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    It means two branches have gone out of range, on lines 6211 and 6224 of s1comb.asm. On these lines you'll probably find something like



    Code:
    bra.w someplace
    Locate the same line in s1.asm and change it to



    Code:
    jmp (someplace).l
    If it's bsr.w instead of bra.w, change to jsr instead of jmp. If it's some other Bcc instruction, it's a little bit more complicated, you'll have to create a new label to jump to the appropriate code, for example, if the original is



    Code:
    bcc.w someplace
    you'll have to change it to



    Code:
    bcc.w JmpTosomeplace
    and somewhere in the near vicinity (after a break in code flow e.g. rts, bra or jmp), add the label



    Code:
    JmpTosomeplace:
    
    	   jmp (someplace).l

    Hopefully it'll just be a bsr.w or bra.w though.
     
  3. Unspoken

    Unspoken Well-Known Member Member

    Joined:
    Aug 10, 2007
    Messages:
    64
    After altering Tails animation code for Super Silver I get this error:

    /monthly_06_2008/post-18-1213792599_thumb.png
     

    Attached Files:

  4. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    Change that to jmp (SlopeObject).l and it should be fine.
     
  5. Unspoken

    Unspoken Well-Known Member Member

    Joined:
    Aug 10, 2007
    Messages:
    64
    Cheers, that worked.
     
Thread Status:
Not open for further replies.