The Legend of Zelda/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Corrected $667 and $668, added $669 and $66A)
m (Put a 0 in front of the < 1000 range of RAM addresses. Also noted the prescence of hex with the "$".)
Line 4: Line 4:
!RAM !! Purpose
!RAM !! Purpose
|-
|-
|04C || Countdown until Link can use his sword again after touching a white bubble.
|004C || Countdown until Link can use his sword again after touching a white bubble.
|-
|-
|070 || Link's horizontal position on the screen.
|0070 || Link's X position on the screen.
|-
|-
|084 || Link's vertical position on the screen.
|0084 || Link's Y position on the screen.
|-
|-
|098 || The direction Link is facing
|0098 || The direction Link is facing
|-
|-
|52E || 01 if Link's use of his sword has been disabled by a red bubble, 00 otherwise.
|052E || $01 if Link's use of his sword has been disabled by a red bubble, $00 otherwise.
|-
|-
|62D || Current quest for first save slot: 00-First, 01-Second
|062D || Current quest for first save slot: $00-First, $01-Second
|-
|-
|62E || Current quest for second save slot: 00-First, 01-Second
|062E || Current quest for second save slot: $00-First, $01-Second
|-
|-
|62F || Current quest for third save slot: 00-First, 01-Second
|062F || Current quest for third save slot: $00-First, $01-Second
|-
|-
|656 || Cursor position for selecting Link's B item.
|0656 || Cursor position for selecting Link's B item.
|-
|-
|657 || Current sword: 00-None, 01-Sword, 02-White Sword, 03-Magical Sword
|0657 || Current sword: $00-None, $01-Sword, $02-White Sword, $03-Magical Sword
|-
|-
|658 || Number of Bombs
|0658 || Number of Bombs
|-
|-
|659 || Arrow status: 00-None, 01-Arrow, 02 Silver Arrow
|0659 || Arrow status: $00-None, $01-Arrow, $02-Silver Arrow
|-
|-
|65A || Link has Bow if 01
|065A || Link has Bow if $01
|-
|-
|65B || Status of candle: 00-None, 01-Blue Candle, 02-Red Candle
|065B || Status of candle: 00-None, $01-Blue Candle, $02-Red Candle
|-
|-
|65C || Link has Whistle if 01
|065C || Link has Whistle if $01
|-
|-
|65D || Link has Food if 01
|065D || Link has Food if $01
|-
|-
|65E || Status of Potion: 00-None/Letter, 01-Life Potion, 02-2ND Potion
|065E || Status of Potion: 00-None/Letter, 01-Life Potion, 02-2ND Potion
|-
|-
|65F || Link has Magical Rod if 01
|065F || Link has Magical Rod if $01
|-
|-
|660 || Link has Raft if 01
|0660 || Link has Raft if $01
|-
|-
|661 || Link has Magic Book if 01
|0661 || Link has Magic Book if $01
|-
|-
|662 || Status of Ring: 00-None, 01-Blue Ring, 02-Red Ring.  Note: Changing this value will not change Link's color.
|0662 || Status of Ring: $00-None, $01-Blue Ring, $02-Red Ring.  Note: Changing this value will not change Link's color.
|-
|-
|663 || Link had Step Ladder if 01
|0663 || Link had Step Ladder if $01
|-
|-
|664 || Link has Magical Key if 01
|0664 || Link has Magical Key if $01
|-
|-
|665 || Link has Power Bracelet if 01
|0665 || Link has Power Bracelet if $01
|-
|-
|666 || Link has Letter if >= 01. Link can buy potions from the old woman if 02.
|0666 || Link has Letter if >= $01. Link can buy potions from the old woman if $02.
|-
|-
|667 || Compass status for Levels 1 through 8 (when value is converted to binary, a 1 represents having the Compass and a 0 represents not having it)
|0667 || Compass status for Levels 1 through 8 (when value is converted to binary, a $01 represents having the Compass and a $00 represents not having it)
|-
|-
|668 || Map status for Levels 1 through 8 (when value is converted to binary, a 1 represents having the Map and a 0 represents not having it)
|0668 || Map status for Levels 1 through 8 (when value is converted to binary, a $01 represents having the Map and a $00 represents not having it)
|-
|-
|669 || Link has Level 9 Compass if 01
|0669 || Link has Level 9 Compass if $01
|-
|-
|66A || Link has Level 9 Map if 01
|066A || Link has Level 9 Map if $01
|-
|-
|66C || Link has Clock if 01
|066C || Link has Clock if $01
|-
|-
|66D || Number of Rupees
|066D || Number of Rupees
|-
|-
|66E || Number of Keys
|066E || Number of Keys
|-
|-
|66F || Bit0-3=how many hearts are filled. Bit4-7 = Number of heart containers - 1 (10 = 2 Heart Containers with none filled)
|066F || Bit 0-3=how many hearts are filled. Bit 4-7 = Number of heart containers - 1 ($10 = 2 Heart Containers with none filled)
|-
|-
|670 || The heart following the last filled heart. 7F to FF = full, 00 = empty, and 00 to 7F = half full.
|0670 || The heart following the last filled heart. $7F to $FF = full, $00 = empty, and $00 to $7F = half full.
Gets decreased depending on enemy and what ring Link has.
Gets decreased depending on enemy and what ring Link has.
|-
|-
|671 || Triforce pieces (when value is converted to binary, a 1 represents having the piece and a 0 represents not having it)
|0671 || Triforce pieces (when value is converted to binary, a $01 represents having the piece and a $00 represents not having it)
See [http://img519.imageshack.us/img519/2193/tribitflags0mi.jpg this] image for a visualization.
See [http://img519.imageshack.us/img519/2193/tribitflags0mi.jpg this] image for a visualization.
|-
|-
|674 || Link has Boomerang if 01.  Note: 675 overrides this variable.
|0674 || Link has Boomerang if $01.  Note: 0675 overrides this variable.
|-
|-
|675 || Link has Magical Boomerang if 01
|0675 || Link has Magical Boomerang if $01
|-
|-
|676 || Link has Magic Shield if 01
|0676 || Link has Magic Shield if $01
|-
|-
|67C || Maximum number of bombs. Starts out as 08.
|067C || Maximum number of bombs. Starts out as $08.
|-
|-
|67D || Number of rupees to add
|067D || Number of rupees to add
|-
|-
|67E || Number of rupees to subtract
|067E || Number of rupees to subtract
|-
|-
|6804|| Link's tunic color (29 = green, 32 = blue, 16 = red)
|6804|| Link's tunic color ($29 = green, $32 = blue, $16 = red)
|-
|-
|6B92|| Link's tunic color. This value is overwritten with 6804 when Link exits a cave or enters or exits a level
|6B92|| Link's tunic color. This value is overwritten with 6804 when Link exits a cave or enters or exits a level

Revision as of 15:55, 16 January 2008

Chip tiny.png The following article is a RAM map for The Legend of Zelda.

RAM Purpose
004C Countdown until Link can use his sword again after touching a white bubble.
0070 Link's X position on the screen.
0084 Link's Y position on the screen.
0098 The direction Link is facing
052E $01 if Link's use of his sword has been disabled by a red bubble, $00 otherwise.
062D Current quest for first save slot: $00-First, $01-Second
062E Current quest for second save slot: $00-First, $01-Second
062F Current quest for third save slot: $00-First, $01-Second
0656 Cursor position for selecting Link's B item.
0657 Current sword: $00-None, $01-Sword, $02-White Sword, $03-Magical Sword
0658 Number of Bombs
0659 Arrow status: $00-None, $01-Arrow, $02-Silver Arrow
065A Link has Bow if $01
065B Status of candle: 00-None, $01-Blue Candle, $02-Red Candle
065C Link has Whistle if $01
065D Link has Food if $01
065E Status of Potion: 00-None/Letter, 01-Life Potion, 02-2ND Potion
065F Link has Magical Rod if $01
0660 Link has Raft if $01
0661 Link has Magic Book if $01
0662 Status of Ring: $00-None, $01-Blue Ring, $02-Red Ring. Note: Changing this value will not change Link's color.
0663 Link had Step Ladder if $01
0664 Link has Magical Key if $01
0665 Link has Power Bracelet if $01
0666 Link has Letter if >= $01. Link can buy potions from the old woman if $02.
0667 Compass status for Levels 1 through 8 (when value is converted to binary, a $01 represents having the Compass and a $00 represents not having it)
0668 Map status for Levels 1 through 8 (when value is converted to binary, a $01 represents having the Map and a $00 represents not having it)
0669 Link has Level 9 Compass if $01
066A Link has Level 9 Map if $01
066C Link has Clock if $01
066D Number of Rupees
066E Number of Keys
066F Bit 0-3=how many hearts are filled. Bit 4-7 = Number of heart containers - 1 ($10 = 2 Heart Containers with none filled)
0670 The heart following the last filled heart. $7F to $FF = full, $00 = empty, and $00 to $7F = half full.

Gets decreased depending on enemy and what ring Link has.

0671 Triforce pieces (when value is converted to binary, a $01 represents having the piece and a $00 represents not having it)

See this image for a visualization.

0674 Link has Boomerang if $01. Note: 0675 overrides this variable.
0675 Link has Magical Boomerang if $01
0676 Link has Magic Shield if $01
067C Maximum number of bombs. Starts out as $08.
067D Number of rupees to add
067E Number of rupees to subtract
6804 Link's tunic color ($29 = green, $32 = blue, $16 = red)
6B92 Link's tunic color. This value is overwritten with 6804 when Link exits a cave or enters or exits a level
So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?