aboutsummaryrefslogtreecommitdiffstats
path: root/ram
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-06-15 12:18:00 -0400
committerGitHub <noreply@github.com>2024-06-15 12:18:00 -0400
commitfc23e72a39eb9cb9ca0651ea805abb6f47ee458c (patch)
treed2c648b27d20849b6bbeddab6f5004b752da741e /ram
parentAdd comment about audio engine perfect pitch bug (#451) (diff)
downloadpokeyellow-fc23e72a39eb9cb9ca0651ea805abb6f47ee458c.tar.gz
pokeyellow-fc23e72a39eb9cb9ca0651ea805abb6f47ee458c.tar.xz
pokeyellow-fc23e72a39eb9cb9ca0651ea805abb6f47ee458c.zip
Identify some unused WRAM variables (#453)
Diffstat (limited to 'ram')
-rw-r--r--ram/wram.asm36
1 files changed, 16 insertions, 20 deletions
diff --git a/ram/wram.asm b/ram/wram.asm
index dd7248ca..12a73403 100644
--- a/ram/wram.asm
+++ b/ram/wram.asm
@@ -1,6 +1,6 @@
SECTION "Audio RAM", WRAM0
-wUnusedC000:: db
+wUnusedMusicByte:: db
wSoundID:: db
@@ -567,20 +567,17 @@ ENDU
ds 1
wNPCMovementDirections2Index::
-wUnusedCD37::
+wUnusedLinkMenuByte::
; number of items in wFilteredBagItems list
wFilteredBagItemsCount:: db
; the next simulated joypad state is at wSimulatedJoypadStatesEnd plus this value minus 1
; 0 if the joypad state is not being simulated
wSimulatedJoypadStatesIndex:: db
-
; written to but nothing ever reads it
-wUnusedCD39:: db
-
+wUnusedSimulatedJoypadStatesMask:: db
; written to but nothing ever reads it
-wUnusedCD3A:: db
-
+wUnusedOverrideSimulatedJoypadStatesIndex:: db
; mask indicating which real button presses can override simulated ones
; XXX is it ever not 0?
wOverrideSimulatedJoypadStatesMask:: db
@@ -786,7 +783,7 @@ wBadgeOrFaceTiles:: ds NUM_BADGES + 1
wTempObtainedBadgesBooleans:: ds NUM_BADGES
NEXTU
-wUnusedCD3D:: db
+wUnusedCreditsByte:: db
; the number of credits mons that have been displayed so far
wNumCreditsMonsDisplayed:: db
@@ -1065,7 +1062,7 @@ wItemList:: ds 16
wListPointer:: dw
; used to store pointers, but never read
-wUnusedCF8D:: dw
+wUnusedNamePointer:: dw
wItemPrices:: dw
@@ -1397,7 +1394,7 @@ wOptionsInitialized::
wNewSlotMachineBallTile::
; how much to add to the X/Y coord
wCoordAdjustmentAmount::
-wUnusedD08A::
+wUnusedWaterDropletsByte::
db
wSlideMonDelay::
@@ -1442,7 +1439,7 @@ wPartyMenuAnimMonEnabled::
; non-zero when enabled. causes nest locations to blink on and off.
; the town selection cursor will blink regardless of what this value is
wTownMapSpriteBlinkingEnabled::
-wUnusedD09B:: db
+wUnusedMoveAnimByte:: db
; current destination address in OAM for frame blocks (big endian)
wFBDestAddr:: dw
@@ -1553,7 +1550,7 @@ wMoveNum:: db
wMovesString:: ds 56
-wUnusedD119:: db
+wUnusedCurMapTilesetCopy:: db
; wWalkBikeSurfState is sometimes copied here, but it doesn't seem to be used for anything
wWalkBikeSurfStateCopy:: db
@@ -1688,7 +1685,7 @@ wSerialPlayerDataBlock:: ; ds $1a8
; that case, this would be ESCAPE_ROPE.
wPseudoItemID:: db
-wUnusedD153:: db
+wUnusedAlreadyOwnedFlag:: db
ds 2
@@ -1791,8 +1788,7 @@ wYBlockCoord:: db
wXBlockCoord:: db
wLastMap:: db
-
-wUnusedD366:: db
+wUnusedLastMapWidth:: db
wCurMapHeader::
wCurMapTileset:: db
@@ -1902,7 +1898,7 @@ wCurrentBoxNum:: db
; number of HOF teams
wNumHoFTeams:: db
-wUnusedD5A3:: db
+wUnusedMapVariable:: db
wPlayerCoins:: dw ; BCD
@@ -2084,7 +2080,8 @@ wLastBlackoutMap:: db
; destination map (for certain types of special warps, not ordinary walking)
wDestinationMap:: db
-wUnusedD71B:: db
+; initialized to $ff, but nothing ever reads it
+wUnusedPlayerDataByte:: db
; used to store the tile in front of the boulder when trying to push a boulder
; also used to store the result of the collision check ($ff for a collision and $00 for no collision)
@@ -2096,7 +2093,7 @@ wDungeonWarpDestinationMap:: db
; which dungeon warp within the source map was used
wWhichDungeonWarp:: db
-wUnusedD71F:: db
+wUnusedCardKeyGateID:: db
ds 8
@@ -2254,8 +2251,7 @@ wTrainerHeaderPtr:: dw
; the trainer the player must face after getting a wrong answer in the Cinnabar
; gym quiz
-wOpponentAfterWrongAnswer::
-wUnusedDA38:: db
+wOpponentAfterWrongAnswer:: db
; index of current map script, mostly used as index for function pointer array
; mostly copied from map-specific map script pointer and written back later