aboutsummaryrefslogtreecommitdiffstats
path: root/engine/pokedex_rating.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-05-26 14:04:56 -0700
committeryenatch <yenatch@gmail.com>2014-05-26 22:04:39 -0700
commit40c17c906b2b3f65b3b04b1933b90238a7ac5566 (patch)
tree6de26c959808d5a792b692f2300c33557c1dbfab /engine/pokedex_rating.asm
parentDon't hardcode wram sections (except for alignment). (diff)
downloadpokeyellow-40c17c906b2b3f65b3b04b1933b90238a7ac5566.tar.gz
pokeyellow-40c17c906b2b3f65b3b04b1933b90238a7ac5566.tar.xz
pokeyellow-40c17c906b2b3f65b3b04b1933b90238a7ac5566.zip
Remove most static wram addresses. Use labels instead.
For unknown addresses, use "w<address>". Label overleads are still an issue.
Diffstat (limited to 'engine/pokedex_rating.asm')
-rwxr-xr-xengine/pokedex_rating.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/pokedex_rating.asm b/engine/pokedex_rating.asm
index f3aeeb42..080025c6 100755
--- a/engine/pokedex_rating.asm
+++ b/engine/pokedex_rating.asm
@@ -2,12 +2,12 @@ DisplayDexRating: ; 44169 (11:4169)
ld hl, wPokedexSeen
ld b, wPokedexSeenEnd - wPokedexSeen
call CountSetBits
- ld a, [$D11E] ; result of CountSetBits (seen count)
+ ld a, [wd11e] ; result of CountSetBits (seen count)
ld [$FFDB], a
ld hl, wPokedexOwned
ld b, wPokedexOwnedEnd - wPokedexOwned
call CountSetBits
- ld a, [$D11E] ; result of CountSetBits (own count)
+ ld a, [wd11e] ; result of CountSetBits (own count)
ld [$FFDC], a
ld hl, DexRatingsTable
.findRating
@@ -23,10 +23,10 @@ DisplayDexRating: ; 44169 (11:4169)
ld a, [hli]
ld h, [hl]
ld l, a ; load text pointer into hl
- ld a, [$D747]
+ ld a, [wd747]
bit 3, a
res 3, a
- ld [$D747], a
+ ld [wd747], a
jr nz, .label3
push hl
ld hl, PokedexRatingText_441cc
@@ -36,7 +36,7 @@ DisplayDexRating: ; 44169 (11:4169)
callba Func_7d13b
jp WaitForTextScrollButtonPress ; wait for button press
.label3
- ld de, $CC5B
+ ld de, wcc5b
ld a, [$FFDB]
ld [de], a
inc de