diff options
Diffstat (limited to 'wram.asm')
-rw-r--r-- | wram.asm | 121 |
1 files changed, 61 insertions, 60 deletions
@@ -94,22 +94,21 @@ wWhichPicTest:: ; c40b ENDU -SECTION "Unknown map buffer?", WRAM0[$C5E8] +SECTION "Map buffer", WRAM0[$C5E8] wMapBuffer:: wMapScriptNumber:: db ; c5e8 wMapScriptNumberLocation:: dw ; c5e9 wUnknownMapPointer:: dw ; c5eb ; TODO -wc5ed:: db ; c5ed - ds 18 ; TODO + ds 19 ; TODO wMapBufferEnd:: ; c600 UNION -wOverworldMapBlocks:: ; c600 +wOverworldMap:: ; c600 ds $514 ; TODO: constantify this -wOverworldMapBlocksEnd:: ; cb14 +wOverworldMapEnd:: ; cb14 NEXTU @@ -216,10 +215,14 @@ wPlayerLinkAction:: db ; cb51 wLinkTimeoutFrames:: dw ; cb56 wcb58:: ds 2 ; cb58 -wMonType:: db ; cb5a +; cb5a + ds 1 ; TODO wCurSpecies:: db ; cb5b wNamedObjectTypeBuffer:: db ; cb5c +SECTION "CB5E", WRAM0[$CB5E] +wJumptableIndex:: ds 4 + SECTION "CB62", WRAM0[$CB62] wVBCopySize:: ds 1 ; cb62 @@ -229,18 +232,12 @@ wVBCopyDoubleSize:: ds 1 ; cb67 wVBCopyDoubleSrc:: ds 2 ; cb68 wVBCopyDoubleDst:: ds 2 ; cb6a -SECTION "CB71", WRAM0[$CB70] - -wcb70:: db +SECTION "CB71", WRAM0[$CB71] wVBCopyFarSize:: ds 1 ; cb71 wVBCopyFarSrc:: ds 2 ; cb72 wVBCopyFarDst:: ds 2 ; cb74 wVBCopyFarSrcBank:: ds 1 ; cb76 - db - -wMovementObject:: db ; cb78 - ptrba wMovementData ; cb79 SECTION "Collision buffer", WRAM0[$CB90] @@ -249,6 +246,9 @@ wTileUp:: db ; cb91 wTileLeft:: db ; cb92 wTileRight:: db ; cb93 +wScreenSave:: ; cb94 + ds 6 * 5 + SECTION "CBD2", WRAM0[$CBD2] wcbd2:: ; cbd2 ds $14 @@ -280,7 +280,7 @@ wMenuCursorBuffer:: db ; cc09 ds 8 ; TODO wMenuData2:: -wMenuDataFlags:: db ; cc12 + db ; cc12 wMenuDataItems:: db ; cc13 wMenuDataIndicesPointer:: dw ; cc14 wMenuDataDisplayFunctionPointer:: dw ; cc16 @@ -298,7 +298,9 @@ wVBlankOccurred: db ; cc33 ds 4 -wcc38:: ; cc38 ; TODO: wceeb in pokegold, what is this? +;Controls what type of opening (fire/notes) you get. +wcc38:: +wTitleSequenceOpeningType:: ; cc38 db wDebugWarpSelection:: ; cc39 @@ -306,15 +308,15 @@ wDebugWarpSelection:: ; cc39 ds 6 -wcc40:: ; cc40 +wSGB:: ; cc40 db SECTION "CC9C", WRAM0[$CC9C] -wUnknownWordCC9C:: ; cc9c +wUnknownWordcc9c:: ; cc9c dw -wUnknownBufferCC9E:: ; cc9e +wUnknownBuffercc9e:: ; cc9e ds 14 @@ -347,7 +349,7 @@ wOBP1:: db ; cccc SECTION "CCCE", WRAM0[$CCCE] wDisableVBlankWYUpdate:: db ; ccce -wSGB:: db +wcccf:: db SECTION "CD26", WRAM0[$CD26] @@ -391,10 +393,7 @@ wFarCallBCBuffer:: ; cd54 dw ds 3 ; TODO -wVramState:: db ; cd59 - - ds 3 ; TODO -wcd5d:: db ; cd5d +wVramState:: db SECTION "CD72", WRAM0[$CD72] wcd72:: dw ; cd72 @@ -413,7 +412,6 @@ wItemQuantityBuffer:: db ; cd7e SECTION "CDBA", WRAM0[$CDBA] wItemAttributeParamBuffer:: db ; cdba -wCurPartyLevel:: db ; cdbb SECTION "CDBD", WRAM0[$CDBD] @@ -423,11 +421,13 @@ wLinkMode:: db ; cdbd ; 02 - ; 03 - -wTargetMapUnk:: db ; cdbe ; TODO: Probably warp ID, check -wTargetMapGroup:: db ; cdbf -wTargetMapId:: db ; cdc0 -; cdc1 - ds $c +wNextWarp:: db ; cdbe +wNextMapGroup:: db ; cdbf +wNextMapId:: db ; cdc0 +wPrevWarp:: db ; cdc1 + + ds 11 + wLinkBattleRNs:: ds 10 ; cdcd ; cddd @@ -547,31 +547,33 @@ wObjectFollow_Leader:: ; ce76 db wObjectFollow_Follower:: ; ce77 db -wCenteredObject:: ; ce78 - db -wFollowerMovementQueueLength:: ; ce79 - db -wFollowMovementQueue:: ; ce7a - ds 5 - -wObjectStructs:: ; ce7f -wUnkObjectStruct:: object_struct wUnkObject ; ce7f -wPlayerStruct:: object_struct wPlayer ; cea7 -wObject1Struct:: object_struct wObject1 ; cecf -wObject2Struct:: object_struct wObject2 ; cef7 -wObject3Struct:: object_struct wObject3 ; cf1f -wObject4Struct:: object_struct wObject4 ; cf47 -wObject5Struct:: object_struct wObject5 ; cf6f -wObject6Struct:: object_struct wObject6 ; cf97 -wObject7Struct:: object_struct wObject7 ; cfbf -wObject8Struct:: object_struct wObject8 ; cfe7 + + +SECTION "Object structs", WRAM0[$CEA7] + +wObjectStructs:: ; cea7 +wPlayerStruct:: object_struct wPlayer +wObject0Struct:: object_struct wObject0 +wObject1Struct:: object_struct wObject1 +wObject2Struct:: object_struct wObject2 +wObject3Struct:: object_struct wObject3 +wObject4Struct:: object_struct wObject4 +wObject5Struct:: object_struct wObject5 +wObject6Struct:: object_struct wObject6 +wObject7Struct:: object_struct wObject7 wObjectStructsEnd:: ; d00f -wCmdQueue:: ; d00f -wCmdQueueEntry1:: ds 16 -wCmdQueueEntry2:: ds 16 -wCmdQueueEntry3:: ds 16 -wCmdQueueEntry4:: ds 16 +; TODO: there are 4 structs of 16 bytes here, +; cleared by ClearObjectStructs. +; What are they? +; d00f + ds 16 +; d01f + ds 16 +; d02f + ds 16 +; d03f + ds 16 wMapObjects:: ; d04f wPlayerObject:: map_object wPlayer @@ -637,10 +639,8 @@ wBallQuantities:: db ; d1df SECTION "Rival's Name", WRAM0[$D258] wRivalsName:: ds 6 ; d258 -SECTION "D4AB", WRAM0[$D4A9] +SECTION "D4AB", WRAM0[$D4AB] -wd4a9:: db ; d4a9 - ds 1 ; TODO wJoypadFlags:: db ; d4ab ; 76543210 ; ||||\__/ @@ -673,8 +673,6 @@ ENDR wCurrMapObjectCount:: ; d5f6 db -SECTION "D637", WRAM0[$D637] -wd637:: db ; d637 SECTION "Used sprites", WRAM0[$D643] @@ -687,7 +685,10 @@ wUsedSprites:: ; d645 wUsedSpritesEnd:: ; d651 -SECTION "Map header", WRAM0[$D658] +SECTION "Map header", WRAM0[$D656] + +wMapGroup:: db ; d656 +wMapId:: db ; d657 wOverworldMapAnchor:: ; d658 dw @@ -695,8 +696,8 @@ wOverworldMapAnchor:: ; d658 wYCoord:: db ; d65a wXCoord:: db ; d65b -wMetaTileStandingY:: db ; d65c -wMetaTileStandingX:: db ; d65d +wMetatileStandingY:: db ; d65c +wMetatileStandingX:: db ; d65d ; d65f ds 1 ; TODO |