Actions

SCHG

Difference between revisions of "Sonic the Hedgehog CD/RAM Editing"

From Sonic Retro

m (work in progress map of Sonic CD's RAM locations)
 
(Main System Memory Locations)
Line 1: Line 1:
 
==Main System Memory Locations==
 
==Main System Memory Locations==
This is a map of 68k memory as used by the main gameplay engine. Note that any numbers entered (for example, score or number of rings) will have to be converted to hex first.
+
This is a map of 68k memory as used by the main gameplay engine. For the most part, the memory locations in Sonic CD are the same as they are in the Genesis Sonic games. The following are mainly memory locations specific to Sonic CD. Note that any numbers entered (for example, score or number of rings) will have to be converted to hex first.
  
 
These are the offsets in RAM.
 
These are the offsets in RAM.
Line 9: Line 9:
 
| Metablock table
 
| Metablock table
 
|-
 
|-
| $8000 - $8FFF
+
| $1512
| Level layout
+
| Ring Counter
 
|-
 
|-
| $9000 - $A9FF
+
| $1516
| Block table
+
| Timer
 
|-
 
|-
| $AA00 - $A?FF
+
| $151A
| Decompression buffer
+
| Score
 
|-
 
|-
| $AC00 - $AFFF
+
| $1512
| Sprite table input. Intermediate storage for sprite attribute table data destined for $DD00 or $F800.
+
| Ring Counter
 +
|-
 +
| $152E
 +
| Time Period. 00 is past, 01 is present, 02 is future
 +
|-
 +
| $1548-$154B
 +
| X and Y location when time traveling. Used to determine where you spawn.
 
|}
 
|}

Revision as of 21:39, 25 June 2011

Main System Memory Locations

This is a map of 68k memory as used by the main gameplay engine. For the most part, the memory locations in Sonic CD are the same as they are in the Genesis Sonic games. The following are mainly memory locations specific to Sonic CD. Note that any numbers entered (for example, score or number of rings) will have to be converted to hex first.

These are the offsets in RAM.

RAM offset Description
$0000 - $7FFF Metablock table
$1512 Ring Counter
$1516 Timer
$151A Score
$1512 Ring Counter
$152E Time Period. 00 is past, 01 is present, 02 is future
$1548-$154B X and Y location when time traveling. Used to determine where you spawn.