summaryrefslogtreecommitdiff
path: root/ram
diff options
context:
space:
mode:
authorZumi <13794376+ZoomTen@users.noreply.github.com>2021-07-05 05:08:45 +0700
committerGitHub <noreply@github.com>2021-07-04 18:08:45 -0400
commitaf65010e2ca58f275b14046d60708b83398dddfd (patch)
tree624ef4cd0c305cd7bb98fd7ecc91d1dbb2739cd1 /ram
parent71050d61347bfe1e196a385d84bfb6a3c6d7e22d (diff)
Disassemble field debug (bank $3f) (#97)
* Disassemble SFX and cries * Disassemble clock dialog * Disassemble slot machine minigame * Disassemble AnimateTilesetImpl * Disassemble start menu frame type dialog * Disassemble field menu * Split debug menus into debug folder * Remove redundant shims
Diffstat (limited to 'ram')
-rw-r--r--ram/hram.asm5
-rw-r--r--ram/wram.asm48
2 files changed, 51 insertions, 2 deletions
diff --git a/ram/hram.asm b/ram/hram.asm
index 2b28792..8269616 100644
--- a/ram/hram.asm
+++ b/ram/hram.asm
@@ -11,7 +11,10 @@ hRTCSeconds:: db
hRTCDays:: db
ds 2 ; TODO
hRTCStatusFlags:: db
- ds 3 ; TODO
+
+ ds 2 ; TODO
+
+hDebugMapViewerJumptable:: db
hVBlankCounter::
db
diff --git a/ram/wram.asm b/ram/wram.asm
index 1ba561b..11b0c16 100644
--- a/ram/wram.asm
+++ b/ram/wram.asm
@@ -614,6 +614,7 @@ wWindowStackPointer:: dw
wMenuJoypad:: db
wMenuSelection:: db
wMenuSelectionQuantity:: db
+wFieldDebugPage::
wWhichIndexSet::
wActiveBackpackPocket:: db
wScrollingMenuCursorPosition:: db
@@ -676,12 +677,33 @@ wTitleSequenceOpeningType::
wDefaultSpawnPoint::
db
+
+UNION
+
+wcc40:: ; XXX fix this to cc3a
wMovementBufferCount:: db
+
+wcc41:: ; XXX fix this to cc3b
wMovementBufferObject:: db
+
ptrba wMovementBufferPointer
+
wMovementBuffer::
ds 55
+NEXTU
+
+wSpriteViewerMenuStartingItem:: db
+
+ ds 2
+
+wSpriteViewerSavedMenuPointerY:: db
+wSpriteViewerJumptableIndex:: db
+
+ ds 56
+
+ENDU
+
SECTION "CC9A", WRAM0[$CC9A]
wSkatingDirection:: db
@@ -797,6 +819,7 @@ wStartmenuCursor:: db
wcd40:: db
wcd41:: db
wcd42:: db
+wFieldDebugMenuCursorBuffer::
wcd43:: db
wRegularItemsScrollPosition:: db
wBackpackAndKeyItemsScrollPosition:: db
@@ -831,6 +854,7 @@ wVramState:: db
wcd5d:: db
db
wChosenStarter:: db
+wcd60:: db
SECTION "CD70", WRAM0[$CD70]
wcd70:: ds 1
@@ -905,9 +929,21 @@ NEXTU
wHPBarMaxHP:: dw
wHPBarOldHP:: dw
+NEXTU
+
+wcdc3:: db
+wcdc4:: db
+wcdc5:: db
+wcdc6:: db
+
ENDU
+UNION
wHPBarNewHP:: dw
+NEXTU
+wcdc7:: db
+wcdc8:: db
+ENDU
wHPBarDelta:: db
wcdca:: db
wHPBarHPDifference:: dw
@@ -1146,7 +1182,7 @@ wTimeOfDayPal:: db
wd153:: db
; 76543210
; | \- show player coords in toolgear instead of time
-; \-------- switch overworld palettes according to seconds not hours
+; \-------- switch overworld palettes according to minutes not hours
ds 3 ; TODO
wTimeOfDayPalFlags:: db
@@ -1317,9 +1353,19 @@ wd642:: db
wBGMapAnchor::
dw
+UNION
+
wUsedSprites::
ds 2
+NEXTU
+
+ ds 1
+
+wd646:: db
+
+ENDU
+
wUsedNPCSprites::
ds 8