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
|
SECTION "HRAM", HRAM
hBankROM:: ; ff80
ds $1
hBankSRAM:: ; ff81
ds $1
hBankVRAM:: ; ff82
ds $1
hDMAFunction:: ; ff83
ds $a
; D-pad repeat counter. see HandleDPadRepeat
hDPadRepeat:: ; ff8d
ds $1
; keys pressed in last frame but not in current frame
hKeysReleased:: ; ff8e
ds $1
; used to quickly scroll through menus when a relevant D-pad key is held
; see HandleDPadRepeat
hDPadHeld:: ; ff8f
ds $1
; keys pressed in last frame and in current frame
hKeysHeld:: ; ff90
ds $1
; keys pressed in current frame but not in last frame
hKeysPressed:: ; ff91
ds $1
hSCX:: ; ff92
ds $1
hSCY:: ; ff93
ds $1
hWX:: ; ff94
ds $1
hWY:: ; ff95
ds $1
hff96:: ; ff96
ds $1
; $c2 = player ; $c3 = opponent
hWhoseTurn:: ; ff97
ds $1
; deck index of a card (0-59)
hTempCardIndex_ff98:: ; ff98
ds $1
; used in SortCardsInListByID
hTempListPtr_ff99:: ; ff99
ds $2
; used in SortCardsInListByID
; this function supports 16-bit card IDs
hTempCardID_ff9b:: ; ff9b
ds $2
; a PLAY_AREA_* constant (0: arena card, 1-5: bench card)
hTempPlayAreaLocation_ff9d:: ; ff9d
ds $1
; index for AIActionTable
hOppActionTableIndex:: ; ff9e
ds $1
; deck index of a card (0-59)
hTempCardIndex_ff9f:: ; ff9f
ds $1
UNION
; multipurpose temp storage (card's deck index, selected attack index, status condition...)
hTemp_ffa0:: ; ffa0
ds $1
; a PLAY_AREA_* constant (0: arena card, 1-5: bench card)
hTempPlayAreaLocation_ffa1:: ; ffa1
; parameter to be used by the AI's Pkmn Power effect
hAIPkmnPowerEffectParam:: ; ffa1
ds $1
UNION
; $ff-terminated list of cards to be discarded upon retreat
hTempRetreatCostCards:: ; ffa2
ds $6
NEXTU
; parameters chosen by AI in Energy Trans routine.
; the deck index (0-59) of the energy card to transfer
; and the Play Area location (PLAY_AREA_*) of card to receive that energy card.
hAIEnergyTransEnergyCard:: ; ffa2
; PLAY_AREA_* of target selected for some Pkmn Powers,
; (e.g. Curse, Damage Swap) and for trainer card effect.
hPlayAreaEffectTarget:: ; ffa2
ds $1
hAIEnergyTransPlayAreaLocation:: ; ffa3
ds $1
ENDU
NEXTU
; list of various items, such as
; cards selected for various effects,
; Play Area locations, etc.
hTempList:: ; ffa0
ds $8
ENDU
; hffa8 through hffb0 belong to the text engine
hffa8:: ; ffa8
ds $1
hffa9:: ; ffa9
ds $1
; Address within v*BGMap0 where text is currently being written to
hTextBGMap0Address:: ; ffaa
ds $2
; position within a line of text where text is currently being placed at
; ranges between 0 and [hTextLineLength]
hTextLineCurPos:: ; ffac
ds $1
; used as an x coordinate offset when printing text, in order to align
; the text's starting position and/or adjust for the BG scroll registers
hTextHorizontalAlign:: ; ffad
ds $1
; how many tiles can be fit per line in the current text area
; for example, 11 for a narrow text box and 19 for a wide text box
hTextLineLength:: ; ffae
ds $1
; when printing text and no leading control character is specified, whether characters
; $10 to $60 map to the katakana.1bpp font graphics as characters $0 to $50
; (TX_KATAKANA mode), or map to the hiragana.1bpp font graphics (TX_HIRAGANA mode).
; the TX_HIRAGANA and TX_KATAKANA control characters are used to set this address to said
; value. only these two values are admitted, as any other is interpreted as TX_HIRAGANA.
hJapaneseSyllabary:: ; ffaf
ds $1
hffb0:: ; ffb0
ds $1
; unlike wCurMenuItem, this accounts for the scroll offset (wListScrollOffset)
hCurMenuItem:: ; ffb1
ds $1
; stores the item number in the selection menu of various effects
hCurSelectionItem:: ; ffb2
ds $1
hffb3:: ; ffb3
ds $1
hffb4:: ; ffb4
ds $1
hffb5:: ; ffb5
ds $1
; used in DivideBCbyDE
hffb6:: ; ffb6
ds $1
hffb7:: ; ffb7
ds $1
|