Super Mario Bros. Deluxe/RAM map

From Data Crystal
Jump to navigation Jump to search

Chip tiny.png The following article is a RAM map for Super Mario Bros. Deluxe.

Addresses are for USA/Europe versions.

RAM Map

WRAM

Addr    Size    Description
----    ----    -----------
6000    8192    Current level metatiles
                * See Notes page for list of metatiles
C100      19    Current HUD tiles
C160       1    Level set
                * 00 - Super Mario Bros.
                * 01 - For Super Players
C162       1    Current level
                * See Notes page for values
C166       1    Hard mode flag
C17A       3    Score digits
C17D       2    Time digits
C17F       1    Lives count
C180       1    Time timer
C181       1    Time disable flag
C1A8       1    Current menu selection
                * 00 - Original 1985 (Goes to File Select)
                * 01 - Challenge Mode
                * 02 - Vs. Game
                * 03 - Super Mario Bros. For Super Players
                * 04 - Records
                * 05 - Album
                * 06 - Toy Box
                * 07 - You Vs. Boo
C1B9       1    Player Y position (map)
C1BA       1    Player X position (map)
C1C1       1    Player state
                * 00 - On ground
                * 01 - In the air
                * 02 - Free movement
                * 03 - Dead
                * 04 - On map
                * 05 - Stationary
                * 06 - Power down animation
                * 07 - Power-up animation
                * 08/0B - Sub-area transition
                * 09 - Fire Flower power-up animation
                * 0A - Auto-walking at end of castle
C1C2       1    Player pose
                * 00 - Standing
                * 01 - Walking 1
                * 02 - Walking 2
                * 03 - Turning around
                * 04 - Jumping
                * 05 - Swimming 1
                * 06 - Walking 3
                * 07 - Climbing 1
                * 08 - Swimming 2
                * 09 - Swimming 3
                * 0A - Swimming 4
                * 0B - Crouching
                * 0C - Climbing 2
                * 0D - Fireball shoot
                * 0E - Swimming 5
                * 0F - Mid-power up
                * 11 - Swimming 6
C1C3       1    Player direction
                * 00 - Left
                * 02 - Right
C1C5       1    Player growth flag
                * 00 - Small
                * 01 - Big
                * 02 and above - Glitchy, may crash game
C1C7       1    Jump height (always starts at 20 each time and decreases back to 0)
C1CA       2    Player X position
C1CC       2    Player Y position
C1CE       1    Player fireballs flag
C1D5       1    Invulnerability timer
C1DA       2    Star timer
C1DC       1    Colors to flash during Star
C1F2       1    Coin count
C383       1    Player select
                * 00 - Mario
                * 01 - Luigi
D000      15    Sprite states?
                * 00 - Empty
                * 01 - Load
                * 02 - Normal
                * 03 - Defeated (fall off screen)
D00F      15    Sprite slots
                * See Notes page for list of sprite IDs
DE00       1    Music pitch
DE60       1    Sound effect queue #1
                * See Notes page for list of sound effect IDs
DE61       1    Current sound effect playing #1
DE70       1    Sound effect queue #2
DE71       1    Current sound effect playing #2
DE78       1    Sound effect queue #3
DE79       1    Current sound effect playing #3
DE90       1    Length of current sound effect
DEB4       1    Length of current wave note
DEB6       1    Square 1 sweep flag
DEB8       1    Square 2 sweep flag
DEBA       1    Wave sweep flag
DECE       1    Music pause flag
DED0       1    "Hurry Up" tempo flag

HRAM

FF99       1    X position of Player
FFA7       1    X position of Level
FFA9       1    Y position
FFAB       1    X speed
FFAC       1    Y speed
FFB5       1    Current mode
                * See Notes page for values