don't click here

WTF is up with those error messages

Discussion in 'Engineering & Reverse Engineering' started by Sonic 65, Jan 12, 2005.

Thread Status:
Not open for further replies.
  1. Sonic 65

    Sonic 65

    Tech Member
    I'm trying to make 2 Sonic objects that share different mappings/art in S1. I copy-pasted all the code, mappings, and art. Then I go to GHZ1 and...

    ILLEGAL INSTRUCTION $00080079

    I looked at $80079, but found nothing that needed to be fixed. What is wrong here?

    THE ROM
     
  2. Quickman

    Quickman

    be attitude for gains Tech Member
    5,596
    18
    18
    :x
    omg porjcet
    This download speed still makes evolution look fast.

    Anyway...

    Something is jumping to $80079 which isn't an instruction. Find the reference and fix it.
     
  3. Hivebrain

    Hivebrain

    Administrator
    3,029
    135
    43
    53.4N, 1.5W
    Github
    Could be that it's trying to jump to an odd address, which is a problem in most emulators.
     
  4. StephenUK

    StephenUK

    Liquor in the front, poker in the rear Tech Member
    1,678
    0
    16
    Manchester, UK
    Quackshot Disassembly
    I see your doing the same thing I'm doing, only your doing it in Sonic 1, whereas I'm doing it in Sonic 2. Hope you find what your looking for. If the code works in a similar way between both games, I'll let you know if I find out what the problem is. I'm working on it at the moment.
     
  5. Rika Chou

    Rika Chou

    Tech Member
    5,274
    167
    43
    IIRC you cannot just relocate the data, because some pointers need to be changed within the code itself.
     
  6. Ayla

    Ayla

    I shat on your desk ^^ Oldbie
    1,760
    0
    16
    West Linn, OR
    Hacking Contest, StH Overlooked, Personal Indie game
    Sonic 1 is a touchy game. You misaligned a pointer somewhere is what it sounds like.
     
  7. LOst

    LOst

    Tech Member
    4,891
    6
    18
    Well, I think he has made a disassembly of Sonic 1 and tries to put data and code in between other code instead of at the end. And that's the first mistake people do. You can't just believe you have a disassembly ready by pressing a button. you need to convert every pointer to a label first, and it's also good to make the data into bytes and words correctly.
     
  8. Sonic 65

    Sonic 65

    Tech Member
    I'm using Hivebrain's disassembly, I don't know fuck about the Sonic source code without the labels.

    I also put it at the end and put a 4E 75 between things I put at the end.
     
  9. LOst

    LOst

    Tech Member
    4,891
    6
    18
    When did Hivebrain release his disassembly?

    I haven't seen anything at Sonicology. It would be grand news when he did I guess.
     
  10. Rika Chou

    Rika Chou

    Tech Member
    5,274
    167
    43
    =/
     
  11. LOst

    LOst

    Tech Member
    4,891
    6
    18
    I remember he released a old one at A51, but when I went back to get it, it was removed from the server. I guess drx saved it and put it up?
     
  12. Ayla

    Ayla

    I shat on your desk ^^ Oldbie
    1,760
    0
    16
    West Linn, OR
    Hacking Contest, StH Overlooked, Personal Indie game
    I should learn rom programming... haven't really bothered since I got out of the scene for so long. I think I will.
     
  13. Hivebrain

    Hivebrain

    Administrator
    3,029
    135
    43
    53.4N, 1.5W
    Github
    It's been on Hacking Cult for ages.

    My next S1 disassembly will be finished around March or early spring. It'll have 100% correct pointers (which the old version doesn't have), and lots of comments and labels.
     
Thread Status:
Not open for further replies.