don't click here

Useful RAM Offsets

Discussion in 'Engineering & Reverse Engineering' started by Sonic 65, Oct 29, 2004.

  1. Sonic 65

    Sonic 65

    Tech Member
    I bookmarked a few useful RAM offsets for reference when programming in ASM:

    $FFFFD080: Whenever you load an object you move the object number here.
    $C00004: Before moving Nemesis compressed art to a0, you always move something here.
    $FFFFF600: This offset is the offset that holds where you are in the Main Game Loop.
    $FFFFFFF8: This offset contains which machine the Genesis is.
    $FFFFFE10: This offset contains which level you're in.
    $FFFFFE11: This offset contains which act you're in.
    #FFFFFE20: This offset contains how many rings you have,
    $FFFFFE22: This offset contains the current time.
    $FFFFFE1B: This offset contains how many lives are in the lives counter.
    $FFFFFE2C: This offset contains the shield value (0 = False, 1 = True)
    $FFFFFE2D: This offset contains the invincibility value (0 = False, 1 = True)
    $FFFFFE1B: This offset contains how many rings are in the rings counter.
    $FFFFFE57: This offset contains how many emeralds you have.
    $FFFFD008: Sonic's X position
    $FFFFD00C: Sonic's Y position

    Not much, but hey.
     
  2. Sonic Hachelle-Bee

    Sonic Hachelle-Bee

    Taking a Sand Shower Tech Member
    806
    200
    43
    Lyon, France
    Sonic 2 Long Version
  3. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    Also, drx has stolen borrowed it in making his RAM breakdown page.

    I may as well note that a lot of that info is from Saxman's originals, with some other stuff from sources I've long since forgotten.
     
  4. Hivebrain

    Hivebrain

    Administrator
    3,047
    154
    43
    53.4N, 1.5W
    Github
    Wtf? That text file is a S2 RAM breakdown. Drx's guide is a S1 RAM breakdown.
     
  5. Sonic 65

    Sonic 65

    Tech Member
    QM's does have lots more info, but only 4 of mine are listed in his. Oh yeah, and QM, $FE22.w contains the time, not some unknown mysterious variable. =P

    But this is just more proof that QM knows a lot more than I will ever do. I'm an idiot. >.<
     
  6. Qjimbo

    Qjimbo

    Your friendly neighbourhood lemming. Oldbie
    Does anyone know the location of a variable that can tell you whether sonic has speedshoes or not?
     
  7. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    :P

    Seriously though, I wasn't aware of that when I first wrote the document (being unaware of the nature of the CLOCK).
     
  8. Hivebrain

    Hivebrain

    Administrator
    3,047
    154
    43
    53.4N, 1.5W
    Github
    That's actually 1/60ths of seconds, not milliseconds.