diff options
Diffstat (limited to 'wram.asm')
-rw-r--r-- | wram.asm | 122 |
1 files changed, 79 insertions, 43 deletions
@@ -156,6 +156,25 @@ mailmsg: MACRO \1End:: endm +hof_mon: MACRO +\1Species:: ds 1 +\1ID:: ds 2 +\1DVs:: ds 2 +\1Level:: ds 1 +\1Nickname:: ds PKMN_NAME_LENGTH +- 1 +\1End:: +endm + +hall_of_fame: MACRO +\1WinCount:: ds 1 +\1Mon1:: hof_mon \1Mon1 +\1Mon2:: hof_mon \1Mon2 +\1Mon3:: hof_mon \1Mon3 +\1Mon4:: hof_mon \1Mon4 +\1Mon5:: hof_mon \1Mon5 +\1Mon6:: hof_mon \1Mon6 +\1End:: ds 1 +ENDM INCLUDE "vram.asm" @@ -316,7 +335,7 @@ wc2cf:: ds 1 wc2d0:: ds 4 wc2d4:: ds 1 wc2d5:: ds 1 -wc2d6:: ds 1 +wLastDexEntry:: ds 1 wc2d7:: ds 1 wPreviousLandmark:: ds 1 wCurrentLandmark:: ds 1 @@ -512,15 +531,18 @@ TileMapEnd:: SECTION "Battle", WRAM0 - party_struct OddEgg +wOddEgg:: party_struct OddEgg wOddEggName:: ds PKMN_NAME_LENGTH wOddEggOTName:: ds PKMN_NAME_LENGTH - ds -70 + ds wOddEgg - @ wBT_OTTemp:: battle_tower_struct wBT_OTTemp ds wBT_OTTemp - @ -wMisc:: +wHallOfFameTemp:: hall_of_fame wHallOfFameTemp + ds wHallOfFameTemp - @ + +wMisc:: ; ds $28 * 6 wBattle:: wc608:: @@ -740,7 +762,6 @@ wOTTrademon:: trademon wOTTrademon ds wPlayerTrademon - @ wc6d0:: -wPokedexDataStart:: PlayerSDefLevel:: ; c6d0 ds 1 wc6d1:: @@ -981,10 +1002,20 @@ wc7b9:: ds 1 wc7ba:: ds 1 wc7bb:: ds 15 wc7ca:: ds 6 -wc7d0:: ds 1 -wc7d1:: ds 1 -wc7d2:: ds 1 -wc7d3:: ds 1 + + ds -$100 +wPokedexDataStart:: +wPokedexOrder:: ds NUM_POKEMON +- 1 +wPokedexOrderEnd:: ds 6 +wPokedexMetadata:: +wDexListingPage:: +wc7d0:: ds 1 ; Dex list page +wDexListingCursor:: +wc7d1:: ds 1 ; Dex cursor +wDexListingEnd:: +wc7d2:: ds 1 ; Last mon to display +wc7d3:: ds 1 ; Number of mons visible per dex list page +wCurrentDexMode:: ; Pokedex Mode wc7d4:: ds 1 ; Index of the topmost visible item in a scrolling menu wc7d5:: ds 1 ; Which row the cursor is at in a scrolling menu (0-6) wc7d6:: ds 1 @@ -992,15 +1023,18 @@ wc7d7:: ds 1 wc7d8:: ds 1 wc7d9:: ds 1 wc7da:: ds 1 -wc7db:: ds 1 -wc7dc:: ds 1 +wDexSearchSlowpokeFrame:: ds 1 +wUnlockedUnownMode:: ds 1 wc7dd:: ds 1 wc7de:: ds 1 wc7df:: ds 1 wc7e0:: ds 1 wc7e1:: ds 1 +wBackupDexListingCursor:: wc7e2:: ds 1 +wBackupDexListingPage:: wc7e3:: ds 1 +wDexCurrentLocation:: wc7e4:: ds 1 IF DEF(CRYSTAL11) wPokedexStatus:: @@ -1471,7 +1505,7 @@ wSaveFileExists:: ds 1 TextBoxFrame:: ; cfce ; bits 0-2: textbox frame 0-7 ds 1 - +TextBoxFlags:: ds 1 GBPrinter:: ; cfd0 @@ -1814,18 +1848,14 @@ CurPartyLevel:: ; d143 wd144:: ds 2 ; used when following a map warp -wNextWarp:: -wd146:: ds 1 -wNextMapGroup:: -wd147:: ds 1 -wNextMapNumber:: -wd148:: ds 1 -wPrevWarp:: -wd149:: ds 1 -wPrevMapGroup:: -wd14a:: ds 1 -wPrevMapNumber:: -wd14b:: ds 1 +; d146 +wNextWarp:: ds 1 +wNextMapGroup:: ds 1 +wNextMapNumber:: ds 1 +wPrevWarp:: ds 1 +wPrevMapGroup:: ds 1 +wPrevMapNumber:: ds 1 +; d14c wd14c:: ds 1 ; used in FollowNotExact wd14d:: ds 1 ; used in FollowNotExact @@ -1989,7 +2019,7 @@ TilesetPalettes:: ; d1e6 EvolvableFlags:: ; d1e8 flag_array PARTY_LENGTH -wd1e9:: ds 1 +wForceEvolution:: ds 1 MagikarpLength:: Buffer1:: ; d1ea ds 1 @@ -2139,9 +2169,6 @@ TimeOfDay:: ; d269 ds 1 ds 1 -SECTION "Enemy Party", WRAMX, BANK [1] -OTPlayerName:: ds NAME_LENGTH - ds OTPlayerName - @ wPokedexShowPointerAddr:: wd26b:: ds 1 wd26c:: ds 1 @@ -2149,9 +2176,13 @@ wPokedexShowPointerBank:: wd26d:: ds 1 ds 3 wd271:: ds 5 -OTPlayerID:: wd276:: ds 10 + ds wd26b - @ +SECTION "Enemy Party", WRAMX, BANK [1] +OTPlayerName:: ds NAME_LENGTH +OTPlayerID:: ds 2 + ds 8 OTPartyCount:: ds 1 ; d280 OTPartySpecies:: ds PARTY_LENGTH ; d281 OTPartyEnd:: ds 1 @@ -2182,6 +2213,7 @@ MapEventStatus:: ; d433 ds 1 ScriptFlags:: ; d434 +; bit 3: priority jump ds 1 ScriptFlags2:: ; d435 ds 1 @@ -2212,7 +2244,11 @@ wScriptStackBA5:: ds 3 ScriptDelay:: ; d44d ds 1 +wPriorityScriptBank:: +wScriptTextBank:: wd44e:: ds 1 +wPriorityScriptAddr:: +wScriptTextAddr:: wd44f:: ds 1 wd450:: ds 1 wd451:: ds 1 @@ -2487,7 +2523,7 @@ PCItemsEnd:: wPokegearFlags:: ds 1 wRadioTuningKnob:: ds 1 -wd959:: ds 2 +wLastDexMode:: ds 2 WhichRegisteredItem:: ; d95b ds 1 RegisteredItem:: ; d95c @@ -2768,11 +2804,11 @@ wPlayerDataEnd:: wMapData:: VisitedSpawns:: ; dca5 - flag_array 27 + flag_array NUM_SPAWNS -wdca9:: ds 1 -wdcaa:: ds 1 -wdcab:: ds 1 +wDigWarp:: ds 1 +wDigMapGroup:: ds 1 +wDigMapNumber:: ds 1 ; used on maps like second floor pokécenter, which are reused, so we know which ; map to return to BackupWarpNumber:: ; dcac @@ -2784,10 +2820,8 @@ BackupMapNumber:: ; dcae ds 3 -wLastSpawnMapGroup:: -wdcb2:: ds 1 -wLastSpawnMapNumber:: -wdcb3:: ds 1 +wLastSpawnMapGroup:: ds 1 +wLastSpawnMapNumber:: ds 1 WarpNumber:: ; dcb4 ds 1 @@ -2848,7 +2882,7 @@ UnownDex:: ; ded9 UnlockedUnowns:: ; def3 ds 1 -wdef4:: ds 1 +wFirstUnownSeen:: ds 1 wDaycareMan:: ; def5 @@ -2990,8 +3024,8 @@ w3_d742:: battle_tower_struct w3_d742 wBTChoiceOfLvlGroup:: w3_d800:: ds $400 w3_dc00:: ds $168 -w3_dd68:: - +w3_dd68:: ds $294 +w3_dffc:: ds 4 SECTION "GBC Video", WRAMX, BANK [5] @@ -3071,8 +3105,10 @@ w5_dc3e:: ds $c SECTION "WRAM 6", WRAMX, BANK [6] -w6_d000:: ds $400 -w6_d400:: ds $200 +wBackupTilemap:: ds $20 * SCREEN_HEIGHT + ds $1c0 +wBackupAttrMap:: ds $20 * SCREEN_HEIGHT + ds -$40 w6_d600:: ds $200 w6_d800:: |