Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Sonic the Hedgehog (Sega Master System, Game Gear)/RAM map

From Data Crystal
Jump to navigation Jump to search

Chip tiny.png The following article is a RAM map for Sonic the Hedgehog (Sega Master System, Game Gear).

These addresses are for the Sega Master System version.

Note that sizes are listed in decimal.

Offset	Size		Description
----	----		-----------
C000	4096		Level layout
D063	1		Sprite 1 X value on camera
D064	1		Sprite 1 Y value on camera
D075	1		Sprite 2 X value on camera
D076	1		Sprite 2 Y value on camera
D100	440		Camera data?
D1B8	72		Empty
D203	1		Controller input (FF none, XE up, XD Down, XB Left, X7 Right, CX Button 1, DX Button 2)
D205	1		Level type|Normal/Demo switch
D207	1		Timer/Pause flag?
D20A	1		Monitor flash flag
D213	3		Time bonus
D216	1		Time bonus hex number & Continue countdown
D219	1		Title Screen trigger?
D223	2		Total Frame tally in levels
D225	6		Empty?
D22B	1		autopalette cycles 1
D230	1		autopalette cycles 2
D246	1		Lives value
D251	1		Freeroll Camera X
D252	1		Freeroll Camera Y
D257	1		Camera place X
D258	1		Camera place Y
D25A	2		Camera X values
D25D	2		Camera Y values
D271	2		Camera Y values 2
D27F	1		Emeralds collected counter
D280	1		Extra Lives gained by monitors counter (except special stages)
D281	1		Special Stages entered
D282	1		Special Stages complete 1
D283	1		Death flag for bonus
D284	1		Continue counter
D285	1		Special Stages complete 2
D288	1		After landing post flag
D289	1		Timer after hitting post/machine to fading out level
D28D	1		Invincibility timer
D297	1		Rings frames
D299	2		How long Sonic stands still for
D2A5	1		Color Cycle speed
D2A6	1		Color cycles auto
D2A7	1		Color cycle of levels
D2AA	1		Rings
D2B4	1		Monitor flash flag 2
D2B7	2		Camera position
D2B9	1		Sonic's status sprite
D2BA	4		Score
D2AC	1		Pause switch
D2CE	3		Timer
D2D9	2		Sonic's Y position (blocks)
D2DF	1		Sonic's sprite value?
D2E9	1		Sky Base Lightning timer (AB)
D2FB	1		Sonic bubble pickup frames
D2FF	3		Special Bonus score
D321	1		Ring pickup frames
D37E	62		Sprite block data
D3BC	32		Palette fade in/out block
D3FE	2		Sonic's X position (free)
D401	2		Sonic's Y position (free)
D410	1		Sonic's sprite flag
D411	1		Speed shoes timer
D41B	1		Labyrinth water height
D73B	1221		Empty
DC0A	3		Tempo of music
DC2C	2		Channel 1 music
DC59	2		Channel 2 music
DC86	2		Channel 3 music
DD12	679		Empty