diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-19 22:36:55 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-19 22:36:55 -0400 |
commit | dcaccec48176b0bb90e981ad106b7a6386fbd557 (patch) | |
tree | f892180f1cf6f8a6e44e863371ddbdaf049760e8 | |
parent | 8ff2f5e63999114f82777c91be4963470161573b (diff) |
phase 2 of specials disasm
-rwxr-xr-x | engine/main_menu.asm | 8 | ||||
-rwxr-xr-x | engine/specials.asm | 562 | ||||
-rw-r--r-- | home.asm | 3 | ||||
-rw-r--r-- | main.asm | 75 | ||||
-rw-r--r-- | wram.asm | 271 |
5 files changed, 502 insertions, 417 deletions
diff --git a/engine/main_menu.asm b/engine/main_menu.asm index 764390ec..fef1ec35 100755 --- a/engine/main_menu.asm +++ b/engine/main_menu.asm @@ -303,13 +303,13 @@ Function5c41: ; 5c41 (1:5c41) call Function5d15 call CloseSRAM - ld hl, wd5b7 + ld hl, wNumItems call Function5d15 - ld hl, wd5e1 + ld hl, wNumKeyItems call Function5d15 - ld hl, wd5fc + ld hl, wNumBalls call Function5d15 - ld hl, wd616 + ld hl, wPCItems call Function5d15 xor a diff --git a/engine/specials.asm b/engine/specials.asm index 9e0917ba..c4cf737e 100755 --- a/engine/specials.asm +++ b/engine/specials.asm @@ -149,9 +149,7 @@ Special_GameCornerPrizeMonCheckDex: ; c38a call FadeToMenu ld a, [wScriptVar] ld [wd151], a - ld a, $3e - ld hl, $7981 - rst FarCall + callba Functionfb981 call ExitAllMenus ret @@ -164,28 +162,28 @@ SpecialSeenMon: ; c3ac Special_FindGreaterThanThatLevel: ; c3b4 ld a, [wScriptVar] ld b, a - callba Functione6a9 + callba Functione6a9 ; same bank jr z, asm_c3f2 jr asm_c3ec Special_FindAtLeastThatHappy: ; c3c2 ld a, [wScriptVar] ld b, a - callba Functione6b0 + callba Functione6b0 ; same bank jr z, asm_c3f2 jr asm_c3ec Special_FindThatSpecies: ; c3d0 ld a, [wScriptVar] ld b, a - callba Functione6b7 + callba Functione6b7 ; same bank jr z, asm_c3f2 jr asm_c3ec Special_FindThatSpeciesYourTrainerID: ; c3de ld a, [wScriptVar] ld b, a - callba Functione6bd + callba Functione6bd ; same bank jr z, asm_c3f2 jr asm_c3ec @@ -211,188 +209,460 @@ Special_NameRival: ; c3f7 .DefaultName: IF DEF(GOLD) db "SILVER@" +ENDC -SpecialNameRater: ; c413 - dr $c413, $c41a - -Special_TownMap: ; c41a - dr $c41a, $c427 - -Special_UnownPrinter: ; c427 - dr $c427, $c434 - -Special_DisplayLinkRecord: ; c434 - dr $c434, $c441 - -Special_PlayerPC: ; c441 - dr $c441, $c450 - -Special_CheckMysteryGift: ; c450 - dr $c450, $c463 - -Special_GetMysteryGiftItem: ; c463 - dr $c463, $c4a4 - -BugContestJudging: ; c4a4 - dr $c4a4, $c4af - -MapRadio: ; c4af - dr $c4af, $c4ba - -Special_UnownPuzzle: ; c4ba - dr $c4ba, $c4cd - -Special_SlotMachine: ; c4cd - dr $c4cd, $c4da - -Special_CardFlip: ; c4da - dr $c4da, $c4e7 - -Special_DummyNonfunctionalGameCornerGame: ; c4e7 - dr $c4e7, $c535 - -Special_ClearBGPalettesBufferScreen: ; c535 - dr $c535, $c549 - -Special_CheckUnusedTwoDayTimer: ; c549 - dr $c549, $c556 - -Functionc556: ; c556 - dr $c556, $c588 +IF DEF(SILVER) + db "GOLD@" +ENDC -Functionc588: ; c588 - dr $c588, $c591 +SpecialNameRater: ; c413 (3:4413) + callba Functionfb7f7 + ret -Functionc591: ; c591 - dr $c591, $c5a3 +Special_TownMap: ; c41a (3:441a) + call FadeToMenu + callba Function9188a + call ExitAllMenus + ret -Functionc5a3: ; c5a3 - dr $c5a3, $c5ac +Special_UnownPrinter: ; c427 (3:4427) + call FadeToMenu + callba Function16e3a + call ExitAllMenus + ret -CountUnown: ; c5ac - dr $c5ac, $c5bb +Special_DisplayLinkRecord: ; c434 (3:4434) + call FadeToMenu + callba Function3f55d + call ExitAllMenus + ret -Functionc5bb: ; c5bb - dr $c5bb, $c5d6 +Special_PlayerPC: ; c441 (3:4441) + xor a + ld [wScriptVar], a + callba Function159b0 + ld a, c + ld [wScriptVar], a + ret -Functionc5d6: ; c5d6 - dr $c5d6, $c60b +Special_CheckMysteryGift: ; c450 (3:4450) + ld a, $0 + call OpenSRAM + ld a, [$abe2] + and a + jr z, .asm_c45c + inc a +.asm_c45c + ld [wScriptVar], a + call CloseSRAM + ret -Functionc60b: ; c60b - dr $c60b, $c611 +Special_GetMysteryGiftItem: ; c463 (3:4463) + ld a, $0 + call OpenSRAM + ld a, [$abe2] + ld [wd002], a + ld a, $1 + ld [wd009], a + ld hl, wNumItems + call ReceiveItem + jr nc, .asm_c497 + xor a + ld [$abe2], a + call CloseSRAM + ld a, [wd002] + ld [wd151], a + call GetItemName + ld hl, ReceivedMysteryGiftText ; $449f + call PrintText + ld a, $1 + ld [wScriptVar], a + ret -Functionc611: ; c611 - dr $c611, $c628 +.asm_c497 + call CloseSRAM + xor a + ld [wScriptVar], a + ret -Functionc628: ; c628 - dr $c628, $c638 +ReceivedMysteryGiftText: + text_jump ReceivedMysteryGiftText_ + db "@" -Functionc638: ; c638 - dr $c638, $c645 +BugContestJudging: ; c4a4 (3:44a4) + callba Function13a5f + ld a, b + ld [wScriptVar], a + ret -Functionc645: ; c645 - dr $c645, $c652 +MapRadio: ; c4af (3:44af) + ld a, [wScriptVar] + ld e, a + callba Function919c1 + ret -Functionc652: ; c652 - dr $c652, $c661 +Special_UnownPuzzle: ; c4ba (3:44ba) + call FadeToMenu + callba Functione199d + ld a, [wcfe4] + ld [wScriptVar], a + call ExitAllMenus + ret -FlagPredef: ; c661 - dr $c661, $c69d +Special_SlotMachine: ; c4cd (3:44cd) + call Functionc508 + ret c + ld a, BANK(Function92c36) + ld hl, Function92c36 + call Functionc4f4 + ret -HealParty: ; c69d - dr $c69d, $c6de -ENDC +Special_CardFlip: ; c4da (3:44da) + call Functionc508 + ret c + ld a, BANK(Functione0909) + ld hl, Functione0909 + call Functionc4f4 + ret -IF DEF(SILVER) - db "GOLD@" +Special_DummyNonfunctionalGameCornerGame: ; c4e7 (3:44e7) + call Functionc508 + ret c + ld a, BANK(Functione2668) + ld hl, Functione2668 + call Functionc4f4 + ret -SpecialNameRater: ; c411 - dr $c411, $c418 +Functionc4f4: ; c4f4 (3:44f4) + call Function3425 + call FadeToMenu + ld hl, wcfd8 + ld a, [hli] + push af + ld a, [hli] + ld h, [hl] + ld l, a + pop af + rst FarCall + call ExitAllMenus + ret -Special_TownMap: ; c418 - dr $c418, $c425 +Functionc508: ; c508 (3:4508) + ld hl, wCoins + ld a, [hli] + or [hl] + jr z, .asm_c51e + ld a, COIN_CASE + ld [wd002], a + ld hl, wNumItems + call CheckItem + jr nc, .asm_c523 + and a + ret -Special_UnownPrinter: ; c425 - dr $c425, $c432 +.asm_c51e + ld hl, .NoCoinsText + jr .asm_c526 -Special_DisplayLinkRecord: ; c432 - dr $c432, $c43f +.asm_c523 + ld hl, .NoCoinCaseText +.asm_c526 + call PrintText + scf + ret -Special_PlayerPC: ; c43f - dr $c43f, $c44e +.NoCoinsText: + text_jump NoCoinsText_ + db "@" -Special_CheckMysteryGift: ; c44e - dr $c44e, $c461 +.NoCoinCaseText: + text_jump NoCoinCaseText_ + db "@" -Special_GetMysteryGiftItem: ; c461 - dr $c461, $c4a2 +Special_ClearBGPalettesBufferScreen: ; c535 (3:4535) + call ClearBGPalettes + call BufferScreen + ret -BugContestJudging: ; c4a2 - dr $c4a2, $c4ad +Functionc53c: ; c53c (3:453c) + jr c, .asm_c543 + xor a + ld [wScriptVar], a + ret -MapRadio: ; c4ad - dr $c4ad, $c4b8 +.asm_c543 + ld a, $1 + ld [wScriptVar], a + ret -Special_UnownPuzzle: ; c4b8 - dr $c4b8, $c4cb +Special_CheckUnusedTwoDayTimer: ; c549 (3:4549) + callba Function118f8 + ld a, [wd984] + ld [wScriptVar], a + ret -Special_SlotMachine: ; c4cb - dr $c4cb, $c4d8 +Functionc556: ; c556 (3:4556) + ld a, [wScriptVar] + ld [wdd19], a + jr .asm_c566 + +.asm_c55e + ld a, d + ld [wdd17], a + ld a, e + ld [wdd18], a +.asm_c566 + ld hl, wDailyFlags + set 2, [hl] + ret -Special_CardFlip: ; c4d8 - dr $c4d8, $c4e5 +Functionc56c: + ld hl, wDailyFlags + bit 2, [hl] + jr z, .asm_c578 + xor a + ld [wScriptVar], a + ret -Special_DummyNonfunctionalGameCornerGame: ; c4e5 - dr $c4e5, $c533 +.asm_c578 + ld a, $1 + ld [wScriptVar], a + xor a + ld [wdd19], a + ld [wdd17], a + ld [wdd18], a + ret -Special_ClearBGPalettesBufferScreen: ; c533 - dr $c533, $c547 +Functionc588: ; c588 (3:4588) + callba Functionc7a40 + jp Functionc53c -Special_CheckUnusedTwoDayTimer: ; c547 - dr $c547, $c554 +Functionc591: ; c591 (3:4591) + callba Function11917 + ld hl, wLuckyNumberShowFlag + res 0, [hl] + callba LoadOrRegenerateLuckyIDNumber + ret -Functionc556: ; c554 - dr $c554, $c586 +Functionc5a3: ; c5a3 (3:45a3) + callba Function1192e + jp Functionc53c -Functionc588: ; c586 - dr $c586, $c58f +CountUnown: ; c5ac (3:45ac) + ld hl, wUnownDex + ld b, $0 +.asm_c5b1 + ld a, [hli] + and a + ret z + inc b + ld a, b + cp $1a + jr c, .asm_c5b1 + ret -Functionc591: ; c58f - dr $c58f, $c5a1 +Functionc5bb: ; c5bb (3:45bb) + callba Function24b8d + ld a, c + ld [wScriptVar], a + and a + ret z + ld [wd002], a + ld a, $1 + ld [wd009], a + ld hl, wNumItems + call TossItem + ret -Functionc5a3: ; c5a1 - dr $c5a1, $c5aa +Functionc5d6: ; c5d6 (3:45d6) + ld a, [wChannelsEnd] + cp $40 + jr nz, .asm_c5fb + ld a, [wda03] + ld b, a + ld a, [wda02] + ld c, a + ld hl, .ProximityCoords +.asm_c5e8 + ld a, [hli] + cp $ff + jr z, .asm_c5fb + cp b + jr nz, .asm_c5f8 + ld a, [hli] + cp c + jr nz, .asm_c5e8 + ld a, $1 + jr .asm_c5fc -CountUnown: ; c5aa - dr $c5aa, $c5b9 +.asm_c5f8 + inc hl + jr .asm_c5e8 -Functionc5bb: ; c5b9 - dr $c5b9, $c5d4 +.asm_c5fb + xor a +.asm_c5fc + ld [wScriptVar], a + ret -Functionc5d6: ; c5d4 - dr $c5d4, $c609 +.ProximityCoords: + ; x, y + db 33, 8 ; left + db 34, 10 ; below + db 35, 10 ; below + db 36, 8 ; right + db 36, 9 ; right + db -1 + +Functionc60b: ; c60b (3:460b) + ld a, [wCurPartySpecies] + jp PlayCry + +Functionc611: ; c611 (3:4611) + ld a, [hCGB] + and a + jr nz, .asm_c622 + ld a, [hSGB] + and a + jr nz, .asm_c61e + xor a + jr .asm_c624 -Functionc60b: ; c609 - dr $c609, $c60f +.asm_c61e + ld a, $1 + jr .asm_c624 -Functionc611: ; c60f - dr $c60f, $c626 +.asm_c622 + ld a, $2 +.asm_c624 + ld [wScriptVar], a + ret -Functionc628: ; c626 - dr $c626, $c636 +Functionc628: ; c628 (3:4628) + ld a, $0 + ld [wMusicFadeID], a + ld a, $0 + ld [wMusicFadeIDHi], a + ld a, $2 + ld [wMusicFade], a + ret -Functionc638: ; c636 - dr $c636, $c643 +Functionc638: ; c638 (3:4638) + call FadeToMenu + callba Functione0002 + call ExitAllMenus + ret -Functionc645: ; c643 - dr $c643, $c650 +Functionc645: ; c645 (3:4645) + call FadeToMenu + callba Function84684 + call ExitAllMenus + ret -Functionc652: ; c650 - dr $c650, $c65f +Functionc652: ; c652 (3:4652) + ld a, $0 + call OpenSRAM + ld a, [$abfd] + ld [wScriptVar], a + jp CloseSRAM + +FlagPredef: + nop + push hl + push bc + push bc + srl c + srl c + srl c + ld b, $0 + add hl, bc + pop bc + ld a, c + and $7 + ld c, a + ld a, $1 + jr z, .asm_c67a +.asm_c676 + add a + dec c + jr nz, .asm_c676 +.asm_c67a + ld c, a + dec b + jr z, .asm_c687 + dec b + jr z, .asm_c68c + ld a, c + cpl + and [hl] + ld [hl], a + jr .asm_c699 + +.asm_c687 + ld a, [hl] + or c + ld [hl], a + jr .asm_c699 + +.asm_c68c + ld a, d + cp $0 + jr nz, .asm_c695 + ld a, [hl] + and c + jr .asm_c699 + +.asm_c695 + call GetFarByte + and c +.asm_c699 + pop bc + pop hl + ld c, a + ret -FlagPredef: ; c65f - dr $c65f, $c69b +HealParty: ; c69d (3:469d) + xor a + ld [wd005], a + ld hl, wPartySpecies +.asm_c6a4 + ld a, [hli] + cp $ff + jr z, .asm_c6bb + cp $fd + jr z, .asm_c6b2 + push hl + call Functionc6bc + pop hl +.asm_c6b2 + ld a, [wd005] + inc a + ld [wd005], a + jr .asm_c6a4 + +.asm_c6bb + ret -HealParty: ; c69b - dr $c69b, $c6dc -ENDC +Functionc6bc: ; c6bc (3:46bc) + ld a, $0 + call GetPartyParamLocation + ld d, h + ld e, l + ld hl, $20 + add hl, de + xor a + ld [hli], a + ld [hl], a + ld hl, $24 + add hl, de + ld b, h + ld c, l + dec bc + dec bc + ld a, [hli] + ld [bc], a + inc bc + ld a, [hl] + ld [bc], a + callba Functionf900 + ret @@ -668,6 +668,7 @@ Function3414:: Function3423:: ld a, [hROMBank] +Function3425:: ld [wcfd8], a ld a, l ld [wcfd9], a @@ -1039,7 +1040,7 @@ endr rst Bankswitch ret -GetItemName +GetItemName:: push hl push bc ld a, [wd151] @@ -282,7 +282,9 @@ Functione6b7: Functione6bd: dr $e6bd, $e7a6 DoItemEffect_:: - dr $e7a6, $fa3e + dr $e7a6, $f900 +Functionf900: + dr $f900, $fa3e ENDC IF DEF(SILVER) @@ -310,20 +312,30 @@ Functione6b7: Functione6bd: dr $e6bb, $e7a4 DoItemEffect_:: - dr $e7a4, $fa3c + dr $e7a4, $f8fe +Functionf900 + dr $f8fe, $fa3c ENDC SECTION "bank4", ROMX, BANK[$4] Function10000:: dr $10000, $117f1 InitializeStartDay_: - dr $117f1, $11934 + dr $117f1, $118f8 +Function118f8: + dr $118f8, $11917 +Function11917: + dr $11917, $1192e +Function1192e: + dr $1192e, $11934 Function11934: dr $11934, $11aa3 NamingScreen_: dr $11aa3, $11aad NamingScreen: - dr $11aad, $13e03 + dr $11aad, $13a5f +Function13a5f: + dr $13a5f, $13e03 SECTION "bank5", ROMX, BANK[$5] dr $14000, $14032 @@ -358,7 +370,11 @@ TryLoadSaveFile: ; 14ef5 RunMapSetupScript:: dr $15484, $15612 Function15612:: ; 15612 - dr $15612, $171d1 + dr $15612, $159b0 +Function159b0: + dr $159b0, $16e3a +Function16e3a: + dr $16e3a, $171d1 Function171d1: dr $171d1, $1783e @@ -390,7 +406,9 @@ InitVerticalMenuCursor_:: InitScrollingMenu:: dr $244d7, $244f3 ScrollingMenu_:: - dr $244f3, $2692d + dr $244f3, $24b8d +Function24b8d: + dr $24b8d, $2692d InitDecorations: ; 2692d dr $2692d, $28000 @@ -427,7 +445,9 @@ UpdatePlayerHUD:: UpdateEnemyHUD:: dr $3de97, $3ec11 BattleRandom_:: ; 3ec11 - dr $3ec11, $40000 + dr $3ec11, $3f55d +Function3f55d: + dr $3f55d, $40000 SECTION "bank10", ROMX, BANK[$10] dr $40000, $41afe @@ -493,7 +513,10 @@ SECTION "bank21", ROMX, BANK[$21] dr $84000, $842db PrinterReceive_:: ; 842db - dr $842db, $88000 + dr $842db, $84684 + +Function84684: + dr $84684, $88000 SECTION "bank22", ROMX, BANK[$22] dr $88000, $8c000 @@ -542,7 +565,13 @@ SECTION "bank24", ROMX, BANK[$24] InitClock: dr $90641, $90b0f PrintHour: - dr $90b0f, $94000 + dr $90b0f, $9188a +Function9188a: + dr $9188a, $919c1 +Function919c1: + dr $919c1, $92c36 +Function92c36: + dr $92c36, $94000 SECTION "bank25", ROMX, BANK[$25] MapTriggers:: ; 94000 @@ -617,7 +646,9 @@ PlayerIcon: dr $c0000, $c4000 SECTION "bank31", ROMX, BANK[$31] - dr $c4000, $c8000 + dr $c4000, $c7a40 +Functionc7a40: + dr $c7a40, $c8000 SECTION "bank32", ROMX, BANK[$32] BattleAnimations:: ; Not actually where it is, I just needed the label for BANK to work @@ -640,7 +671,15 @@ SECTION "bank37", ROMX, BANK[$37] dr $dc000, $e0000 SECTION "bank38", ROMX, BANK[$38] - dr $e0000, $e4000 + dr $e0000, $e0002 +Functione0002: + dr $e0002, $e0909 +Functione0909: + dr $e0909, $e199d +Functione199d: + dr $e199d, $e2668 +Functione2668: + dr $e2668, $e4000 SECTION "bank39", ROMX, BANK[$39] TitleScreenGFX5: @@ -710,7 +749,11 @@ TileCollisionTable:: Shrink1Pic: dr $fb5be, $fb64e Shrink2Pic: - dr $fb64e, $fc000 + dr $fb64e, $fb7f7 +Functionfb7f7: + dr $fb7f7, $fb981 +Functionfb981: + dr $fb981, $fc000 SECTION "bank3f", ROMX, BANK[$3f] dr $fc000, $100000 @@ -825,7 +868,13 @@ SECTION "bank63", ROMX, BANK[$63] dr $18c000, $190000 SECTION "bank64", ROMX, BANK[$64] - dr $190000, $194000 + dr $190000, $190ef3 +ReceivedMysteryGiftText_:: + dr $190ef3, $190f0b +NoCoinsText_:: + dr $190f0b, $190f1f +NoCoinCaseText_:: + dr $190f1f, $194000 SECTION "bank65", ROMX, BANK[$65] dr $194000, $195610 @@ -2907,259 +2907,24 @@ wBadges:: wJohtoBadges:: ds 1 ; d57c wKantoBadges:: ds 1 ; d57d -wd57e:: ds 1 ; d57e -wd57f:: ds 1 ; d57f -wd580:: ds 1 ; d580 -wd581:: ds 1 ; d581 -wd582:: ds 1 ; d582 -wd583:: ds 1 ; d583 -wd584:: ds 1 ; d584 -wd585:: ds 1 ; d585 -wd586:: ds 1 ; d586 -wd587:: ds 1 ; d587 -wd588:: ds 1 ; d588 -wd589:: ds 1 ; d589 -wd58a:: ds 1 ; d58a -wd58b:: ds 1 ; d58b -wd58c:: ds 1 ; d58c -wd58d:: ds 1 ; d58d -wd58e:: ds 1 ; d58e -wd58f:: ds 1 ; d58f -wd590:: ds 1 ; d590 -wd591:: ds 1 ; d591 -wd592:: ds 1 ; d592 -wd593:: ds 1 ; d593 -wd594:: ds 1 ; d594 -wd595:: ds 1 ; d595 -wd596:: ds 1 ; d596 -wd597:: ds 1 ; d597 -wd598:: ds 1 ; d598 -wd599:: ds 1 ; d599 -wd59a:: ds 1 ; d59a -wd59b:: ds 1 ; d59b -wd59c:: ds 1 ; d59c -wd59d:: ds 1 ; d59d -wd59e:: ds 1 ; d59e -wd59f:: ds 1 ; d59f -wd5a0:: ds 1 ; d5a0 -wd5a1:: ds 1 ; d5a1 -wd5a2:: ds 1 ; d5a2 -wd5a3:: ds 1 ; d5a3 -wd5a4:: ds 1 ; d5a4 -wd5a5:: ds 1 ; d5a5 -wd5a6:: ds 1 ; d5a6 -wd5a7:: ds 1 ; d5a7 -wd5a8:: ds 1 ; d5a8 -wd5a9:: ds 1 ; d5a9 -wd5aa:: ds 1 ; d5aa -wd5ab:: ds 1 ; d5ab -wd5ac:: ds 1 ; d5ac -wd5ad:: ds 1 ; d5ad -wd5ae:: ds 1 ; d5ae -wd5af:: ds 1 ; d5af -wd5b0:: ds 1 ; d5b0 -wd5b1:: ds 1 ; d5b1 -wd5b2:: ds 1 ; d5b2 -wd5b3:: ds 1 ; d5b3 -wd5b4:: ds 1 ; d5b4 -wd5b5:: ds 1 ; d5b5 -wd5b6:: ds 1 ; d5b6 -wd5b7:: ds 1 ; d5b7 -wd5b8:: ds 1 ; d5b8 -wd5b9:: ds 1 ; d5b9 -wd5ba:: ds 1 ; d5ba -wd5bb:: ds 1 ; d5bb -wd5bc:: ds 1 ; d5bc -wd5bd:: ds 1 ; d5bd -wd5be:: ds 1 ; d5be -wd5bf:: ds 1 ; d5bf -wd5c0:: ds 1 ; d5c0 -wd5c1:: ds 1 ; d5c1 -wd5c2:: ds 1 ; d5c2 -wd5c3:: ds 1 ; d5c3 -wd5c4:: ds 1 ; d5c4 -wd5c5:: ds 1 ; d5c5 -wd5c6:: ds 1 ; d5c6 -wd5c7:: ds 1 ; d5c7 -wd5c8:: ds 1 ; d5c8 -wd5c9:: ds 1 ; d5c9 -wd5ca:: ds 1 ; d5ca -wd5cb:: ds 1 ; d5cb -wd5cc:: ds 1 ; d5cc -wd5cd:: ds 1 ; d5cd -wd5ce:: ds 1 ; d5ce -wd5cf:: ds 1 ; d5cf -wd5d0:: ds 1 ; d5d0 -wd5d1:: ds 1 ; d5d1 -wd5d2:: ds 1 ; d5d2 -wd5d3:: ds 1 ; d5d3 -wd5d4:: ds 1 ; d5d4 -wd5d5:: ds 1 ; d5d5 -wd5d6:: ds 1 ; d5d6 -wd5d7:: ds 1 ; d5d7 -wd5d8:: ds 1 ; d5d8 -wd5d9:: ds 1 ; d5d9 -wd5da:: ds 1 ; d5da -wd5db:: ds 1 ; d5db -wd5dc:: ds 1 ; d5dc -wd5dd:: ds 1 ; d5dd -wd5de:: ds 1 ; d5de -wd5df:: ds 1 ; d5df -wd5e0:: ds 1 ; d5e0 -wd5e1:: ds 1 ; d5e1 -wd5e2:: ds 1 ; d5e2 -wd5e3:: ds 1 ; d5e3 -wd5e4:: ds 1 ; d5e4 -wd5e5:: ds 1 ; d5e5 -wd5e6:: ds 1 ; d5e6 -wd5e7:: ds 1 ; d5e7 -wd5e8:: ds 1 ; d5e8 -wd5e9:: ds 1 ; d5e9 -wd5ea:: ds 1 ; d5ea -wd5eb:: ds 1 ; d5eb -wd5ec:: ds 1 ; d5ec -wd5ed:: ds 1 ; d5ed -wd5ee:: ds 1 ; d5ee -wd5ef:: ds 1 ; d5ef -wd5f0:: ds 1 ; d5f0 -wd5f1:: ds 1 ; d5f1 -wd5f2:: ds 1 ; d5f2 -wd5f3:: ds 1 ; d5f3 -wd5f4:: ds 1 ; d5f4 -wd5f5:: ds 1 ; d5f5 -wd5f6:: ds 1 ; d5f6 -wd5f7:: ds 1 ; d5f7 -wd5f8:: ds 1 ; d5f8 -wd5f9:: ds 1 ; d5f9 -wd5fa:: ds 1 ; d5fa -wd5fb:: ds 1 ; d5fb -wd5fc:: ds 1 ; d5fc -wd5fd:: ds 1 ; d5fd -wd5fe:: ds 1 ; d5fe -wd5ff:: ds 1 ; d5ff -wd600:: ds 1 ; d600 -wd601:: ds 1 ; d601 -wd602:: ds 1 ; d602 -wd603:: ds 1 ; d603 -wd604:: ds 1 ; d604 -wd605:: ds 1 ; d605 -wd606:: ds 1 ; d606 -wd607:: ds 1 ; d607 -wd608:: ds 1 ; d608 -wd609:: ds 1 ; d609 -wd60a:: ds 1 ; d60a -wd60b:: ds 1 ; d60b -wd60c:: ds 1 ; d60c -wd60d:: ds 1 ; d60d -wd60e:: ds 1 ; d60e -wd60f:: ds 1 ; d60f -wd610:: ds 1 ; d610 -wd611:: ds 1 ; d611 -wd612:: ds 1 ; d612 -wd613:: ds 1 ; d613 -wd614:: ds 1 ; d614 -wd615:: ds 1 ; d615 -wd616:: ds 1 ; d616 -wd617:: ds 1 ; d617 -wd618:: ds 1 ; d618 -wd619:: ds 1 ; d619 -wd61a:: ds 1 ; d61a -wd61b:: ds 1 ; d61b -wd61c:: ds 1 ; d61c -wd61d:: ds 1 ; d61d -wd61e:: ds 1 ; d61e -wd61f:: ds 1 ; d61f -wd620:: ds 1 ; d620 -wd621:: ds 1 ; d621 -wd622:: ds 1 ; d622 -wd623:: ds 1 ; d623 -wd624:: ds 1 ; d624 -wd625:: ds 1 ; d625 -wd626:: ds 1 ; d626 -wd627:: ds 1 ; d627 -wd628:: ds 1 ; d628 -wd629:: ds 1 ; d629 -wd62a:: ds 1 ; d62a -wd62b:: ds 1 ; d62b -wd62c:: ds 1 ; d62c -wd62d:: ds 1 ; d62d -wd62e:: ds 1 ; d62e -wd62f:: ds 1 ; d62f -wd630:: ds 1 ; d630 -wd631:: ds 1 ; d631 -wd632:: ds 1 ; d632 -wd633:: ds 1 ; d633 -wd634:: ds 1 ; d634 -wd635:: ds 1 ; d635 -wd636:: ds 1 ; d636 -wd637:: ds 1 ; d637 -wd638:: ds 1 ; d638 -wd639:: ds 1 ; d639 -wd63a:: ds 1 ; d63a -wd63b:: ds 1 ; d63b -wd63c:: ds 1 ; d63c -wd63d:: ds 1 ; d63d -wd63e:: ds 1 ; d63e -wd63f:: ds 1 ; d63f -wd640:: ds 1 ; d640 -wd641:: ds 1 ; d641 -wd642:: ds 1 ; d642 -wd643:: ds 1 ; d643 -wd644:: ds 1 ; d644 -wd645:: ds 1 ; d645 -wd646:: ds 1 ; d646 -wd647:: ds 1 ; d647 -wd648:: ds 1 ; d648 -wd649:: ds 1 ; d649 -wd64a:: ds 1 ; d64a -wd64b:: ds 1 ; d64b -wd64c:: ds 1 ; d64c -wd64d:: ds 1 ; d64d -wd64e:: ds 1 ; d64e -wd64f:: ds 1 ; d64f -wd650:: ds 1 ; d650 -wd651:: ds 1 ; d651 -wd652:: ds 1 ; d652 -wd653:: ds 1 ; d653 -wd654:: ds 1 ; d654 -wd655:: ds 1 ; d655 -wd656:: ds 1 ; d656 -wd657:: ds 1 ; d657 -wd658:: ds 1 ; d658 -wd659:: ds 1 ; d659 -wd65a:: ds 1 ; d65a -wd65b:: ds 1 ; d65b -wd65c:: ds 1 ; d65c -wd65d:: ds 1 ; d65d -wd65e:: ds 1 ; d65e -wd65f:: ds 1 ; d65f -wd660:: ds 1 ; d660 -wd661:: ds 1 ; d661 -wd662:: ds 1 ; d662 -wd663:: ds 1 ; d663 -wd664:: ds 1 ; d664 -wd665:: ds 1 ; d665 -wd666:: ds 1 ; d666 -wd667:: ds 1 ; d667 -wd668:: ds 1 ; d668 -wd669:: ds 1 ; d669 -wd66a:: ds 1 ; d66a -wd66b:: ds 1 ; d66b -wd66c:: ds 1 ; d66c -wd66d:: ds 1 ; d66d -wd66e:: ds 1 ; d66e -wd66f:: ds 1 ; d66f -wd670:: ds 1 ; d670 -wd671:: ds 1 ; d671 -wd672:: ds 1 ; d672 -wd673:: ds 1 ; d673 -wd674:: ds 1 ; d674 -wd675:: ds 1 ; d675 -wd676:: ds 1 ; d676 -wd677:: ds 1 ; d677 -wd678:: ds 1 ; d678 -wd679:: ds 1 ; d679 -wd67a:: ds 1 ; d67a +wTMsHMs:: ds NUM_TMS + NUM_HMS ; d57e +wTMsHMsEnd:: + +wNumItems:: ds 1 ; d5b7 +wItems:: ds MAX_ITEMS * 2 + 1 ; d5b8 +wItemsEnd:: + +wNumKeyItems:: ds 1 ; d5e1 +wKeyItems:: ds MAX_KEY_ITEMS + 1 ; d5e2 +wKeyItemsEnd:: + +wNumBalls:: ds 1 ; d5fc +wBalls:: ds MAX_BALLS * 2 + 1 ; d5fd +wBallsEnd:: + +wPCItems:: ds MAX_PC_ITEMS * 2 + 1 ; d616 +wPCItemsEnd:: + wd67b:: ds 1 ; d67b wPokegearFlags:: ds 1 ; d67c wd67d:: ds 1 ; d67d |