aboutsummaryrefslogtreecommitdiffstats
path: root/home
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 /home
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 'home')
-rw-r--r--home/names2.asm4
-rw-r--r--home/overworld.asm8
-rw-r--r--home/pathfinding.asm2
3 files changed, 7 insertions, 7 deletions
diff --git a/home/names2.asm b/home/names2.asm
index 7b905fc5..c27739d7 100644
--- a/home/names2.asm
+++ b/home/names2.asm
@@ -88,9 +88,9 @@ GetName::
call CopyData
.gotPtr
ld a, e
- ld [wUnusedCF8D], a
+ ld [wUnusedNamePointer], a
ld a, d
- ld [wUnusedCF8D + 1], a
+ ld [wUnusedNamePointer + 1], a
pop de
pop bc
pop hl
diff --git a/home/overworld.asm b/home/overworld.asm
index 885a5327..eda5428a 100644
--- a/home/overworld.asm
+++ b/home/overworld.asm
@@ -491,7 +491,7 @@ WarpFound2::
ld a, [wCurMap]
ld [wLastMap], a
ld a, [wCurMapWidth]
- ld [wUnusedD366], a ; not read
+ ld [wUnusedLastMapWidth], a
ldh a, [hWarpDestinationMap]
ld [wCurMap], a
cp ROCK_TUNNEL_1F
@@ -1869,7 +1869,7 @@ JoypadOverworld::
; if done simulating button presses
.doneSimulating
xor a
- ld [wUnusedCD3A], a
+ ld [wUnusedOverrideSimulatedJoypadStatesIndex], a
ld [wSimulatedJoypadStatesIndex], a
ld [wSimulatedJoypadStatesEnd], a
ld [wJoyIgnore], a
@@ -2011,7 +2011,7 @@ LoadPlayerSpriteGraphicsCommon::
LoadMapHeader::
farcall MarkTownVisitedAndLoadMissableObjects
ld a, [wCurMapTileset]
- ld [wUnusedD119], a
+ ld [wUnusedCurMapTilesetCopy], a
ld a, [wCurMap]
call SwitchToMapRomBank
ld a, [wCurMapTileset]
@@ -2308,7 +2308,7 @@ LoadMapData::
ldh [hSCY], a
ldh [hSCX], a
ld [wWalkCounter], a
- ld [wUnusedD119], a
+ ld [wUnusedCurMapTilesetCopy], a
ld [wWalkBikeSurfStateCopy], a
ld [wSpriteSetID], a
call LoadTextBoxTilePatterns
diff --git a/home/pathfinding.asm b/home/pathfinding.asm
index 77cb5c4b..766e7b37 100644
--- a/home/pathfinding.asm
+++ b/home/pathfinding.asm
@@ -40,7 +40,7 @@ MoveSprite_::
ld [wSimulatedJoypadStatesEnd], a
dec a
ld [wJoyIgnore], a
- ld [wUnusedCD3A], a
+ ld [wUnusedOverrideSimulatedJoypadStatesIndex], a
ret
; divides [hDividend2] by [hDivisor2] and stores the quotient in [hQuotient2]