summaryrefslogtreecommitdiff
path: root/src/sram.asm
blob: 481c8e498c08f122ce152ddeaae77ec718c3a907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
SECTION "SRAM0", SRAM

s0a000:: ; a000
	ds $3

s0a003:: ; a003
	ds $1
s0a004:: ; a004
	ds $1

; keeps track of the number of times Card Pop!
; was done successfully within this save file
sTotalCardPopsDone:: ; a005
	ds $1

sTextSpeed:: ; a006
	ds $1

; store settings for animation enabled/disabled
; 0 means enabled, 1 means disabled
sAnimationsDisabled:: ; a007
	ds $1

s0a008:: ; a008
	ds $1
s0a009:: ; a009
	ds $1
s0a00a:: ; a00a
	ds $1
s0a00b:: ; a00b
	ds $1
s0a00c:: ; a00c
	ds $4

sPlayerName:: ; a010
	ds NAME_BUFFER_LENGTH

	ds $e0

; 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 $100

sDeck1Name:: ; a200
	ds DECK_NAME_SIZE
sDeck1Cards:: ; a218
	ds DECK_SIZE

sDeck2Name:: ; a254
	ds DECK_NAME_SIZE
sDeck2Cards:: ; a26c
	ds DECK_SIZE

sDeck3Name:: ; a2a8
	ds DECK_NAME_SIZE
sDeck3Cards:: ; a2c0
	ds DECK_SIZE

sDeck4Name:: ; a2fc
	ds DECK_NAME_SIZE
sDeck4Cards:: ; a314
	ds DECK_SIZE

s0a350:: ; a350
	ds DECK_NAME_SIZE + DECK_SIZE
s0a3a4:: ; a3a4
	ds DECK_NAME_SIZE + DECK_SIZE
s0a3f8:: ; a3f8
	ds DECK_NAME_SIZE + DECK_SIZE

	ds $12b4

sCurrentlySelectedDeck:: ; b700
	ds $1

sb701:: ; b701
	ds $1

	ds $1

sb703:: ; b703
	ds $1

	ds $fc

sb800:: ; b800
	ds $8

sb808:: ; b808
	ds $1

sb809:: ; b809
	ds $1

sPlayTimeCounter:: ; b80a
	ds $5

sOverworldMapSelection:: ; b80f
	ds $1

sTempMap:: ; b810
	ds $1

sTempPlayerXCoord:: ; b811
	ds $1

sTempPlayerYCoord:: ; b812
	ds $1

sTempPlayerDirection:: ; b813
	ds $1

sb814:: ; b814
	ds $1

sDuelResult:: ; b815
	ds $1

sNPCDuelist:: ; b816
	ds $1

sChallengeHallNPC:: ; b817
	ds $1

sb818:: ; b818
	ds $4

sOWMapEvents:: ; b81c
	ds NUM_MAP_EVENTS

sb827:: ; b827
	ds $1

sb828:: ; b828
	ds $1

sb829:: ; b829
	ds $1

sb82a:: ; b82a
	ds $1

sb82b:: ; b82b
	ds $1

sPCPackSelection:: ; b82c
	ds $1

sPCPacks:: ; b82d
	ds $f

sDefaultSong:: ; b83c
	ds $1

sb83d:: ; b83d
	ds $1

sb83e:: ; b83e
	ds $1

sb83f:: ; b83f
	ds $a

sb849:: ; b849
	ds $1

sMultichoiceTextboxResult_ChooseDeckToDuelAgainst:: ; b84a
	ds $1

sb84b:: ; b84b
	ds $1

sb84c:: ; b84c
	ds $f

sb85b:: ; b85b
	ds $10

sb86b:: ; b86b
	ds $10

sEventVars:: ; b87b
	ds $40

	ds $189

sba44:: ; ba44
	ds $1

	ds $11

sba56:: ; ba56
	ds $1

sba57:: ; ba57
	ds $1

	ds $10

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

; 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 $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
sCurrentDuel:: ; bc00
	ds $1
sCurrentDuelChecksum:: ; bc01
	ds $2
sCurrentDuelData:: ; bc04
	ds $33b

SECTION "SRAM3", SRAM