Address request topic

Discussion in 'Discussion and Q&A Archive' started by Selbi, Mar 22, 2009.

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

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    First off, this should be pinned.


    I made this topic, because sometimes you can find adresses and you don't know what they are doing, because no where in your asm is a line with a proper comment. Maybe this post is unnecessary, but I need this information.


    However, here are my adresses:

    • $FFFFF603
    • $10(a0)
    • $12(a0)
    • $14(a1)



    What are these adresses for? I don't know if the $##(a0) are also adresses, but I need to know what they are for.


    Hope you can help me. :)


    Note: In this topic you'll get points only for good answers (you know, the new question system)!
     
  2. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
    The Sonic Retro Wiki lists those, but it's down so I can't link there. Here's what I have looking at some notes


    $FFFFF603 = Ctrl 1 Press Logical


    $10(a0) = x velocity


    $12(a0) = y velocity


    $14(a1) = When it's a1, I think that means it for a sub/spawned object. I don't have notes on 14...
     
  3. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    $F603 is the used for buttons.


    In bits (btst, bset, bclr commands)


    0 - up


    1 - down


    2 - left


    3 - right


    4 - B


    5 - C


    6 - A


    7 - Start


    Note that if you would like to use and commands, here is a bitfield equalivent:


    Bit|Hex


    0-$0


    1-$1


    2-$2


    3-$4


    4-$10


    5-$20


    6-$40


    7-$80


    $10(ax) is the x speeds of the object (as it goes left and right). SpeedToPos is a routine controlling object moving without setting a gravity, ObjectFall sets gravity to the object. If you see a branching to one of these, that means he will be applied differently, depending on the routines.


    $12(ax) is the y speeds of the object (as it goes up and down).


    $14(ax) is the ground speed of SONIC. Take the fact that the ground speed is used only by sonic and not by any other objects. Though if you want to make them use ground speed, just copy the routines that handles sonic's movement, and change some RAM values.


    $FFFFF603 is a RAM address


    $10,$12,$14(ax) is a SST value (used only by objects).
     
  4. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Thanks, this helped me a lot.


    Also, I gave more points to rika_chou, because I just wanted to know, what these lines are doing, not a full guide about each line. =P (But your guide was also helpful Hanoch :))
     
    Last edited by a moderator: Mar 22, 2009
  5. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    What does these points actually do?
     
  6. Qjimbo

    Qjimbo Well-Known Member Member

    Joined:
    Feb 27, 2008
    Messages:
    850
    Location:
    Vancouver, BC
    Nothing... yet. They might be redeemable for something in future. I'll probably have some sort of pip system like post count does at the very least.
     
    Last edited by a moderator: Mar 22, 2009
  7. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    It's back. So can you post the link please?
     
  8. Hitaxas

    Hitaxas Retro 80's themed Paladins Twich streamer Member

    Joined:
    Aug 13, 2007
    Messages:
    167
    You could also download the 2007 S2 disassembly, It has equates, I use those to figure out what some RAM addresses and such do.
     
    Last edited by a moderator: Mar 24, 2009
  9. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Just saying, it would be good if mirrors of the Ram/SST table were okay but I asked Tweaker and he didn't like the idea because of how Retro's SCHG works. Still, it's good for mirrors, especially when Retro's having server overload hiccups some times.
     
  10. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
Thread Status:
Not open for further replies.