summaryrefslogtreecommitdiff
path: root/src/sram.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2021-02-23 21:07:01 -0600
committerGitHub <noreply@github.com>2021-02-23 21:07:01 -0600
commit5fdf423da5fdcc24d73e88ea21cc98f58c448c96 (patch)
treed1a7ed19e75e8a85a96b71ce532b1f2fa4a174fa /src/sram.asm
parent8a37415c695b81b3bf434d3a2fe2a911f68acc28 (diff)
parentb7569adb2dd7f30f198afc62c29dda05e5491ae0 (diff)
Merge pull request #101 from ElectroDeoxys/master
Card Pop! and Printer (bank$06)
Diffstat (limited to 'src/sram.asm')
-rw-r--r--src/sram.asm47
1 files changed, 41 insertions, 6 deletions
diff --git a/src/sram.asm b/src/sram.asm
index dfcf9c9..481c8e4 100644
--- a/src/sram.asm
+++ b/src/sram.asm
@@ -7,8 +7,12 @@ s0a003:: ; a003
ds $1
s0a004:: ; a004
ds $1
-s0a005:: ; a005
+
+; keeps track of the number of times Card Pop!
+; was done successfully within this save file
+sTotalCardPopsDone:: ; a005
ds $1
+
sTextSpeed:: ; a006
ds $1
@@ -197,16 +201,47 @@ sba57:: ; ba57
sba68:: ; ba68
ds $1
+ ds $97
+
+; keeps track of last 16 player's names that
+; this save file has done Card Pop! with
+sCardPopNameList:: ; bb00
+ ds CARDPOP_NAME_LIST_SIZE
+
SECTION "SRAM1", SRAM
-; from VRAM0
-sBGMap0:: ds $400 ; a000
-; from VRAM1
-sBGMap1:: ds $400 ; a400
+; buffers used to temporary store gfx related data
+; such as tiles or BG maps
+sGfxBuffer0:: ; a000
+ ds $400
+
+sGfxBuffer1:: ; a400
+ ds $400
+
+sGfxBuffer2:: ; a800
+ ds $400
+
+sGfxBuffer3:: ; ac00
+ ds $400
+
+sGfxBuffer4:: ; b000
+ ds $400
+
+sGfxBuffer5:: ; b400
+ ds $400
SECTION "SRAM2", SRAM
- ds $1c00
+ ds $18fe
+
+; byte 1 = total number of cards collected
+; byte 2 = total number of cards to collect
+; (doesn't count Phantom cards unless they
+; have been collected already)
+sAlbumProgress:: ; b8fe
+ ds $2
+
+ ds $300
; saved data of the current duel, including a two-byte checksum
; see SaveDuelDataToDE