Sonic and Sega Retro Message Board: Useful RAM Offsets - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

Useful RAM Offsets For you ASM people

#1 User is offline Sonic 65 

Posted 28 October 2004 - 07:51 PM

  • Posts: 1166
  • Joined: 09-October 04
  • Gender:Male
  • Project:Dustin Wyatt's Epic Jailbreak
  • Wiki edits:13
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 User is offline Sonic Hachelle-Bee 

Posted 29 October 2004 - 03:13 AM

  • Lost in Wood zone
  • Posts: 724
  • Joined: 03-March 04
  • Gender:Male
  • Location:Paris, France
  • Project:Sonic 2 Long Version
Take a look at this text file (by QuickMan).
http://pci.univ-lyon...0300958/RAM.txt

It contains much more informations about that (even if some aren't in it).

#3 User is offline Quickman 

Posted 29 October 2004 - 02:23 PM

  • Posts: 5584
  • Joined: 03-December 03
  • Gender:Male
  • Location::x
  • Project:omg porjcet
  • Wiki edits:10
Also, drx has <strike>stolen</strike> 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.
This post has been edited by Quick Man: 29 October 2004 - 02:25 PM

#4 User is offline Hivebrain 

Posted 01 November 2004 - 09:33 AM

  • Posts: 2661
  • Joined: 15-January 03
  • Gender:Male
  • Location:53.4N, 1.5W
  • Project:HivePal 2.0
  • Wiki edits:6,176

Quick Man, on Oct 29 2004, 07:23 PM, said:

Also, drx has <strike>stolen</strike> 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.

Wtf? That text file is a S2 RAM breakdown. Drx's guide is a S1 RAM breakdown.

#5 User is offline Sonic 65 

Posted 01 November 2004 - 05:34 PM

  • Posts: 1166
  • Joined: 09-October 04
  • Gender:Male
  • Project:Dustin Wyatt's Epic Jailbreak
  • Wiki edits:13
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 User is offline Qjimbo 

Posted 01 November 2004 - 05:41 PM

  • Your friendly neighbourhood lemming.
  • Posts: 4394
  • Joined: 17-February 03
  • Gender:Male
  • Location:Vancouver, BC
  • Wiki edits:69
Does anyone know the location of a variable that can tell you whether sonic has speedshoes or not?

#7 User is offline Quickman 

Posted 02 November 2004 - 01:31 PM

  • Posts: 5584
  • Joined: 03-December 03
  • Gender:Male
  • Location::x
  • Project:omg porjcet
  • Wiki edits:10

Sonic 65, on Nov 1 2004, 10:34 PM, said:

Oh yeah, and QM, $FE22.w contains the time, not some unknown mysterious variable. =P

Quote

$FE23.w = Clock (minutes) for player 1
$FE24.w = Clock (seconds) for player 1
$FE25.w = Clock (milliseconds) for player 1


:P

Seriously though, I wasn't aware of that when I first wrote the document (being unaware of the nature of the CLOCK).
This post has been edited by Quick Man: 02 November 2004 - 01:32 PM

#8 User is offline Hivebrain 

Posted 03 November 2004 - 05:10 AM

  • Posts: 2661
  • Joined: 15-January 03
  • Gender:Male
  • Location:53.4N, 1.5W
  • Project:HivePal 2.0
  • Wiki edits:6,176

Quote

$FE25.w = Clock (milliseconds) for player 1

That's actually 1/60ths of seconds, not milliseconds.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users