summaryrefslogtreecommitdiff
path: root/wram.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-09-20 16:01:29 -0400
committerGitHub <noreply@github.com>2020-09-20 16:01:29 -0400
commit0688c8c43a3db800a7af4b69a2efea229cf31ec5 (patch)
treea08cd946f4b421f2d25e246df3d6d3375dc5ea05 /wram.asm
parente789ee48b65e8cc08104ef06de4b08c9ef9d117d (diff)
parent8900eb7ad06931b78dcb91e0c2e7db583090aa06 (diff)
Merge pull request #72 from jd-0/master
Remove address comments
Diffstat (limited to 'wram.asm')
-rw-r--r--wram.asm1144
1 files changed, 572 insertions, 572 deletions
diff --git a/wram.asm b/wram.asm
index 20cea11..5cdd85d 100644
--- a/wram.asm
+++ b/wram.asm
@@ -3,32 +3,32 @@ INCLUDE "constants.asm"
SECTION "Music engine RAM", WRAM0
-wMusic:: ; c000
+wMusic::
wChannels::
-wChannel1:: channel_struct wChannel1 ; c000
-wChannel2:: channel_struct wChannel2 ; c032
-wChannel3:: channel_struct wChannel3 ; c064
-wChannel4:: channel_struct wChannel4 ; c096
+wChannel1:: channel_struct wChannel1
+wChannel2:: channel_struct wChannel2
+wChannel3:: channel_struct wChannel3
+wChannel4:: channel_struct wChannel4
wSFXChannels::
-wChannel5:: channel_struct wChannel5 ; c0c8
-wChannel6:: channel_struct wChannel6 ; c0fa
-wChannel7:: channel_struct wChannel7 ; c12c
-wChannel8:: channel_struct wChannel8 ; c15e
+wChannel5:: channel_struct wChannel5
+wChannel6:: channel_struct wChannel6
+wChannel7:: channel_struct wChannel7
+wChannel8:: channel_struct wChannel8
- ds 1 ; c190
+ ds 1
-wCurTrackDuty:: db ; c191
-wCurTrackIntensity:: db ; c192
-wCurTrackFrequency:: dw ; c193
-wc195:: db ; c195
+wCurTrackDuty:: db
+wCurTrackIntensity:: db
+wCurTrackFrequency:: dw
+wc195:: db
ds 2 ; TODO
-wCurChannel:: db ; c198
-wVolume:: db ; c199
-wSoundOutput:: ; c19a
+wCurChannel:: db
+wVolume:: db
+wSoundOutput::
; corresponds to $ff25
; bit 4-7: ch1-4 so2 on/off
; bit 0-3: ch1-4 so1 on/off
@@ -36,103 +36,103 @@ wSoundOutput:: ; c19a
ds 1 ; TODO
-wMusicID:: dw ; c19c
-wMusicBank:: db ; c19e
+wMusicID:: dw
+wMusicBank:: db
ds 5 ; TODO
-wLowHealthAlarm:: ; c1a4
+wLowHealthAlarm::
; bit 7: on/off
; bit 4: pitch
; bit 0-3: counter
db
-wMusicFade:: ; c1a5
+wMusicFade::
; fades volume over x frames
; bit 7: fade in/out
; bit 0-6: number of frames for each volume level
; $00 = none (default)
db
-wMusicFadeCount:: db ; c1a6
+wMusicFadeCount:: db
wMusicFadeID::
-wMusicFadeIDLow:: db ; c1a7
-wMusicFadeIDHigh:: db ; c1a8
+wMusicFadeIDLow:: db
+wMusicFadeIDHigh:: db
ds 2 ; TODO
-wIncrementTempo: dw ; c1ab
-wMapMusic:: db ; c1ad
-wCryPitch:: dw ; c1ae
-wCryLength:: dw ; c1b0
+wIncrementTempo: dw
+wMapMusic:: db
+wCryPitch:: dw
+wCryLength:: dw
; c1b2
ds 7 ; TODO
-wc1b9:: db ; c1b9
-wc1ba:: db ; c1ba
+wc1b9:: db
+wc1ba:: db
; either wChannelsEnd or wMusicEnd, unsure
ds 1 ; TODO
-wMusicInitEnd:: ; c1bc
+wMusicInitEnd::
SECTION "OAM Buffer", WRAM0
-wVirtualOAM:: ; c200
+wVirtualOAM::
ds SPRITEOAMSTRUCT_LENGTH * NUM_SPRITE_OAM_STRUCTS
wVirtualOAMEnd::
-wTileMap:: ; c2a0
+wTileMap::
ds SCREEN_HEIGHT * SCREEN_WIDTH
UNION
-wTileMapBackup:: ; c408
+wTileMapBackup::
ds SCREEN_HEIGHT * SCREEN_WIDTH
NEXTU
ds 1
-wc409:: ds 1 ; c409
-wc40a:: ds 1 ; c40a
+wc409:: ds 1
+wc40a:: ds 1
; Monster or Trainer test?
-wWhichPicTest:: ; c40b
+wWhichPicTest::
db
-wc40c:: ds 1 ; c40c
-wc40d:: ds 1 ; c40d
-wc40e:: ds 1 ; c40e
+wc40c:: ds 1
+wc40d:: ds 1
+wc40e:: ds 1
ds 11
-wc41a:: db ; c41a
+wc41a:: db
ds 165
-wSpriteAnimIDBuffer:: db ; c4c0
+wSpriteAnimIDBuffer:: db
ds 6
-wc4c7:: db ; c4c7
-wc4c8:: db ; c4c8
+wc4c7:: db
+wc4c8:: db
ds 7
-wNamingScreenDestinationPointer:: dw ; c4d0
-wNamingScreenCurNameLength:: db ; c4d2
-wNamingScreenMaxNameLength:: db ; c4d3
-wNamingScreenType:: db ; c4d4
-wNamingScreenCursorObjectPointer:: dw ; c4d5
-wNamingScreenLastCharacter:: db ; c4d7
-wNamingScreenStringEntryCoordY:: db ; c4d8
-wNamingScreenStringEntryCoordX:: db ; c4d9
+wNamingScreenDestinationPointer:: dw
+wNamingScreenCurNameLength:: db
+wNamingScreenMaxNameLength:: db
+wNamingScreenType:: db
+wNamingScreenCursorObjectPointer:: dw
+wNamingScreenLastCharacter:: db
+wNamingScreenStringEntryCoordY:: db
+wNamingScreenStringEntryCoordX:: db
ds 64
-wc51a:: ds 1 ; c51a
+wc51a:: ds 1
ENDU
@@ -140,26 +140,26 @@ ENDU
SECTION "Map Buffer", WRAM0
wMapBuffer::
-wMapScriptNumber:: db ; c5e8
-wMapScriptNumberLocation:: dw ; c5e9
-wUnknownMapPointer:: dw ; c5eb ; TODO
-wc5ed:: db ; c5ed
+wMapScriptNumber:: db
+wMapScriptNumberLocation:: dw
+wUnknownMapPointer:: dw ; TODO
+wc5ed:: db
ds 18
-wMapBufferEnd:: ; c600
+wMapBufferEnd::
UNION
-wOverworldMapBlocks:: ds 1300 ; c600
-wOverworldMapBlocksEnd:: ; cb14
+wOverworldMapBlocks:: ds 1300
+wOverworldMapBlocksEnd::
NEXTU
-wLYOverrides:: ; c600
+wLYOverrides::
ds SCREEN_HEIGHT_PX
; c690
ds $10
-wLYOverrides2:: ; c6a0
+wLYOverrides2::
NEXTU
; Battle-related
@@ -167,7 +167,7 @@ NEXTU
ds $1ea
; c7ea
-wActiveBGEffects:: ; c7ea
+wActiveBGEffects::
wBGEffect1:: battle_bg_effect wBGEffect1
wBGEffect2:: battle_bg_effect wBGEffect2
wBGEffect3:: battle_bg_effect wBGEffect3
@@ -175,26 +175,26 @@ wBGEffect4:: battle_bg_effect wBGEffect4
wBGEffect5:: battle_bg_effect wBGEffect5
wActiveBGEffectsEnd::
-wNumActiveBattleAnims:: db ; c7fe
+wNumActiveBattleAnims:: db
-wBattleAnimFlags:: db ; c7ff
-wBattleAnimAddress:: dw ; c800
-wBattleAnimDuration:: db ; c802
-wBattleAnimParent:: dw ; c803
-wBattleAnimLoops:: db ; c805
-wBattleAnimVar:: db ; c806
-wBattleAnimByte:: db ; c807
-wBattleAnimOAMPointerLo:: db ; c808
+wBattleAnimFlags:: db
+wBattleAnimAddress:: dw
+wBattleAnimDuration:: db
+wBattleAnimParent:: dw
+wBattleAnimLoops:: db
+wBattleAnimVar:: db
+wBattleAnimByte:: db
+wBattleAnimOAMPointerLo:: db
db
-UNION ; c80a
+UNION
; unidentified
wBattleAnimTemp0:: db
wBattleAnimTemp1:: db
wBattleAnimTemp2:: db
wBattleAnimTemp3:: db
-NEXTU ; c80a
+NEXTU
wBattleAnimTempOAMFlags:: db
wBattleAnimTempField02:: db
wBattleAnimTempTileID:: db
@@ -204,7 +204,7 @@ wBattleAnimTempXOffset:: db
wBattleAnimTempYOffset:: db
wBattleAnimTempAddSubFlags:: db
wBattleAnimTempPalette:: db
-ENDU ; c813
+ENDU
ds $32
wBattleAnimEnd::
@@ -213,85 +213,85 @@ wBattleAnimEnd::
ds $1aa ; TODO
-wc9ef:: ds 1 ; c9ef
+wc9ef:: ds 1
ds 6
-wBattleMonNickname:: ds 6 ; c9f6
-wEnemyMonNickname:: ds 6 ; c9fc
+wBattleMonNickname:: ds 6
+wEnemyMonNickname:: ds 6
-wca02:: ds 1 ; ca02
-wca03:: ds 1 ; ca03
-wca04:: ds 1 ; ca04
+wca02:: ds 1
+wca03:: ds 1
+wca04:: ds 1
ds 3
-wca08:: ds 1 ; ca08
-wca09:: ds 1 ; ca09
-wca0a:: ds 1 ; ca0a
+wca08:: ds 1
+wca09:: ds 1
+wca0a:: ds 1
ds 5 ; TODO
-wca10:: ds 1 ; ca10
-wca11:: ds 1 ; ca11
-wca12:: ds 1 ; ca12
-wca13:: ds 1 ; ca13
-wca14:: ds 1 ; ca14
+wca10:: ds 1
+wca11:: ds 1
+wca12:: ds 1
+wca13:: ds 1
+wca14:: ds 1
ds $22 ; TODO
-wca37:: ds 1 ; ca37
-wca38:: ds 1 ; ca38
-wca39:: ds 1 ; ca39
-wca3a:: ds 1 ; ca3a
-wca3b:: ds 1 ; ca3b
-wca3c:: ds 1 ; ca3c
-wPlayerSubStatus3:: db ; ca3d
+wca37:: ds 1
+wca38:: ds 1
+wca39:: ds 1
+wca3a:: ds 1
+wca3b:: ds 1
+wca3c:: ds 1
+wPlayerSubStatus3:: db
-wca3e:: ds 1 ; ca3e
-wca3f:: ds 1 ; ca3f
-wca40:: ds 1 ; ca40
-wca41:: ds 1 ; ca41
+wca3e:: ds 1
+wca3f:: ds 1
+wca40:: ds 1
+wca41:: ds 1
-wEnemySubStatus3:: db ; ca42
+wEnemySubStatus3:: db
-wca43:: db ; ca43
+wca43:: db
-wca44:: db ; ca44
+wca44:: db
ds $12
-wTrainerClass:: ; ca57
+wTrainerClass::
db
-wca58:: ds 1 ; ca58
-wca59:: ds 1 ; ca59
-wca5a:: ds 1 ; ca5a
-wca5b:: ds 1 ; ca5b
-wca5c:: ds 1 ; ca5c
+wca58:: ds 1
+wca59:: ds 1
+wca5a:: ds 1
+wca5b:: ds 1
+wca5c:: ds 1
ds $5c
-wcab9:: ds 1 ; cab9
+wcab9:: ds 1
ds 6
-wcac0:: ds 1 ; cac0
-wcac1:: ds 1 ; cac1
-wcac2:: ds 1 ; cac2
+wcac0:: ds 1
+wcac1:: ds 1
+wcac2:: ds 1
-wLinkBattleRNCount:: db ; cac3
+wLinkBattleRNCount:: db
ds 12
-wcad0:: ds 1 ; cad0
+wcad0:: ds 1
ds 9
-wcada:: ds 1 ;cada
+wcada:: ds 1
ds 6
-wcae1:: ds 1 ; cae1
+wcae1:: ds 1
ENDU
@@ -301,505 +301,505 @@ ENDU
SECTION "CB14", WRAM0[$CB14]
UNION
-wRedrawRowOrColumnSrcTiles:: ; cb14
+wRedrawRowOrColumnSrcTiles::
; the tiles of the row or column to be redrawn by RedrawRowOrColumn
ds SCREEN_WIDTH * 2
NEXTU
-wRedrawFlashlightDst0:: dw ; cb14
-wRedrawFlashlightSrc0:: dw ; cb16
-wRedrawFlashlightBlackDst0:: dw ; cb18
-wRedrawFlashlightDst1:: dw ; cb1a
-wRedrawFlashlightSrc1:: dw ; cb1c
-wRedrawFlashlightBlackDst1:: dw ; cb1e
-wRedrawFlashlightWidthHeight:: db ; cb20
+wRedrawFlashlightDst0:: dw
+wRedrawFlashlightSrc0:: dw
+wRedrawFlashlightBlackDst0:: dw
+wRedrawFlashlightDst1:: dw
+wRedrawFlashlightSrc1:: dw
+wRedrawFlashlightBlackDst1:: dw
+wRedrawFlashlightWidthHeight:: db
; width or height of flashlight redraw region
; in units of two tiles (people event meta tile)
ENDU
SECTION "CB56", WRAM0[$CB4C]
-wOtherPlayerLinkMode:: db ; cb4c
-wOtherPlayerLinkAction:: db ; cb4d
+wOtherPlayerLinkMode:: db
+wOtherPlayerLinkAction:: db
ds 3 ; TODO
-wPlayerLinkAction:: db ; cb51
+wPlayerLinkAction:: db
ds 4 ; TODO
-wLinkTimeoutFrames:: dw ; cb56
-wcb58:: ds 2 ; cb58
-wMonType:: db ; cb5a
-wCurSpecies:: db ; cb5b
-wNamedObjectTypeBuffer:: db ; cb5c
+wLinkTimeoutFrames:: dw
+wcb58:: ds 2
+wMonType:: db
+wCurSpecies:: db
+wNamedObjectTypeBuffer:: db
SECTION "CB5E", WRAM0[$CB5E]
-wJumptableIndex:: db ; cb5e
-wFlyDestination:: db ; cb5f
-
-wcb60:: ds 1 ; cb60
-wcb61:: ds 1 ; cb61
-
-wVBCopySize:: ds 1 ; cb62
-wVBCopySrc:: ds 2 ; cb63
-wVBCopyDst:: ds 2 ; cb65
-wVBCopyDoubleSize:: ds 1 ; cb67
-wVBCopyDoubleSrc:: ds 2 ; cb68
-wVBCopyDoubleDst:: ds 2 ; cb6a
-wcb6c:: db ; cb6c
-wcb6d:: db ; cb6d
-wcb6e:: db ; cb6e
-wPlayerStepDirection:: db ; cb6f
+wJumptableIndex:: db
+wFlyDestination:: db
+
+wcb60:: ds 1
+wcb61:: ds 1
+
+wVBCopySize:: ds 1
+wVBCopySrc:: ds 2
+wVBCopyDst:: ds 2
+wVBCopyDoubleSize:: ds 1
+wVBCopyDoubleSrc:: ds 2
+wVBCopyDoubleDst:: ds 2
+wcb6c:: db
+wcb6d:: db
+wcb6e:: db
+wPlayerStepDirection:: db
SECTION "CB71", WRAM0[$CB70]
wcb70:: db
-wVBCopyFarSize:: ds 1 ; cb71
-wVBCopyFarSrc:: ds 2 ; cb72
-wVBCopyFarDst:: ds 2 ; cb74
-wVBCopyFarSrcBank:: ds 1 ; cb76
-wPlayerMovement:: db ; cb77
-wMovementObject:: db ; cb78
- ptrba wMovementData ; cb79
+wVBCopyFarSize:: ds 1
+wVBCopyFarSrc:: ds 2
+wVBCopyFarDst:: ds 2
+wVBCopyFarSrcBank:: ds 1
+wPlayerMovement:: db
+wMovementObject:: db
+ ptrba wMovementData
-wcb7c:: ds 1 ; cb7c
+wcb7c:: ds 1
SECTION "Collision buffer", WRAM0[$CB90]
-wTileDown:: db ; cb90
-wTileUp:: db ; cb91
-wTileLeft:: db ; cb92
-wTileRight:: db ; cb93
+wTileDown:: db
+wTileUp:: db
+wTileLeft:: db
+wTileRight:: db
-wScreenSave:: ; cb94
+wScreenSave::
ds 6 * 5
SECTION "CBB2", WRAM0[$CBB2]
-wToolgearBuffer:: ; cbb2
+wToolgearBuffer::
ds $40
; cbe2
SECTION "CBF2", WRAM0[$CBF2]
wWindowData::
-wWindowStackPointer:: dw ; cbf2
-wMenuJoypad:: db ; cbf4
-wMenuSelection:: db ; cbf5
-wMenuSelectionQuantity:: db ; cbf6
+wWindowStackPointer:: dw
+wMenuJoypad:: db
+wMenuSelection:: db
+wMenuSelectionQuantity:: db
wWhichIndexSet::
-wActiveBackpackPocket:: db ; cbf7
-wScrollingMenuCursorPosition:: db ; cbf8
-wWindowStackSize:: db ; cbf9
+wActiveBackpackPocket:: db
+wScrollingMenuCursorPosition:: db
+wWindowStackSize:: db
SECTION "CC09", WRAM0[$CC02]
wMenuDataHeader::
- db ; cc02
-wMenuBorderTopCoord:: db ; cc03
-wMenuBorderLeftCoord:: db ; cc04
-wMenuBorderBottomCoord:: db ; cc05
-wMenuBorderRightCoord:: db ; cc06
-wMenuDataPointer:: dw ; cc07
-wMenuCursorBuffer:: db ; cc09
+ db
+wMenuBorderTopCoord:: db
+wMenuBorderLeftCoord:: db
+wMenuBorderBottomCoord:: db
+wMenuBorderRightCoord:: db
+wMenuDataPointer:: dw
+wMenuCursorBuffer:: db
; cc0a
ds 8 ; TODO
wMenuDataHeaderEnd::
wMenuData2::
-wMenuDataFlags:: db ; cc12
-wMenuDataItems:: db ; cc13
-wMenuDataIndicesPointer:: dw ; cc14
-wMenuDataDisplayFunctionPointer:: dw ; cc16
-wMenuDataPointerTableAddr:: dw ; cc18
+wMenuDataFlags:: db
+wMenuDataItems:: db
+wMenuDataIndicesPointer:: dw
+wMenuDataDisplayFunctionPointer:: dw
+wMenuDataPointerTableAddr:: dw
SECTION "MenuData3", WRAM0[$CC22]
-wMenuData3:: ; cc22
-
-w2DMenuCursorInitY:: db ; cc22
-w2DMenuCursorInitX:: db ; cc23
-w2DMenuNumRows:: db ; cc24
-w2DMenuNumCols:: db ; cc25
-w2DMenuFlags:: dw ; cc26
-w2DMenuCursorOffsets:: db ; cc28
-wMenuJoypadFilter:: db ; cc29
+wMenuData3::
+
+w2DMenuCursorInitY:: db
+w2DMenuCursorInitX:: db
+w2DMenuNumRows:: db
+w2DMenuNumCols:: db
+w2DMenuFlags:: dw
+w2DMenuCursorOffsets:: db
+wMenuJoypadFilter:: db
w2DMenuDataEnd::
-wMenuCursorY:: db ; cc2a
-wMenuCursorX:: db ; cc2b
-wCursorOffCharacter:: db ; cc2c
-wCursorCurrentTile:: dw ; cc2d
+wMenuCursorY:: db
+wMenuCursorX:: db
+wCursorOffCharacter:: db
+wCursorCurrentTile:: dw
SECTION "CC32", WRAM0[$CC32] ; Please merge when more is disassembled
-wVBlankJoyFrameCounter: db ; cc32
+wVBlankJoyFrameCounter: db
-wVBlankOccurred: db ; cc33
-wLastSpawnMapGroup: db ;cc34
-wLastSpawnMapNumber: db ; cc35
+wVBlankOccurred: db
+wLastSpawnMapGroup: db
+wLastSpawnMapNumber: db
ds 2
;Controls what type of opening (fire/notes) you get.
wcc38::
-wTitleSequenceOpeningType:: ; cc38
+wTitleSequenceOpeningType::
db
-wDefaultSpawnPoint:: ; cc39
+wDefaultSpawnPoint::
db
-wMovementBufferCount:: db ; cc3a
-wMovementBufferObject:: db ; cc3b
- ptrba wMovementBufferPointer ; cc3c
-wMovementBuffer:: ; cc3f
+wMovementBufferCount:: db
+wMovementBufferObject:: db
+ ptrba wMovementBufferPointer
+wMovementBuffer::
ds 55
SECTION "CC9A", WRAM0[$CC9A]
-wSkatingDirection:: db ; cc9a
-wCompanionCollisionFrameCounter:: db ; cc9b
+wSkatingDirection:: db
+wCompanionCollisionFrameCounter:: db
-wUnknownWordcc9c:: ; cc9c
+wUnknownWordcc9c::
dw
-wUnknownBuffercc9e:: ; cc9e
+wUnknownBuffercc9e::
ds 14
-wSpriteCurPosX : ds 1 ; ccac
-wSpriteCurPosY : ds 1 ; ccad
-wSpriteWidth : ds 1 ; ccae
-wSpriteHeight : ds 1 ; ccaf
-wSpriteInputCurByte : ds 1 ; ccb0
-wSpriteInputBitCounter : ds 1 ; ccb1
-wSpriteOutputBitOffset : ds 1 ; ccb2
-wSpriteLoadFlags : ds 1 ; ccb3
-wSpriteUnpackMode : ds 1 ; ccb4
-wSpriteFlipped : ds 1 ; ccb5
-wSpriteInputPtr : ds 2 ; ccb6
-wSpriteOutputPtr : ds 2 ; ccb8
-wSpriteOutputPtrCached : ds 2 ; ccba
-wSpriteDecodeTable0Ptr : ds 2 ; ccbc
-wSpriteDecodeTable1Ptr : ds 2 ; ccbe
-
-wccc0:: ds 1 ; ccc0
-wccc1:: ds 1 ; ccc1
-wccc2:: ds 1 ; ccc2
-wccc3:: ds 1 ; ccc3
-wccc4:: ds 1 ; ccc4
+wSpriteCurPosX : ds 1
+wSpriteCurPosY : ds 1
+wSpriteWidth : ds 1
+wSpriteHeight : ds 1
+wSpriteInputCurByte : ds 1
+wSpriteInputBitCounter : ds 1
+wSpriteOutputBitOffset : ds 1
+wSpriteLoadFlags : ds 1
+wSpriteUnpackMode : ds 1
+wSpriteFlipped : ds 1
+wSpriteInputPtr : ds 2
+wSpriteOutputPtr : ds 2
+wSpriteOutputPtrCached : ds 2
+wSpriteDecodeTable0Ptr : ds 2
+wSpriteDecodeTable1Ptr : ds 2
+
+wccc0:: ds 1
+wccc1:: ds 1
+wccc2:: ds 1
+wccc3:: ds 1
+wccc4:: ds 1
SECTION "CCC7", WRAM0[$CCC7]
-wDisableVBlankOAMUpdate:: db ; ccc7
+wDisableVBlankOAMUpdate:: db
SECTION "CCCA", WRAM0[$CCCA]
-wBGP:: db ; ccca
-wOBP0:: db ; cccb
-wOBP1:: db ; cccc
+wBGP:: db
+wOBP0:: db
+wOBP1:: db
-wcccd:: ds 1 ; cccd
+wcccd:: ds 1
-wDisableVBlankWYUpdate:: db ; ccce
+wDisableVBlankWYUpdate:: db
wSGB:: db
SECTION "CCD0", WRAM0[$CCD0]
-wccd0:: ds 1 ; ccd0
-wccd1:: ds 1 ; ccd1
-wccd2:: ds 1 ; ccd2
-wccd3:: ds 1 ; ccd3
+wccd0:: ds 1
+wccd1:: ds 1
+wccd2:: ds 1
+wccd3:: ds 1
ds 5
-wccd9:: ds 1 ; ccd9
+wccd9:: ds 1
SECTION "CCE1", WRAM0[$CCE1]
-wcce1:: ds 1 ; cce1
-wcce2:: ds 1 ; cce2
-wcce3:: ds 1 ; cce3
-wcce4:: ds 1 ; cce4
+wcce1:: ds 1
+wcce2:: ds 1
+wcce3:: ds 1
+wcce4:: ds 1
ds 6
-wcceb:: ds 1 ; cceb
+wcceb:: ds 1
ds 5
-wccf1:: ds 1 ; ccf1
-wccf2:: ds 1 ; ccf2
-wccf3:: ds 1 ; ccf3
-wccf4:: ds 1 ; ccf4
+wccf1:: ds 1
+wccf2:: ds 1
+wccf3:: ds 1
+wccf4:: ds 1
SECTION "CD11", WRAM0[$CD11]
-wcd11:: ds 1 ; cd11
+wcd11:: ds 1
ds 20
-wStringBuffer1:: ds 1 ; How long is this? ; cd26
+wStringBuffer1:: ds 1 ; How long is this?
wcd27:: ds 1
SECTION "CD31", WRAM0[$CD31]
UNION
-wStartDay:: db ;cd31
-wStartHour:: db ;cd32
-wStartMinute:: db ;cd33
+wStartDay:: db
+wStartHour:: db
+wStartMinute:: db
NEXTU
-wHPBarTempHP:: dw ; cd31
+wHPBarTempHP:: dw
NEXTU
-wStringBuffer2:: db ; How long is this? ; cd31
+wStringBuffer2:: db ; How long is this?
ENDU
SECTION "CD3C", WRAM0[$CD3C]
-wcd3c:: db ; cd3c
-wRegularItemsCursor:: db ; cd3d
-wBackpackAndKeyItemsCursor:: db ;cd3e
-wStartmenuCursor:: db ; cd3f
-wcd40:: db ; cd40
-wcd41:: db ; cd41
-wcd42:: db ; cd42
-wcd43:: db ; cd43
-wRegularItemsScrollPosition:: db ; cd44
-wBackpackAndKeyItemsScrollPosition:: db ; cd45
-wcd46:: ds 1 ; cd46
-wcd47:: ds 1 ; cd47
-wSelectedSwapPosition:: db ; cd48
-wMenuScrollPosition:: db ; cd49
+wcd3c:: db
+wRegularItemsCursor:: db
+wBackpackAndKeyItemsCursor:: db
+wStartmenuCursor:: db
+wcd40:: db
+wcd41:: db
+wcd42:: db
+wcd43:: db
+wRegularItemsScrollPosition:: db
+wBackpackAndKeyItemsScrollPosition:: db
+wcd46:: ds 1
+wcd47:: ds 1
+wSelectedSwapPosition:: db
+wMenuScrollPosition:: db
wTextDest:: ds 2; cd4a
-wQueuedScriptBank:: db ; cd4c
-wQueuedScriptAddr:: dw ; cd4d
+wQueuedScriptBank:: db
+wQueuedScriptAddr:: dw
-wPredefID:: ; cd4f
+wPredefID::
db
-wPredefHL:: ; cd50
+wPredefHL::
dw
-wPredefDE:: ; cd52
+wPredefDE::
dw
-wPredefBC:: ; cd54
+wPredefBC::
-wFarCallBCBuffer:: ; cd54
+wFarCallBCBuffer::
dw
-wcd56:: ds 1 ; cd56
-wcd57:: ds 1 ; cd57
-wFieldMoveSucceeded:: db ; cd58
-wVramState:: db ; cd59
+wcd56:: ds 1
+wcd57:: ds 1
+wFieldMoveSucceeded:: db
+wVramState:: db
ds 3 ; TODO
-wcd5d:: db ; cd5d
+wcd5d:: db
db
-wChosenStarter:: db ; cd5f
+wChosenStarter:: db
SECTION "CD70", WRAM0[$CD70]
-wcd70:: ds 1 ; cd70
-wcd71:: ds 1 ; cd71
-wcd72:: dw ; cd72
-wcd74:: db ; cd74
-wcd75:: db ; cd75
+wcd70:: ds 1
+wcd71:: ds 1
+wcd72:: dw
+wcd74:: db
+wcd75:: db
-wCurItem:: db ; cd76
-wItemIndex:: db ;cd77
-wMonDexIndex: db ; cd78
-wWhichPokemon: db ; cd79
+wCurItem:: db
+wItemIndex:: db
+wMonDexIndex: db
+wWhichPokemon: db
SECTION "CD7B", WRAM0[$CD7B]
-wHPBarType:: db ; cd7b
-wcd7c:: ds 1 ; cd7c
+wHPBarType:: db
+wcd7c:: ds 1
-wItemQuantity:: db ; cd7d
-wItemQuantityBuffer:: db ; cd7e
-wcd7f:: db ; cd7f
-wcd80:: db ; cd80
-wcd81:: db ; cd81
+wItemQuantity:: db
+wItemQuantityBuffer:: db
+wcd7f:: db
+wcd80:: db
+wcd81:: db
SECTION "CD9E", WRAM0 [$CD9E]
-wLoadedMonLevel:: db ; cd9e
+wLoadedMonLevel:: db
SECTION "CDAF", WRAM0 [$CDAF]
-wcdaf:: db ; cdaf
+wcdaf:: db
SECTION "CDB0", WRAM0 [$CDB0]
-wTalkingTargetType:: db ; cdb0
+wTalkingTargetType:: db
;bit 0 = has engaged NPC in dialogue
;bit 1 = has engaged sign in dialogue
-wcdb1:: ds 1 ; cdb1
-wcdb2:: ds 1 ; cdb2
+wcdb1:: ds 1
+wcdb2:: ds 1
SECTION "CDB9", WRAM0[$CDB9]
-wcdb9:: ds 1 ; cdb9
+wcdb9:: ds 1
-wItemAttributeParamBuffer:: db ; cdba
-wCurPartyLevel:: db ; cdbb
+wItemAttributeParamBuffer:: db
+wCurPartyLevel:: db
SECTION "CDBD", WRAM0[$CDBD]
-wLinkMode:: db ; cdbd
+wLinkMode:: db
; 00 -
; 01 -
; 02 -
; 03 -
-wNextWarp:: db ; cdbe
-wNextMapGroup:: db ; cdbf
-wNextMapId:: db ; cdc0
-wPrevWarp:: db ; cdc1
+wNextWarp:: db
+wNextMapGroup:: db
+wNextMapId:: db
+wPrevWarp:: db
ds 1
UNION
wFieldMoveScriptID:: db; cdc3
-wMapBlocksAddress:: dw ; cdc4
-wReplacementBlock:: db ; cdc6
+wMapBlocksAddress:: dw
+wReplacementBlock:: db
NEXTU
-wHPBarMaxHP:: dw ; cdc3
-wHPBarOldHP:: dw ; cdc5
+wHPBarMaxHP:: dw
+wHPBarOldHP:: dw
ENDU
-wHPBarNewHP:: dw ; cdc7
-wHPBarDelta:: db ; cdc9
-wcdca:: db ; cdca
-wHPBarHPDifference:: dw ; cdcb
-
-wLinkBattleRNs:: ds 10 ; cdcd
-
-wcdd7:: ds 1 ; cdd7
-wcdd8:: ds 1 ; cdd8
-wcdd9:: ds 1 ; cdd9
-wcdda:: ds 1 ; cdda
-wcddb:: ds 1 ; cddb
-wcddc:: ds 1 ; cddc
-wcddd:: ds 1 ; cddd
-wcdde:: ds 1 ; cdde
-wcddf:: ds 1 ; cddf
-wcde0:: ds 1 ; cde0
-wcde1:: ds 1 ; cde1
-wcde2:: ds 1 ; cde2
-wcde3:: ds 1 ; cde3
-wcde4:: ds 1 ; cde4
-wcde5:: ds 1 ; cde5
-wcde6:: ds 1 ; cde6
-wcde7:: ds 1 ; cde7
-wcde8:: ds 1 ; cde8
-wcde9:: ds 1 ; cde9
-wcdea:: ds 1 ; cdea
-wcdeb:: ds 1 ; cdeb
+wHPBarNewHP:: dw
+wHPBarDelta:: db
+wcdca:: db
+wHPBarHPDifference:: dw
+
+wLinkBattleRNs:: ds 10
+
+wcdd7:: ds 1
+wcdd8:: ds 1
+wcdd9:: ds 1
+wcdda:: ds 1
+wcddb:: ds 1
+wcddc:: ds 1
+wcddd:: ds 1
+wcdde:: ds 1
+wcddf:: ds 1
+wcde0:: ds 1
+wcde1:: ds 1
+wcde2:: ds 1
+wcde3:: ds 1
+wcde4:: ds 1
+wcde5:: ds 1
+wcde6:: ds 1
+wcde7:: ds 1
+wcde8:: ds 1
+wcde9:: ds 1
+wcdea:: ds 1
+wcdeb:: ds 1
SECTION "CDFE", WRAM0[$CDFE]
-wcdfe:: ds 1 ; cdfe
-wcdff:: ds 1 ; cdff
-wBattleMode:: db ; ce00
-wce01:: ds 1 ; ce01
-wce02:: ds 1 ; ce02
-wce03:: ds 1 ; ce03
-wce04:: ds 1 ; ce04
-wce05:: ds 1 ; ce05
-wce06:: ds 1 ; ce06
+wcdfe:: ds 1
+wcdff:: ds 1
+wBattleMode:: db
+wce01:: ds 1
+wce02:: ds 1
+wce03:: ds 1
+wce04:: ds 1
+wce05:: ds 1
+wce06:: ds 1
wMonHeader::
-wMonHIndex:: ; ce07
+wMonHIndex::
; In the ROM base stats data structure, this is the dex number, but it is
; overwritten with the dex number after the header is copied to WRAM.
ds 1
-wMonHBaseStats:: ; ce08
-wMonHBaseHP:: ; ce08
+wMonHBaseStats::
+wMonHBaseHP::
ds 1
-wMonHBaseAttack:: ; ce09
+wMonHBaseAttack::
ds 1
-wMonHBaseDefense:: ; ce0a
+wMonHBaseDefense::
ds 1
-wMonHBaseSpeed:: ; ce0b
+wMonHBaseSpeed::
ds 1
-wMonHBaseSpecialAtt:: ; ce0c
+wMonHBaseSpecialAtt::
ds 1
-wMonHBaseSpecialDef:: ; ce0d
+wMonHBaseSpecialDef::
ds 1
-wMonHTypes:: ; ce0e
-wMonHType1:: ; ce0e
+wMonHTypes::
+wMonHType1::
ds 1
-wMonHType2:: ; ce0f
+wMonHType2::
ds 1
-wMonHCatchRate:: ; ce10
+wMonHCatchRate::
ds 1
-wMonHBaseEXP:: ; ce11
+wMonHBaseEXP::
ds 1
-wMonHItems:: ; ce12
-wMonHItem1:: ; ce12
+wMonHItems::
+wMonHItem1::
ds 1
-wMonHItem2:: ; ce13
+wMonHItem2::
ds 1
-wMonHGenderRatio:: ; ce14
+wMonHGenderRatio::
ds 1
-wMonHUnk0:: ; ce15
+wMonHUnk0::
ds 1
-wMonHUnk1:: ; ce16
+wMonHUnk1::
ds 1
-wMonHUnk2:: ; ce17
+wMonHUnk2::
ds 1
-wMonHSpriteDim:: ; ce18
+wMonHSpriteDim::
ds 1
-wMonHFrontSprite:: ; ce19
+wMonHFrontSprite::
ds 2
-wMonHBackSprite:: ; ce1b
+wMonHBackSprite::
ds 2
-wMonHGrowthRate:: ; ce1d
+wMonHGrowthRate::
ds 1
-wMonHLearnset:: ; ce1e
+wMonHLearnset::
; bit field
flag_array 50 + 5 ; size = 7
ds 1
SECTION "CE2D", WRAM0[$CE2D]
-wce2d:: ds 1 ; ce2d
-wce2e:: ds 1 ; ce2e
-wce2f:: ds 1 ; ce2f
-wce30:: ds 1 ; ce30
-wce31:: ds 1 ; ce31
-wce32:: ds 1 ; ce32
-wce33:: ds 1 ; ce33
-wce34:: ds 1 ; ce34
-wce35:: ds 1 ; ce35
-wce36:: ds 1 ; ce36
+wce2d:: ds 1
+wce2e:: ds 1
+wce2f:: ds 1
+wce30:: ds 1
+wce31:: ds 1
+wce32:: ds 1
+wce33:: ds 1
+wce34:: ds 1
+wce35:: ds 1
+wce36:: ds 1
wNamedObjectIndexBuffer::
wCountSetBitsResult::
-wce37:: ; ce37
+wce37::
db
SECTION "CE3A", WRAM0[$CE3A]
-wce3a:: ds 1 ; ce3a
+wce3a:: ds 1
-wVBlankSavedROMBank:: ; ce3b
+wVBlankSavedROMBank::
db
-wBuffer:: ; ce3c
+wBuffer::
db
-wTimeOfDay:: db ; ce3d
+wTimeOfDay:: db
; based on RTC
; Time of Day Regular Debug
; 00 - Day 09--15h 00--30s
@@ -811,68 +811,68 @@ wcd3f: ds 1
SECTION "CE5F", WRAM0[$CE5F]
-wce5f:: ; ce5f ; debug menu writes $41 to it
+wce5f:: ; debug menu writes $41 to it
db
-wce60:: ; ce60
+wce60::
db ; main menu checks this, maybe states if there's a save present?
-wActiveFrame:: db ; ce61
+wActiveFrame:: db
-wTextBoxFlags:: db ; ce62
+wTextBoxFlags:: db
-wDebugFlags:: db ; ce63
+wDebugFlags:: db
; Bit 0: Debug battle indicator
; Bit 1: Debug field indicator
; Bit 2-3: Game is continued (set when selecting continue on the main menu)
-wce64:: ds 1 ; ce64
-wce65:: ds 1 ; ce65
-wce66:: ds 1 ; ce66
+wce64:: ds 1
+wce65:: ds 1
+wce66:: ds 1
-wPlayerName:: ds 6 ; ce67
+wPlayerName:: ds 6
-wMomsName:: ds 6 ; ce6d
+wMomsName:: ds 6
SECTION "CE73", WRAM0[$CE73]
-wce73: ds 1 ; ce73
-wce74: ds 1 ; ce74
-wce75: ds 1 ; ce75
+wce73: ds 1
+wce74: ds 1
+wce75: ds 1
-wObjectFollow_Leader:: ; ce76
+wObjectFollow_Leader::
db
-wObjectFollow_Follower:: ; ce77
+wObjectFollow_Follower::
db
-wCenteredObject:: ; ce78
+wCenteredObject::
db
-wFollowerMovementQueueLength:: ; ce79
+wFollowerMovementQueueLength::
db
-wFollowMovementQueue:: ; ce7a
+wFollowMovementQueue::
ds 5
-wObjectStructs:: ; ce7f
+wObjectStructs::
; Note: this might actually not be an object. TODO: Investigate (if indexing starts at 1, then this isn't an object)
; It might just be unused/a leftover.
-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
-wObjectStructsEnd:: ; d00f
-
-wCmdQueue:: ; d00f
+wUnkObjectStruct:: object_struct wUnkObject
+wPlayerStruct:: object_struct wPlayer
+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
+wObject8Struct:: object_struct wObject8
+wObjectStructsEnd::
+
+wCmdQueue::
wCmdQueueEntry1:: ds 16
wCmdQueueEntry2:: ds 16
wCmdQueueEntry3:: ds 16
wCmdQueueEntry4:: ds 16
-wMapObjects:: ; d04f
+wMapObjects::
wPlayerObject:: map_object wPlayer
wMap1Object:: map_object wMap1
wMap2Object:: map_object wMap2
@@ -889,9 +889,9 @@ wMap12Object:: map_object wMap12
wMap13Object:: map_object wMap13
wMap14Object:: map_object wMap14
wMap15Object:: map_object wMap15
-wMapObjectsEnd:: ; d14f
+wMapObjectsEnd::
-wToolgearFlags:: db ; d14f
+wToolgearFlags:: db
; 76543210
; | | \- show toolgear
; | |
@@ -900,20 +900,20 @@ wToolgearFlags:: db ; d14f
ds 2 ; TODO
-wTimeOfDayPal:: db ; d152
+wTimeOfDayPal:: db
; Applied according to wCurTimeOfDay from wTimeOfDayPalset
-wd153:: db ; d153
+wd153:: db
; 76543210
; | \- show player coords in toolgear instead of time
; \-------- switch overworld palettes according to seconds not hours
ds 3 ; TODO
-wTimeOfDayPalFlags:: db ; d157
+wTimeOfDayPalFlags:: db
; 76543210
; \-------- disable overworld palette switch
-wTimeOfDayPalset:: db ; d158
+wTimeOfDayPalset:: db
; 76543210
; \/\/\/\/
; | | | \- Map Palette for TimeOfDay 0x00
@@ -921,75 +921,75 @@ wTimeOfDayPalset:: db ; d158
; | \----- Map Palette for TimeOfDay 0x02
; \------- Map Palette for TimeOfDay 0x03
-wCurTimeOfDay:: db ; d159
+wCurTimeOfDay:: db
SECTION "D15B", WRAM0[$D15B]
-wd15b:: db ; d15b
+wd15b:: db
-wd15c:: db ; d15c
+wd15c:: db
-wd15d:: db ; d15d
+wd15d:: db
-wd15e:: db ; d15e
+wd15e:: db
-wd15f:: db ; d15f
+wd15f:: db
SECTION "D163", WRAM0[$D163]
-wd163:: db ; d163
+wd163:: db
-wd164:: db ; d164
+wd164:: db
-wTMsHMs:: db ; d165
+wTMsHMs:: db
SECTION "D19E", WRAM0[$D19E]
wItems::
-wNumBagItems:: db ; d19e
+wNumBagItems:: db
SECTION "D1C8", WRAM0[$D1C8]
-wNumKeyItems:: db ; d1c8
-wKeyItems:: db ; d1c9
+wNumKeyItems:: db
+wKeyItems:: db
SECTION "D1DE", WRAM0[$D1DE]
-wNumBallItems:: db ; d1de
-wBallQuantities:: db ; d1df
+wNumBallItems:: db
+wBallQuantities:: db
ds 10
-wUnknownListLengthd1ea:: db ; d1ea
-wUnknownListd1eb:: db ; d1eb
+wUnknownListLengthd1ea:: db
+wUnknownListd1eb:: db
SECTION "Rival's Name", WRAM0[$D256]
-wRegisteredItem:: db ; d256
-wRegisteredItemQuantity:: db ; d257
-wRivalName:: ds 6 ; d258
+wRegisteredItem:: db
+wRegisteredItemQuantity:: db
+wRivalName:: ds 6
ds 6
-wPlayerState:: db ; d264
+wPlayerState:: db
; 00 - walking
; 01 - bicycle
; 02 - skateboard
; 04 - surfing
-wd265:: db ; d265
-wd266:: db ; d266
+wd265:: db
+wd266:: db
;The starting house's map script number is stored at d29a. Others are probably nearby.
SECTION "D29A", WRAM0[$D29A]
-wd29a:: db ; d29a
-wd29b:: db ; d29b
-wd29c:: db ; d29c
-wd29d:: db ; d29d
-wd29e:: db ; d29e
+wd29a:: db
+wd29b:: db
+wd29c:: db
+wd29d:: db
+wd29e:: db
db
-wd2a0:: db ; d2a0
+wd2a0:: db
SECTION "D35F", WRAM0[$D35F]
-wOptions:: db ; d35f
+wOptions:: db
SECTION "D39D", WRAM0[$D39D]
wd39d:: db
@@ -1016,9 +1016,9 @@ wd41e:: db
SECTION "D4A9", WRAM0[$D4A9]
-wd4a9:: db ; d4a9
+wd4a9:: db
ds 1 ; TODO
-wJoypadFlags:: db ; d4ab
+wJoypadFlags:: db
; 76543210
; ||||\__/
; |||| \-- unkn
@@ -1029,260 +1029,260 @@ wJoypadFlags:: db ; d4ab
SECTION "wDigWarpNumber", WRAM0[$D4B2]
-wDigWarpNumber:: db ; d4b2
-wd4b3:: ds 1 ; d4b3
-wd4b4:: ds 1 ; d4b4
-wd4b5:: ds 1 ; d4b5
-wd4b6:: ds 1 ; d4b6
-wd4b7:: ds 1 ; d4b7
-wd4b8:: ds 1 ; d4b8
-wd4b9:: ds 1 ; d4b9
+wDigWarpNumber:: db
+wd4b3:: ds 1
+wd4b4:: ds 1
+wd4b5:: ds 1
+wd4b6:: ds 1
+wd4b7:: ds 1
+wd4b8:: ds 1
+wd4b9:: ds 1
SECTION "Warp data", WRAM0[$D513]
-wWarpNumber:: db ; d513
+wWarpNumber:: db
-wCurrMapWarpCount:: ; d514
+wCurrMapWarpCount::
db
-wCurrMapWarps:: ; d515
+wCurrMapWarps::
REPT 32 ; TODO: confirm this
ds 5
ENDR
-wCurrMapSignCount:: ; d5b5
+wCurrMapSignCount::
db
-wCurrMapSigns:: ; d5b6
+wCurrMapSigns::
REPT 16 ; TODO: confirm this
ds 4
ENDR
-wCurrMapObjectCount:: ; d5f6
+wCurrMapObjectCount::
db
-wCurrMapInlineTrainers:: ; d5f7
+wCurrMapInlineTrainers::
REPT 32 ; TODO: confirm this
ds 2 ; inline trainers. each pair of bytes is direction, distance
ENDR
SECTION "D637", WRAM0[$D637]
-wd637:: db ; d637 ;OW battle state? $3 wild battle, $8 is trainer battle $4 is left battle, $B is load overworld? $0 is in overworld
-wd638:: db ; d638 ;wd637's last written-to value
+wd637:: db ;OW battle state? $3 wild battle, $8 is trainer battle $4 is left battle, $B is load overworld? $0 is in overworld
+wd638:: db ;wd637's last written-to value
SECTION "Used sprites", WRAM0[$D643]
-wBGMapAnchor:: ; d643
+wBGMapAnchor::
dw
-wUsedSprites:: ; d645
+wUsedSprites::
dw ; This is for the player
-wUsedNPCSprites:: ;d647
+wUsedNPCSprites::
ds 2 * 5 ; This is for the NPCs
-wUsedSpritesEnd:: ; d651
+wUsedSpritesEnd::
SECTION "Map header", WRAM0[$D656]
-wMapGroup:: db ; d656
-wMapId:: db ; d657
+wMapGroup:: db
+wMapId:: db
-wOverworldMapAnchor:: ; d658
+wOverworldMapAnchor::
dw
-wYCoord:: db ; d65a
-wXCoord:: db ; d65b
+wYCoord:: db
+wXCoord:: db
-wMetatileNextY:: db ; d65c
-wMetatileNextX:: db ; d65d
+wMetatileNextY:: db
+wMetatileNextX:: db
-wd65e:: ; d65e
+wd65e::
db
-wMapPartial:: ; d65f
-wMapAttributesBank:: ; d65f
+wMapPartial::
+wMapAttributesBank::
db
-wMapTileset:: ; d660
+wMapTileset::
db
-wMapPermissions:: ; d661
+wMapPermissions::
db
-wMapAttributesPtr:: ; d662
+wMapAttributesPtr::
dw
-wMapPartialEnd:: ; d664
+wMapPartialEnd::
-wMapAttributes:: ; d664
-wMapHeight:: ; d664
+wMapAttributes::
+wMapHeight::
db
-wMapWidth:: ; d665
+wMapWidth::
db
-wMapBlocksPointer:: ; d666
+wMapBlocksPointer::
dw
wMapTextPtr::
dw
-wMapScriptPtr:: ; d66a
+wMapScriptPtr::
dw
-wMapObjectsPtr:: ; d66c
+wMapObjectsPtr::
dw
-wMapConnections:: ; d66e
+wMapConnections::
db
-wMapAttributesEnd:: ; d66f
+wMapAttributesEnd::
-wNorthMapConnection:: map_connection_struct wNorth ; d66f
-wSouthMapConnection:: map_connection_struct wSouth ; d67b
-wWestMapConnection:: map_connection_struct wWest ; d687
-wEastMapConnection:: map_connection_struct wEast ; d693
+wNorthMapConnection:: map_connection_struct wNorth
+wSouthMapConnection:: map_connection_struct wSouth
+wWestMapConnection:: map_connection_struct wWest
+wEastMapConnection:: map_connection_struct wEast
-wTileset:: ; d69f
-wTilesetBank:: ; d69f
+wTileset::
+wTilesetBank::
db
-wTilesetBlocksAddress:: ; d6a0
+wTilesetBlocksAddress::
dw
-wTilesetTilesAddress:: ; d6a2
+wTilesetTilesAddress::
dw
-wTilesetCollisionAddress:: ; d6a4
+wTilesetCollisionAddress::
dw
ds 4 ; TODO
-wTilesetEnd:: ; d6aa
+wTilesetEnd::
wPartyCount:: db
-wPartySpecies:: ds PARTY_LENGTH ; d6ab - d6b0
-wPartyEnd:: db ; d6b1
+wPartySpecies:: ds PARTY_LENGTH
+wPartyEnd:: db
wPartyMons::
-wPartyMon1:: party_struct wPartyMon1 ; d6b2
-wPartyMon2:: party_struct wPartyMon2 ; d6e2
-wPartyMon3:: party_struct wPartyMon3 ; d712
-wPartyMon4:: party_struct wPartyMon4 ; d742
-wPartyMon5:: party_struct wPartyMon5 ; d772
-wPartyMon6:: party_struct wPartyMon6 ; d7a2
-wPlayerPartyEnd:: ; d7d2
-
-wPartyMonOT:: ; d7d2
+wPartyMon1:: party_struct wPartyMon1
+wPartyMon2:: party_struct wPartyMon2
+wPartyMon3:: party_struct wPartyMon3
+wPartyMon4:: party_struct wPartyMon4
+wPartyMon5:: party_struct wPartyMon5
+wPartyMon6:: party_struct wPartyMon6
+wPlayerPartyEnd::
+
+wPartyMonOT::
ds PARTY_LENGTH * 6
-wPartyMonOTEnd:: ; d7f6
+wPartyMonOTEnd::
-wPartyMonNicknames:: ; d7f6
+wPartyMonNicknames::
ds PARTY_LENGTH * MON_NAME_LENGTH ; = $24
-wPartyMonNicknamesEnd:: ; d81a
+wPartyMonNicknamesEnd::
-wPokedexOwned:: ; d81a
+wPokedexOwned::
flag_array NUM_POKEMON
-wPokedexOwnedEnd:: ; d839
+wPokedexOwnedEnd::
-wPokedexSeen:: ; d83a
+wPokedexSeen::
flag_array NUM_POKEMON
-wPokedexSeenEnd:: ; d859
+wPokedexSeenEnd::
-wAnnonDex:: ds 26 ; d85a
+wAnnonDex:: ds 26
-wAnnonID:: ds 1 ; d874
+wAnnonID:: ds 1
-wd875:: ds 1 ; d875
-wd876:: ds 1 ; d876
+wd875:: ds 1
+wd876:: ds 1
ds 5
-wd87c:: ds 1 ; d87c
+wd87c:: ds 1
ds 5
-wd882:: ds 1 ; d882
-wd883:: ds 1 ; d883
-wd884:: ds 1 ; d884
+wd882:: ds 1
+wd883:: ds 1
+wd884:: ds 1
SECTION "D8A2", WRAM0[$D8A2]
-wd8a2:: ds 1 ; d8a2
-wd8a3:: ds 1 ; d8a3
-wd8a4:: ds 1 ; d8a4
-wd8a5:: ds 1 ; d8a5
+wd8a2:: ds 1
+wd8a3:: ds 1
+wd8a4:: ds 1
+wd8a5:: ds 1
ds 5
-wd8ab:: ds 1 ; d8ab
+wd8ab:: ds 1
SECTION "wd8b1", WRAM0[$D8B1]
-wd8b1:: ds 1 ; d8b1
+wd8b1:: ds 1
ds 5
-wd8b7:: ds 1 ; d8b7
-wd8b8:: ds 1 ; d8b8
+wd8b7:: ds 1
+wd8b8:: ds 1
SECTION "D8D1", WRAM0[$D8D1]
-wd8d1:: ds 1 ; d8d1
+wd8d1:: ds 1
ds 5
-wd8d7:: ds 1 ; d8d7
+wd8d7:: ds 1
ds 5
-wd8dd:: ds 1 ; d8dd
+wd8dd:: ds 1
SECTION "D8E3", WRAM0[$D8E3]
-wd8e3:: ds 1 ; d8e3
-wd8e4:: ds 1 ; d8e4
+wd8e3:: ds 1
+wd8e4:: ds 1
SECTION "D8FD", WRAM0[$D8FD]
-wd8fd:: ds 1 ; d8fd
+wd8fd:: ds 1
SECTION "D913", WRAM0[$D913]
-wd913:: ds 1 ; d913
+wd913:: ds 1
SECTION "Wild mon buffer", WRAM0[$D91B]
UNION
-wWildMons:: ; d91b
+wWildMons::
ds 41
NEXTU
ds 2
-wd91d:: ds 1 ; d91d
+wd91d:: ds 1
ds 29
-wd93b:: ds 1 ; d93b
+wd93b:: ds 1
ENDU
SECTION "DA3B", WRAM0[$DA3B]
-wOTPartyMonOT:: db ; da3b
+wOTPartyMonOT:: db
SECTION "DA5F", WRAM0[$DA5F]
-wda5f:: db ; da5f
+wda5f:: db
SECTION "DA83", WRAM0[$DA83]
-wBoxListLength:: db ; da83
-wBoxList:: ds MONS_PER_BOX ; da84
+wBoxListLength:: db
+wBoxList:: ds MONS_PER_BOX
SECTION "DAA3", WRAM0[$DAA3]
-wdaa3:: db ; daa3
-wdaa4:: db ; daa4
-wdaa5:: db ; daa5
+wdaa3:: db
+wdaa4:: db
+wdaa5:: db
SECTION "DE63", WRAM0[$DE63]
-wde63:: db ; de63
+wde63:: db
SECTION "DF17", WRAM0[$DF17]
-wdf17:: ds 1 ; df17
+wdf17:: ds 1
SECTION "DFCB", WRAM0[$DFCB]
-wdfcb:: ds 1 ; dfcb
+wdfcb:: ds 1
SECTION "Stack Bottom", WRAM0
; Where SP is set at game init
-wStackBottom:: ; dfff
+wStackBottom::
; Due to the way the stack works (`push` first decrements, then writes), the byte at $DFFF is actually wasted