summaryrefslogtreecommitdiff
path: root/src/wram.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2021-02-13 10:35:48 -0600
committerGitHub <noreply@github.com>2021-02-13 10:35:48 -0600
commitc708b288d4f978b7e269c934233a7db747d91a53 (patch)
tree2f47676cf2c883c2a914ca38ee4b66448ff8f21d /src/wram.asm
parent6e5930f1fd92ba435c58a7936b15ded2cd4118aa (diff)
parent951e41f17f74156e5eccfffda553e92e649629e6 (diff)
Merge pull request #95 from ElectroDeoxys/anims
More graphics disassembling
Diffstat (limited to 'src/wram.asm')
-rw-r--r--src/wram.asm42
1 files changed, 28 insertions, 14 deletions
diff --git a/src/wram.asm b/src/wram.asm
index 184542f..0e10d26 100644
--- a/src/wram.asm
+++ b/src/wram.asm
@@ -2076,13 +2076,15 @@ wPCLastDirectionPressed:: ; d12d
ds $1
-wd12f:: ; d12f
+wBGMapWidth:: ; d12f
ds $1
-wd130:: ; d130
+wBGMapHeight:: ; d130
ds $1
-wd131:: ; d131
+; current tilemap to load
+; TILEMAP_* constant
+wCurTilemap:: ; d131
ds $1
wd132:: ; d132
@@ -2123,14 +2125,13 @@ wd237:: ; d237
wd238:: ; d238
ds $1
-wd239:: ; d239
+; current tileset to load to VRAM
+; TILESET_* constant
+wCurTileset:: ; d239
ds $1
wd23a:: ; d23a
- ds $1
-
-wd23b:: ; d23b
- ds $1
+ ds $2
wd23c:: ; d23c
ds $1
@@ -2138,10 +2139,20 @@ wd23c:: ; d23c
wd23d:: ; d23d
ds $1
+UNION
+
; palette loaded from Palette* data
wLoadedPalData:: ; d23e
ds $50
+NEXTU
+
+; where BG map data is decompressed
+wBGMapBuffer:: ; d23e
+ ds $40
+
+ENDU
+
wd28e:: ; d28e
ds $1
@@ -2154,7 +2165,10 @@ wd290:: ; d290
wd291:: ; d291
ds $1
-wd292:: ; d292
+; determines where to copy BG Map data
+; $0 = copies to VRAM
+; $1 = copies to SRAM
+wBGMapCopyMode:: ; d292
ds $1
ds $4
@@ -2479,11 +2493,9 @@ wTempPointerBank:: ; d4c6
wCurSpriteTileSize:: ; d4c7
ds $1
-; stores number of tiles that current sprite has
-wCurSpriteNumTiles:: ; d4c8
- ds $1
-
- ds $1
+; stores number of tiles that current sprite/tileset has
+wTotalNumTiles:: ; d4c8
+ ds $2
; stores tile offset in VRAM
wVRAMTileOffset:: ; d4ca
@@ -2491,6 +2503,8 @@ wVRAMTileOffset:: ; d4ca
wd4ca:: ; d4ca
ds $1
+; bottom bit stores which VRAM bank to draw certain gfx
+; $0 = VRAM0, $1 = VRAM1
wd4cb:: ; d4cb
ds $1