From b028e138347e9de72277c525b11d0592ba14498d Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Sat, 14 Feb 2015 01:40:38 -0700 Subject: =?UTF-8?q?Give=20an=20internal=20Pok=C3=A9dex=20status=20variable?= =?UTF-8?q?=20its=20own=20label.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This new label is used in revision 1.1 of Pokémon Crystal. --- engine/pokedex.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine') diff --git a/engine/pokedex.asm b/engine/pokedex.asm index 004836f62..f1a1d978c 100644 --- a/engine/pokedex.asm +++ b/engine/pokedex.asm @@ -314,7 +314,7 @@ Function401ae: ; 401ae (10:41ae) Function40217: ; 40217 (10:4217) call LowVolume xor a - ld [wcf65], a + ld [wPokedexStatus], a xor a ld [hBGMapMode], a ; $ff00+$d4 call ClearSprites @@ -373,9 +373,9 @@ Function40258: ; 40258 (10:4258) ; 40292 (10:4292) Function40292: ; 40292 - ld a, [wcf65] + ld a, [wPokedexStatus] xor $1 - ld [wcf65], a + ld [wPokedexStatus], a call Function40bb1 ld [wc2d6], a callba Function4424d @@ -386,7 +386,7 @@ Function40292: ; 40292 Function402aa: ; 402aa (10:42aa) call Function41401 xor a - ld [wcf65], a + ld [wPokedexStatus], a xor a ld [hBGMapMode], a ; $ff00+$d4 call Function407fd -- cgit v1.2.3 From 828d6b92f0488dc1779f4b282610cead039ffbf9 Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Sat, 14 Feb 2015 01:51:34 -0700 Subject: Add the ability to build Crystal 1.1. --- engine/pokedex.asm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine') diff --git a/engine/pokedex.asm b/engine/pokedex.asm index f1a1d978c..dcbc1832e 100644 --- a/engine/pokedex.asm +++ b/engine/pokedex.asm @@ -66,7 +66,11 @@ InitPokedex: ; 40063 call Function414b7 ld hl, wc6d0 +IF DEF(CRYSTAL11) + ld bc, $0116 +ELSE ld bc, $0115 +ENDC xor a call ByteFill -- cgit v1.2.3