-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.asm
executable file
·443 lines (315 loc) · 9.95 KB
/
main.asm
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
include "charmap.asm"
include "constants.asm"
include "structures.asm"
section "Bank 0", ROM0
incbin "baserom.gbc", $0000, $4000
section "Bank 1", ROMX
incbin "baserom.gbc", $4000, $2A42
include "data/floor_info.asm"
incbin "baserom.gbc", $77AE, $852
section "Bank 2", ROMX
incbin "baserom.gbc", $8000, $4000
section "Bank 3", ROMX
incbin "baserom.gbc", $C000, $461
include "data/species_info.asm"
incbin "baserom.gbc", $E980, $1680
section "Bank 4", ROMX
incbin "baserom.gbc", $10000, $4000
section "Bank 5", ROMX
incbin "baserom.gbc", $14000, $4000
section "Bank 6", ROMX
incbin "baserom.gbc", $18000, $4000
section "Bank 7", ROMX
incbin "baserom.gbc", $1C000, $4000
section "Bank 8", ROMX
incbin "baserom.gbc", $20000, $4000
section "Bank 9", ROMX
incbin "baserom.gbc", $24000, $4000
section "Bank 10", ROMX
incbin "baserom.gbc", $28000, $4000
section "Bank 11", ROMX
incbin "baserom.gbc", $2C000, $4000
section "Bank 12", ROMX
incbin "baserom.gbc", $30000, $4000
section "Bank 13", ROMX
incbin "baserom.gbc", $34000, $4000
section "Bank 14", ROMX
incbin "baserom.gbc", $38000, $4000
section "Bank 15", ROMX
incbin "baserom.gbc", $3C000, $4000
section "Bank 16", ROMX
incbin "baserom.gbc", $40000, $4000
section "Bank 17", ROMX
incbin "baserom.gbc", $44000, $4000
section "Bank 18", ROMX
incbin "baserom.gbc", $48000, $4000
section "Bank 19", ROMX
incbin "baserom.gbc", $4C000, $1E6
include "data/experience_table.asm"
include "data/level_up_stat_gains.asm"
incbin "baserom.gbc", $4F366, $C9A
section "Bank 20", ROMX
incbin "baserom.gbc", $50000, $C1D
include "data/monster_info.asm"
incbin "baserom.gbc", $53BAC, $454
section "Bank 21", ROMX
incbin "baserom.gbc", $54000, $217B
include "data/personality_compatibility_table.asm"
incbin "baserom.gbc", $56456, $1BAA
section "Bank 22", ROMX
incbin "baserom.gbc", $58000, $874
include "data/unevolved_skill_map.asm"
include "data/breeding_table.asm"
incbin "baserom.gbc", $59B4E, $1558
include "data/gate_info.asm"
incbin "baserom.gbc", $5B1A6, $E5A
section "Bank 23", ROMX
incbin "baserom.gbc", $5C000, $4000
section "Bank 24", ROMX
incbin "baserom.gbc", $60000, $4000
section "Bank 25", ROMX
incbin "baserom.gbc", $64000, $4000
section "Bank 26", ROMX
incbin "baserom.gbc", $68000, $152
include "data/text1.asm"
incbin "baserom.gbc", $6B1A8, $E57
section "Bank 27", ROMX
incbin "baserom.gbc", $6C000, $126
include "data/text2.asm"
incbin "baserom.gbc", $6F57D, $A83
section "Bank 28", ROMX
incbin "baserom.gbc", $70000, $4000
section "Bank 29", ROMX
incbin "baserom.gbc", $74000, $4000
section "Bank 30", ROMX
incbin "baserom.gbc", $78000, $4000
section "Bank 31", ROMX
incbin "baserom.gbc", $7C000, $106
include "data/text3.asm"
incbin "baserom.gbc", $7F9FD, $603
section "Bank 32", ROMX
incbin "baserom.gbc", $80000, $4000
section "Bank 33", ROMX
incbin "baserom.gbc", $84000, $106
include "data/text4.asm"
incbin "baserom.gbc", $87BFA, $406
section "Bank 34", ROMX
incbin "baserom.gbc", $88000, $19E
include "data/text5.asm"
incbin "baserom.gbc", $8A90D, $16F2
section "Bank 35", ROMX
incbin "baserom.gbc", $8C000, $4000
section "Bank 36", ROMX
incbin "baserom.gbc", $90000, $4000
section "Bank 37", ROMX
incbin "baserom.gbc", $94000, $4000
section "Bank 38", ROMX
incbin "baserom.gbc", $98000, $4000
section "Bank 39", ROMX
incbin "baserom.gbc", $9C000, $4000
section "Bank 40", ROMX
incbin "baserom.gbc", $A0000, $4000
section "Bank 41", ROMX
incbin "baserom.gbc", $A4000, $4000
section "Bank 42", ROMX
incbin "baserom.gbc", $A8000, $4000
section "Bank 43", ROMX
incbin "baserom.gbc", $AC000, $4000
section "Bank 44", ROMX
incbin "baserom.gbc", $B0000, $4000
section "Bank 45", ROMX
incbin "baserom.gbc", $B4000, $4000
section "Bank 46", ROMX
incbin "baserom.gbc", $B8000, $4000
section "Bank 47", ROMX
incbin "baserom.gbc", $BC000, $4000
section "Bank 48", ROMX
incbin "baserom.gbc", $C0000, $4000
section "Bank 49", ROMX
incbin "baserom.gbc", $C4000, $4000
section "Bank 50", ROMX
incbin "baserom.gbc", $C8000, $4000
section "Bank 51", ROMX
incbin "baserom.gbc", $CC000, $4000
section "Bank 52", ROMX
incbin "baserom.gbc", $D0000, $4000
section "Bank 53", ROMX
incbin "baserom.gbc", $D4000, $4000
section "Bank 54", ROMX
incbin "baserom.gbc", $D8000, $4000
section "Bank 55", ROMX
incbin "baserom.gbc", $DC000, $4000
section "Bank 56", ROMX
incbin "baserom.gbc", $E0000, $4000
section "Bank 57", ROMX
incbin "baserom.gbc", $E4000, $4000
section "Bank 58", ROMX
incbin "baserom.gbc", $E8000, $4000
section "Bank 59", ROMX
incbin "baserom.gbc", $EC000, $4000
section "Bank 60", ROMX
incbin "baserom.gbc", $F0000, $4000
section "Bank 61", ROMX
incbin "baserom.gbc", $F4000, $4000
section "Bank 62", ROMX
incbin "baserom.gbc", $F8000, $4000
section "Bank 63", ROMX
incbin "baserom.gbc", $FC000, $56C
include "data/text6.asm"
incbin "baserom.gbc", $FF3A8, $C58
section "Bank 64", ROMX
incbin "baserom.gbc", $100000, $4000
section "Bank 65", ROMX
incbin "baserom.gbc", $104000, $1B1F
include "data/monster_name_table.asm"
incbin "baserom.gbc", $10628E, $1D72
section "Bank 66", ROMX
incbin "baserom.gbc", $108000, $142
include "data/text7.asm"
incbin "baserom.gbc", $10BDC4, $23C
section "Bank 67", ROMX
incbin "baserom.gbc", $10C000, $193
include "data/text8.asm"
incbin "baserom.gbc", $10F72E, $8D2
section "Bank 68", ROMX
incbin "baserom.gbc", $110000, $157
include "data/text9.asm"
incbin "baserom.gbc", $113F69, $97
section "Bank 69", ROMX
incbin "baserom.gbc", $114000, $158
include "data/text10.asm"
incbin "baserom.gbc", $117A5A, $5A6
section "Bank 70", ROMX
incbin "baserom.gbc", $118000, $180
include "data/text11.asm"
incbin "baserom.gbc", $11BDE0, $120
section "Bank 71", ROMX
incbin "baserom.gbc", $11C000, $C1
include "data/text12.asm"
incbin "baserom.gbc", $11DB73, $248D
section "Bank 72", ROMX
incbin "baserom.gbc", $120000, $16B
include "data/text13.asm"
incbin "baserom.gbc", $1235F1, $A0F
section "Bank 73", ROMX
incbin "baserom.gbc", $124000, $19C
include "data/text14.asm"
incbin "baserom.gbc", $127C12, $3EE
section "Bank 74", ROMX
incbin "baserom.gbc", $128000, $293
include "data/text15.asm"
incbin "baserom.gbc", $12AC25, $13DB
section "Bank 75", ROMX
incbin "baserom.gbc", $12C000, $D1
include "data/text16.asm"
incbin "baserom.gbc", $12E46E, $1B92
section "Bank 76", ROMX
incbin "baserom.gbc", $130000, $4000
section "Bank 77", ROMX
incbin "baserom.gbc", $134000, $4000
section "Bank 78", ROMX
incbin "baserom.gbc", $138000, $143
include "data/text19.asm"
incbin "baserom.gbc", $13BA0C, $5F4
section "Bank 79", ROMX
incbin "baserom.gbc", $13C000, $10
incbin "graphics/font.bin"
incbin "baserom.gbc", $13D010, $24B
include "data/text20.asm"
incbin "baserom.gbc", $13EB5C, $14A4
section "Bank 80", ROMX
incbin "baserom.gbc", $140000, $4000
section "Bank 81", ROMX
incbin "baserom.gbc", $144000, $4000
section "Bank 82", ROMX
incbin "baserom.gbc", $148000, $4000
section "Bank 83", ROMX
incbin "baserom.gbc", $14C000, $4000
section "Bank 84", ROMX
incbin "baserom.gbc", $150000, $4000
section "Bank 85", ROMX
incbin "baserom.gbc", $154000, $4000
section "Bank 86", ROMX
incbin "baserom.gbc", $158000, $4000
section "Bank 87", ROMX
incbin "baserom.gbc", $15C000, $4000
section "Bank 88", ROMX
incbin "baserom.gbc", $160000, $4000
section "Bank 89", ROMX
incbin "baserom.gbc", $164000, $4000
section "Bank 90", ROMX
incbin "baserom.gbc", $168000, $4000
section "Bank 91", ROMX
incbin "baserom.gbc", $16C000, $4000
section "Bank 92", ROMX
incbin "baserom.gbc", $170000, $4000
section "Bank 93", ROMX
incbin "baserom.gbc", $174000, $4000
section "Bank 94", ROMX
incbin "baserom.gbc", $178000, $4000
section "Bank 95", ROMX
incbin "baserom.gbc", $17C000, $4000
section "Bank 96", ROMX
incbin "baserom.gbc", $180000, $4000
section "Bank 97", ROMX
incbin "baserom.gbc", $184000, $4000
section "Bank 98", ROMX
incbin "baserom.gbc", $188000, $4000
section "Bank 99", ROMX
incbin "baserom.gbc", $18C000, $4000
section "Bank 100", ROMX
incbin "baserom.gbc", $190000, $4000
section "Bank 101", ROMX
incbin "baserom.gbc", $194000, $4000
section "Bank 102", ROMX
incbin "baserom.gbc", $198000, $4000
section "Bank 103", ROMX
incbin "baserom.gbc", $19C000, $4000
section "Bank 104", ROMX
incbin "baserom.gbc", $1A0000, $4000
section "Bank 105", ROMX
incbin "baserom.gbc", $1A4000, $4000
section "Bank 106", ROMX
incbin "baserom.gbc", $1A8000, $4000
section "Bank 107", ROMX
incbin "baserom.gbc", $1AC000, $4000
section "Bank 108", ROMX
incbin "baserom.gbc", $1B0000, $4000
section "Bank 109", ROMX
incbin "baserom.gbc", $1B4000, $4000
section "Bank 110", ROMX
incbin "baserom.gbc", $1B8000, $4000
section "Bank 111", ROMX
incbin "baserom.gbc", $1BC000, $4000
section "Bank 112", ROMX
incbin "baserom.gbc", $1C0000, $4000
section "Bank 113", ROMX
incbin "baserom.gbc", $1C4000, $4000
section "Bank 114", ROMX
incbin "baserom.gbc", $1C8000, $4000
section "Bank 115", ROMX
incbin "baserom.gbc", $1CC000, $4000
section "Bank 116", ROMX
incbin "baserom.gbc", $1D0000, $4000
section "Bank 117", ROMX
incbin "baserom.gbc", $1D4000, $4000
section "Bank 118", ROMX
incbin "baserom.gbc", $1D8000, $4000
section "Bank 119", ROMX
incbin "baserom.gbc", $1DC000, $4000
section "Bank 120", ROMX
incbin "baserom.gbc", $1E0000, $4000
section "Bank 121", ROMX
incbin "baserom.gbc", $1E4000, $4000
section "Bank 122", ROMX
incbin "baserom.gbc", $1E8000, $4000
section "Bank 123", ROMX
incbin "baserom.gbc", $1EC000, $4000
section "Bank 124", ROMX
incbin "baserom.gbc", $1F0000, $4000
section "Bank 125", ROMX
incbin "baserom.gbc", $1F4000, $4000
section "Bank 126", ROMX
incbin "baserom.gbc", $1F8000, $4000
section "Bank 127", ROMX
incbin "baserom.gbc", $1FC000, $4000