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.

Metroid/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Started Metroid RAM Map)
 
(Added a few addresses to Metroid's RAM map, and touched up a couple of others.)
Line 4: Line 4:
!RAM !! Purpose
!RAM !! Purpose
|-
|-
|106-107 || Energy Variable
|106 || Energy Variable.  High nybble contains the "ones" place of the amount of energy Samus currently has.
|-
|-
|10E || Weapon selection: 00-Arm Cannon, 01-Missile. Set this to FF for lots of missiles :)
|107 || Energy Variable. Low nybble contains the "tens" place of the amount of energy Samus currently has.
|-
|-
|200-2FF || Sprite DMA
|10E || Weapon selection: 00=Arm Cannon, 01=Missile. Set this to FF for lots of missiles! :)
|-
|200-2FF || Sprite DMA.
|-
|6878 || Special items Samus is currently carrying.  Contains an 8-bit value from 00 to FF (0 to 255).  Each bit represents one of eight special items.  Hex values are as follows: 1="Bombs", 2="Hi-Jump", 4="Long Beam", 8="Screw Attack", 10="Maru Mari", 20="Varia", 40="Wave Beam", 80="Ice Beam".  For multiple weapons, add values in hex. (Ex: 16 for Maru Mari, Long Beam, and Hi-Jump.)
|-
|6879 || The maximum number of missiles that Samus may carry at any given time.  Contains an 8-bit value from 00 to FF (0 to 255).
|-
|687A || The actual number of missiles that Samus is currently carrying.  Contains an 8-bit value from 00 to FF (0 to 255).
|}
|}

Revision as of 17:06, 30 January 2006

Chip tiny.png The following article is a RAM map for Metroid.

RAM Purpose
106 Energy Variable. High nybble contains the "ones" place of the amount of energy Samus currently has.
107 Energy Variable. Low nybble contains the "tens" place of the amount of energy Samus currently has.
10E Weapon selection: 00=Arm Cannon, 01=Missile. Set this to FF for lots of missiles! :)
200-2FF Sprite DMA.
6878 Special items Samus is currently carrying. Contains an 8-bit value from 00 to FF (0 to 255). Each bit represents one of eight special items. Hex values are as follows: 1="Bombs", 2="Hi-Jump", 4="Long Beam", 8="Screw Attack", 10="Maru Mari", 20="Varia", 40="Wave Beam", 80="Ice Beam". For multiple weapons, add values in hex. (Ex: 16 for Maru Mari, Long Beam, and Hi-Jump.)
6879 The maximum number of missiles that Samus may carry at any given time. Contains an 8-bit value from 00 to FF (0 to 255).
687A The actual number of missiles that Samus is currently carrying. Contains an 8-bit value from 00 to FF (0 to 255).