mirror of
https://github.com/pret/poketcg2.git
synced 2026-09-29 22:10:24 -04:00
129 lines
1.8 KiB
NASM
129 lines
1.8 KiB
NASM
SECTION "SRAM0", SRAM
|
|
|
|
s0a000:: ; a000
|
|
ds $3
|
|
|
|
sPrinterContrastLevel:: ; a003
|
|
ds $1
|
|
|
|
s0a004:: ; a004
|
|
ds $1
|
|
|
|
sTotalCardPopsDone:: ; a005
|
|
ds $1
|
|
|
|
sTextSpeed:: ; a006
|
|
ds $1
|
|
|
|
s0a007:: ; a007
|
|
ds $1
|
|
|
|
ds $1
|
|
|
|
s0a009:: ; a009
|
|
ds $1
|
|
|
|
s0a00a:: ; a00a
|
|
ds $1
|
|
|
|
s0a00b:: ; a00b
|
|
ds $1
|
|
|
|
sTextBoxFrameColor:: ; a00c
|
|
ds $1
|
|
|
|
ds $3
|
|
|
|
sPlayerName:: ; a010
|
|
ds NAME_BUFFER_LENGTH
|
|
|
|
s0a020:: ; a020
|
|
ds $4
|
|
|
|
ds $dc
|
|
|
|
sCardAndDeckSaveData::
|
|
|
|
; for each card, how many (0-127) the player owns
|
|
; CARD_NOT_OWNED ($80) indicates that the player has not yet seen the card
|
|
sCardCollection:: ; a100
|
|
ds CARD_COLLECTION_SIZE
|
|
|
|
sBuiltDecks::
|
|
sDeck1:: deck_struct sDeck1 ; a300
|
|
sDeck2:: deck_struct sDeck2 ; a360
|
|
sDeck3:: deck_struct sDeck3 ; a3c0
|
|
sDeck4:: deck_struct sDeck4 ; a420
|
|
|
|
ds $60
|
|
|
|
sSavedDecks:: ; a4e0
|
|
; wSavedDeck1 - wSavedDeck10
|
|
FOR n, 1, NUM_DECK_SAVE_MACHINE_SLOTS + 1
|
|
sSavedDeck{d:n}:: deck_struct sSavedDeck{d:n}
|
|
ENDR
|
|
|
|
sCurrentlySelectedDeck:: ; b7a0
|
|
ds $1
|
|
|
|
s0b7a1:: ; b7a1
|
|
ds $1
|
|
|
|
ds $1
|
|
|
|
; each bit represents whether the player has
|
|
; obtained a card from a given set
|
|
sBoosterPacksObtained:: ; b7a3
|
|
ds $1
|
|
|
|
ds $3
|
|
|
|
sCardAndDeckSaveDataEnd::
|
|
|
|
ds $359
|
|
|
|
; saved data of the current duel, including a two-byte checksum
|
|
; see SaveDuelDataToDE
|
|
sSavedDuel:: ; bb00
|
|
ds $1
|
|
sSavedDuelChecksum:: ; bb01
|
|
ds $3
|
|
sSavedDuelData:: ; bb04
|
|
ds $352
|
|
|
|
SECTION "SRAM1", SRAM
|
|
|
|
; keeps track of last 16 player's names that
|
|
; this save file has done Card Pop! with
|
|
sCardPopNameList:: ; a000
|
|
ds CARDPOP_NAME_LIST_SIZE
|
|
|
|
s1a100:: ; a100
|
|
ds $1
|
|
|
|
SECTION "SRAM2", SRAM
|
|
|
|
|
|
|
|
SECTION "SRAM3", SRAM
|
|
|
|
; 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
|