Skip to content
Patrick Mollohan edited this page Sep 14, 2023 · 14 revisions

WRAM Table

This is a table for documenting WRAM addresses and their purposes. The information in the table is subject to change as disassembly continues.

Address Symbol Purpose Read Write Notes
$0032
$0034
TEMP General $80EF72 $80EF60 Stores temporary values such as the last frame of a dialog box or total strength/defense
$0092
$0093
GOLD_L
GOLD_H
Inventory Stores the current gold count
$00C2
$00C3
DIALOG_LINE_L
DIALOG_LINE_H
Dialog Box Stores the index of the string to be displayed in the dialog box
$021A SELECTED_CHAR Character Stats Stores the currently selected character on the character stats screen
$0220
$0221
SAM_HP_L
SAM_HP_H
Character Stats Stores Sam's current health
$0222
$0223
MERRY_HP_L
MERRY_HP_H
Character Stats Stores Merry's current health
$0224
$0225
FRODO_HP_L
FRODO_HP_H
Character Stats Stores Frodo's current health
$0226
$0227
PIPPIN_HP_L
PIPPIN_HP_H
Character Stats Stores Pippin's current health
$0228
$0229
LEGOLAS_HP_L
LEGOLAS_HP_H
Character Stats Stores Legolas's current health
$022A
$022B
ARAGORN_HP_L
ARAGORN_HP_H
Character Stats Stores Aragorn's current health
$022C
$022D
GIMLI_HP_L
GIMLI_HP_H
Character Stats Stores Gimli's current health
$022E
$022F
GANDALF_HP_L
GANDALF_HP_H
Character Stats Stores Gandalf's current health
$0230
$0231
? ? Maybe an indication Boromir was supposed to join the Fellowship?
$0232
$0233
SAM_MAX_HP_L
SAM_MAX_HP_H
Character Stats Stores Sam's maximum health
$0234
$0235
MERRY_MAX_HP_L
MERRY_MAX_HP_H
Character Stats Stores Merry's maximum health
$0236
$0237
FRODO_MAX_HP_L
FRODO_MAX_HP_H
Character Stats Stores Frodo's maximum health
$0238
$0239
PIPPIN_MAX_HP_L
PIPPIN_MAX_HP_H
Character Stats Stores Pippin's maximum health
$023A
$023B
LEGOLAS_MAX_HP_L
LEGOLAS_MAX_HP_H
Character Stats Stores Legolas's maximum health
$023C
$023D
ARAGORN_MAX_HP_L
ARAGORN_MAX_HP_H
Character Stats Stores Aragorn's maximum health
$023E
$023F
GIMLI_MAX_HP_L
GIMLI_MAX_HP_H
Character Stats Stores Gimli's maximum health
$0240
$0241
GANDALF_MAX_HP_L
GANDALF_MAX_HP_H
Character Stats Stores Gandalf's maximum health
$0242
$0243
SAM_EXP_L
SAM_EXP_H
Character Stats Stores Sam's experience points
$0244
$0245
MERRY_EXP_L
MERRY_EXP_H
Character Stats Stores Merry's experience points
$0246
$0247
FRODO_EXP_L
FRODO_EXP_H
Character Stats Stores Frodo's experience points
$0248
$0249
PIPPIN_EXP_L
PIPPIN_EXP_H
Character Stats Stores Pippin's experience points
$024A
$024B
LEGOLAS_EXP_L
LEGOLAS_EXP_H
Character Stats Stores Legolas's experience points
$024C
$024D
ARAGORN_EXP_L
ARAGORN_EXP_H
Character Stats Stores Aragorn's experience points
$024E
$024F
GIMLI_EXP_L
GIMLI_EXP_H
Character Stats Stores Gimli's experience points
$0250
$0251
GANDALF_EXP_L
GANDALF_EXP_H
Character Stats Stores Gandalf's experience points
$0252
$0253
SAM_LVL_L
SAM_LVL_H
Character Stats Stores Sam's current level
$0254
$0255
MERRY_LVL_L
MERRY_LVL_H
Character Stats Stores Merry's current level
$0256
$0257
FRODO_LVL_L
FRODO_LVL_H
Character Stats Stores Frodo's current level
$0258
$0259
PIPPIN_LVL_L
PIPPIN_LVL_H
Character Stats Stores Pippin's current level
$025A
$025B
LEGOLAS_LVL_L
LEGOLAS_LVL_H
Character Stats Stores Legolas's current level
$025C
$025D
ARAGORN_LVL_L
ARAGORN_LVL_H
Character Stats Stores Aragorn's current level
$025E
$025F
GIMLI_LVL_L
GIMLI_LVL_H
Character Stats Stores Gimli's current level
$0260
$0261
GANDALF_LVL_L
GANDALF_LVL_H
Character Stats Stores Gandalf's current level
$0262
$0263
SAM_WEAPON_L
SAM_WEAPON_H
Character Stats Stores Sam's weapon
$0264
$0265
MERRY_WEAPON_L
MERRY_WEAPON_H
Character Stats Stores Merry's weapon
$0266
$0267
FRODO_WEAPON_L
FRODO_WEAPON_H
Character Stats Stores Frodo's weapon
$0268
$0269
PIPPIN_WEAPON_L
PIPPIN_WEAPON_H
Character Stats Stores Pippin's weapon
$026A
$026B
LEGOLAS_WEAPON_L
LEGOLAS_WEAPON_H
Character Stats Stores Legolas's weapon
$026C
$026D
ARAGORN_WEAPON_L
ARAGORN_WEAPON_H
Character Stats Stores Aragorn's weapon
$026E
$026F
GIMLI_WEAPON_L
GIMLI_WEAPON_H
Character Stats Stores Gimli's weapon
$0270
$0271
GANDALF_WEAPON_L
GANDALF_WEAPON_H
Character Stats Stores Gandalf's weapon
$0272
$0273
SAM_ARMOR_L
SAM_ARMOR_H
Character Stats Stores Sam's armor
$0274
$0275
MERRY_ARMOR_L
MERRY_ARMOR_H
Character Stats Stores Merry's armor
$0276
$0277
FRODO_ARMOR_L
FRODO_ARMOR_H
Character Stats Stores Frodo's armor
$0278
$0279
PIPPIN_ARMOR_L
PIPPIN_ARMOR_H
Character Stats Stores Pippin's armor
$027A
$027B
LEGOLAS_ARMOR_L
LEGOLAS_ARMOR_H
Character Stats Stores Legolas's armor
$027C
$027D
ARAGORN_ARMOR_L
ARAGORN_ARMOR_H
Character Stats Stores Aragorn's armor
$027E
$027F
GIMLI_ARMOR_L
GIMLI_ARMOR_H
Character Stats Stores Gimli's armor
$0280
$0281
GANDALF_ARMOR_L
GANDALF_ARMOR_H
Character Stats Stores Gandalf's armor
$02AA
$02AB
$02AC
$02AD
$02AE
$02AF
$02B0
$02B1
$02B2
$02B3
$02B4
$02B5
INVENTORY_0
INVENTORY_1
INVENTORY_2
INVENTORY_3
INVENTORY_4
INVENTORY_5
INVENTORY_6
INVENTORY_7
INVENTORY_8
INVENTORY_9
INVENTORY_10
INVENTORY_11
Inventory Stores the currently obtained items
$02B6
$02B7
CURR_ITEM_L
CURR_ITEM_H
Inventory Stores the currently equipped item
$02C4 JOY1_D1 Joypad $80F70E
$80F74A
$80F750
Stores the value from JOY1L ($4218)
$02C5 JOY_LOOP Joypad $80F776 Stores a loop counter used for joypad/mouse loops
$02C8 MOUSE_CON Mouse $80F702
$80F72A
$80F717 Stores the connection status of the SNES mouse
$02CA MOUSE_Y Mouse $80F71D Stores the Y-direction status of the SNES mouse
$02CC MOUSE_X Mouse $80F71A Stores the X-direction status of the SNES mouse
$02CE MOUSE_SPEED Mouse $80F78E Stores the speed status of the SNES mouse
$02D0 MOUSE_TURBO Mouse $80F720 Stores the button turbo status of the SNES mouse
$02D2 MOUSE_TRIG Mouse $80F723 Stores the button trigger status of the SNES mouse
$02D4 MOUSE_PREV Mouse $80F726 Stores the previous switch status of the SNES mouse
$02D6 JOY1_CON Joypad $80F734 Stores the connection status of joypad 1
$035A
$035B
CURR_SELECTED_ITEM_L
CURR_SELECTED_ITEM_H
Inventory Stores the index of the currently highlighted item in the inventory screen
$035C
$035D
PREV_SELECTED_ITEM_L
PREV_SELECTED_ITEM_H
Inventory Stores the index of the previously highlighted item in the inventory screen
$0374 DIALOG_PROP Dialog Box $80EF67 Stores the properties of the currently drawn dialog box
$03F3 BOROMIR_HORN_USES Inventory Stores the number of times the Horn of Boromir was used
$03F5 STUN_ORCS_TROLLS Gameplay Stores the stun state of orcs and trolls after using the Horn of Boromir
$0400 SCREEN_BRIGHTNESS Brightness Stores the screen's brightness state
$0407 CURR_FRAME Frame Count $80EF59
$80EF6F
$80854D
$8086A7
Stores the frame count
$0465 JOY1_STATE Joypad $80EF62 Stores the current state of joypad 1
$128F
$1290
PLAYER_X_L
PLAYER_X_H
Position Stores the player's current X position
$12B7
$12B8
PLAYER_Y_L
PLAYER_Y_H
Position Stores the player's current Y position