-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDefinitions.s
593 lines (545 loc) · 19 KB
/
Definitions.s
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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
.if FE8 == true
.include "fe8.s"
.endif
.macro SET_FUNC name, value
.global \name
.type \name, function
.set \name, \value
.endm
.macro SET_DATA name, value
.global \name
.type \name, object
.set \name, \value
.endm
.if FE6 == true
SET_FUNC StartBgmExt, 0x809C8D9
SET_DATA getSoundRoom, 0x808b9c4
SET_DATA getSongTable, 0x8039170
SET_FUNC UpdateMapViewWithFog, 0x801C6C5
SET_DATA gVision, 0x202AA48+0x0D
@SET_FUNC GetItemAttributes, fe7 0x801727c unk fe6
SET_FUNC GetItemAfterUse, 0x8016929
SET_FUNC FadeExists, 0x80145d1
SET_DATA ProcScr_PrepUnitScreen, 0x8678E38
SET_DATA gPaletteSyncFlag, 0x300000C
SET_DATA gPaletteBuffer, 0x2021708
SET_DATA gCursorX, 0x202AA1C
SET_DATA gCursorY, 0x202AA1E
SET_DATA BattleAttackerSideBool, 0x203CCFE
SET_DATA gBmMapUnit, 0x202D204
SET_DATA gProcScr_StatScreen, 0x8677680
SET_DATA gProc_ekrBattleDeamon, 0x85CB508
SET_DATA gProcScr_UnitDisplay_MinimugBox, 0x86781D4
SET_DATA sFaceConfig, 0x20293E4
SET_DATA gFaces, 0x3004000
SET_DATA gBattleActorUnit, 0x2039214
SET_DATA gBattleActor, 0x2039214
SET_DATA gBattleTargetUnit, 0x2039290
SET_DATA gBattleTarget, 0x2039290
SET_FUNC StartGreenText, 0x8006C9D
SET_FUNC UnpackUiVArrowGfx, 0x809777D
SET_FUNC DisplayUiVArrow, 0x80977C1
SET_FUNC GetUnit, 0x801860D
SET_FUNC GetUnitPortraitId, 0x80184F1
SET_FUNC memset, 0x0809F9F1
SET_DATA SaveMenuProc, 0x0 @ fe6
SET_DATA DifficultySelectionProc, 0x868A09C @ fe6
SET_FUNC SaveMenuStartBlockingProc, 0x8089551 @ fe6
SET_FUNC SetupBackgrounds, 0x80026BD
SET_FUNC RegisterBlankTile, 0x8001581
SET_FUNC GetStringFromIndex, 0x8013ad1
SET_FUNC GetTextDrawDest, 0x8006009
SET_DATA gActiveFont, 0x2027BCC
SET_DATA gDefaultFont, 0x2027BB4
SET_DATA sSpecialCharStList, 0x2027BD0
SET_DATA gBmSt, 0x202AA08
SET_DATA gCameraX, 0x202AA14
SET_DATA gCameraY, 0x202AA16
SET_DATA gObject_8x8, 0x85c39A0
SET_FUNC IsItemStealable, 0x8016D35
SET_FUNC CallARM_PushToSecondaryOAM, 0x8003871
SET_FUNC GetUnitAid, 0x80180FD
SET_FUNC SetPopupNumber, 0x800d705
SET_FUNC GetPartyGoldAmount, 0x8020a59
SET_FUNC SetPartyGoldAmount, 0x8020a65
SET_FUNC NewPopup_Simple, 0x800d721
SET_DATA PopupScr_GotGold, 0x8356140
SET_DATA PopupScr_GoldWasStole, 0x8356188
SET_FUNC NewPopup_GoldGot, 0x80120D1
SET_FUNC NextRN_N, 0x8000E09
SET_FUNC GenerateExtendedMovementMap, 0x8019425
SET_DATA TerrainTable_MovCost_BerserkerNormal, 0x860C714
SET_DATA TerrainTable_MovCost_BerserkerRain, 0x860C714
SET_DATA gBmMapMovement, 0x202D20C
SET_DATA gPhase, 0x202AA57
SET_DATA gTurn, 0x202AA58
SET_DATA gSfx, 0x202AA65
SET_FUNC StartBgm, 0x8003211
SET_FUNC GetCurrentBgmSong, 0x8002F69
SET_FUNC GetCurrentMapMusicIndex, 0x801637D
SET_FUNC Sound_FadeOutBGM, 0x8003065
SET_FUNC PhaseIntroInitText, 0x801D03D
SET_FUNC StartBgmExt, 0x800322D
SET_FUNC StartMapSongBgm, 0x80163E5
SET_FUNC EndAllMenus, 0x8041A39
SET_FUNC RenderBmMap, 0x8018D91
SET_FUNC RefreshBMapGraphics, 0x80292dd
SET_FUNC Text_SetCursor, 0x80059e1
SET_FUNC Text_SetColor, 0x8005a39
SET_FUNC Text_DrawStringAscii, 0x80064b5
SET_FUNC PutText, 0x8005ab5
SET_FUNC GetLang, 0x800562d
SET_FUNC GetStringFromIndex, 0x8013AD1
SET_DATA sActiveMsg, 0x202A404
SET_DATA sMsgString, 0x2029404
SET_DATA u32MsgString, 0x2029404
SET_FUNC gARM_DecompText, 0x3003780
SET_FUNC CallARM_DecompText, 0x800384d
SET_DATA gPrepUnitList, 0x200e6d4
SET_DATA ProcScr_PalFade, 0x85C4D7C
SET_DATA ProcScr_FadeCore, 0x85C4E14
SET_DATA ProcScr_BmFadeIN, 0x8679008
SET_DATA ProcScr_BmFadeOUT, 0x8679028
SET_FUNC HbPopulate_SSCharacter, 0x80704DD
SET_DATA ggMsgStringTable, 0x8013b10
SET_FUNC GetChapterEventDataPointer, 0x802BBA1
SET_FUNC GetUnitFromCharId, 0x8017ABD
SET_FUNC GetUnitRescueName, 0x80185C9
SET_FUNC Text_InsertDrawString, 0x8006455
SET_FUNC LoadUnit, 0x8017599
SET_FUNC ClearUnit, 0x8017395
SET_FUNC ArenaIsUnitAllowed, 0x8029FE1
SET_FUNC GetUnitBestWRankType, 0x8029965
SET_DATA gProcScr_ArenaUiMain, 0x86911AC
SET_FUNC SetupDebugFontForOBJ, 0x8005471
SET_FUNC PrintDebugStringAsOBJ, 0x8005551
.endif
.if FE7 == true
SET_FUNC StartBgmExt, 0x80038AD
SET_DATA getSoundRoom, 0x80AADB0
SET_DATA getSongTable, 0x8040230
SET_FUNC SetupDebugFontForOBJ, 0x8005281
SET_FUNC PrintDebugStringAsOBJ, 0x800530d
SET_DATA gProcScr_ArenaUiMain, 0x8CE729C
SET_DATA gMode, 0x202BBF8+0x1B
SET_FUNC GetUnitBestWRankType, 0x802EAC1
SET_FUNC ArenaIsUnitAllowed, 0x802F159
SET_FUNC LoadUnit, 0x8017789
SET_FUNC ClearUnit, 0x8017509
SET_FUNC GetChapterEventDataPointer, 0x80315BD
SET_FUNC GetUnitFromCharId, 0x8017D35
SET_DATA ggMsgStringTable, 0x8012cb8
SET_FUNC UpdateMapViewWithFog, 0x801DB59
SET_DATA gVision, 0x202BBF8+0x0D
SET_FUNC GetItemAttributes, 0x801727D
SET_FUNC GetItemAfterUse, 0x8016731
SET_FUNC FadeExists, 0x8013EB9
SET_FUNC GetUnitFromPrepList, 0x808DD19
SET_DATA ProcScr_PrepUnitScreen, 0x8CC4854
SET_DATA ProcScr_PrepItemScreen, 0x8CC4448
SET_DATA gPaletteSyncFlag, 0x300000D
SET_DATA gPaletteBuffer, 0x2022860
SET_DATA gCursorX, 0x202BBCC
SET_DATA gCursorY, 0x202BBCE
SET_DATA gBmSt, 0x202BBB8
SET_DATA gCameraX, 0x202BBC4
SET_DATA gCameraY, 0x202BBC6
SET_DATA gObject_8x8, 0x8B905B0
SET_FUNC IsItemStealable, 0x8016D39
SET_FUNC CallARM_PushToSecondaryOAM, 0x8004389
SET_FUNC CallEndEvent, 0x8079A39
SET_DATA BattleAttackerSideBool, 0x203E014
SET_DATA gBmMapUnit, 0x202E3DC
SET_DATA gProcScr_StatScreen, 0x8CC1F6C
SET_DATA gProc_ekrBattleDeamon, 0x8B9A99C
SET_DATA gProcScr_UnitDisplay_MinimugBox, 0x8CC2C60
SET_DATA sFaceConfig, 0x202A58C
SET_DATA gFaces, 0x30041C0
SET_DATA gBattleActor, 0x203A3F0
SET_DATA gBattleActorUnit, 0x203A3F0
SET_DATA gBattleTarget, 0x203A470
SET_DATA gBattleTargetUnit, 0x203A470
SET_FUNC GetUnitPortraitId, 0x8018BD9
SET_FUNC UnpackUiVArrowGfx, 0x80B1F6D
SET_FUNC DisplayUiVArrow, 0x80B1FB1
SET_FUNC StartGreenText, 0x8005FF5
SET_FUNC GetUnit, 0x8018D0D
SET_FUNC memset, 0x080BFFF9
SET_DATA SaveMenuProc, 0x8CE3C54 @ fe7
SET_DATA DifficultySelectionProc, 0x8CE4930 @ fe7
SET_FUNC SaveMenuStartBlockingProc, 0x80A8665 @ fe7
SET_FUNC SetupBackgrounds, 0x8002A6D
SET_FUNC SaveMenu_Init, 0x80A3631
SET_FUNC ProcSaveMenu_InitScreen, 0x80A36AD
SET_FUNC SaveMenu_LoadExtraMenuGraphics, 0x80A38D9
SET_FUNC RegisterBlankTile, 0x8001841
SET_FUNC RegisterFillTile, 0x80030FD @ 0x8001841
SET_FUNC GetUnitAid, 0x8018451
SET_FUNC SetPopupNumber, 0x800AD35
SET_FUNC GetPartyGoldAmount, 0x8023905
SET_FUNC SetPartyGoldAmount, 0x8023911
SET_FUNC NewPopup_Simple, 0x800AD41
SET_DATA PopupScr_GotGold, 0x8B91BE4
SET_DATA PopupScr_GoldWasStole, 0x8B91C2C
SET_FUNC NewPopup_GoldGot, 0x800EE4D
SET_FUNC DisplayLeftPanel, 0x807FA8D
SET_FUNC ResetIconGraphics_, 0x8004CE9
SET_FUNC InitTexts, 0x807FA39
SET_FUNC NextRN_N, 0x8000E31
SET_FUNC GenerateExtendedMovementMap, 0x8019C81
SET_DATA TerrainTable_MovCost_BerserkerNormal, 0x8BE398C
SET_DATA TerrainTable_MovCost_BerserkerRain, 0x8BE3DDD
SET_DATA gBmMapMovement, 0x202E3E4
SET_DATA gPhase, 0x202BC07
SET_DATA gTurn, 0x202BC08
SET_DATA gSfx, 0x202BC39
SET_FUNC GetCurrentMapMusicIndex, 0x8015E9D
SET_FUNC StartBgm, 0x8003891
SET_FUNC GetCurrentBgmSong, 0x80034DD
SET_FUNC Sound_FadeOutBGM, 0x80035ED
SET_FUNC StartBgmExt, 0x80038AD
SET_FUNC PhaseIntroInitText, 0x801E5C9
SET_FUNC StartMapSongBgm, 0x8015F85
SET_FUNC EndAllMenus, 0x804A491
SET_FUNC RenderBmMap, 0x8019505
SET_FUNC RefreshBMapGraphics, 0x802E369
SET_DATA ProcScr_PalFade, 0x8B92914
SET_DATA ProcScr_FadeCore, 0x8B929AC
SET_DATA ProcScr_BmFadeIN, 0x8CE4C50
SET_DATA ProcScr_BmFadeOUT, 0x8CE4C80
SET_FUNC GetStringFromIndex, 0x8012C61
SET_DATA sActiveMsg, 0x202B5B4
SET_DATA sMsgString, 0x202A5B4
SET_DATA u32MsgString, 0x202A5B4
SET_FUNC gARM_DecompText, 0x3003940
SET_FUNC CallARM_DecompText, 0x8004365
SET_FUNC HbPopulate_SSCharacter, 0x80816FD
.endif
.if FE8 == true
@SET_DATA textHandles, 0x201117c @ gPrepMainMenuTexts
SET_DATA getSoundRoom, 0x80AECA8
SET_DATA getSongTable, 0x080458E0
SET_DATA ggMsgStringTable, 0x800a2a0
SET_DATA u32MsgString, 0x0202A6AC
SET_FUNC gARM_DecompText, 0x3004150
SET_FUNC CallARM_DecompText, 0x8002ba5
SET_DATA gVision, 0x202BCF0+0x0D
SET_DATA gBattleActorUnit, 0x0203A4EC
SET_DATA gBattleTargetUnit, 0x0203A56C
SET_DATA gPaletteSyncFlag, 0x300000E
SET_DATA gPaletteBuffer, 0x20228A8
SET_DATA gCursorX, 0x202BCB0+0x14
SET_DATA gCursorY, 0x202BCB0+0x16
SET_DATA gCameraX, 0x202BCB0+0xC
SET_DATA gCameraY, 0x202BCB0+0xE
SET_DATA BattleAttackerSideBool, 0x203E108
SET_DATA SaveMenuProc, 0x8A200B8 @ fe8
SET_DATA DifficultySelectionProc, 0x8A20A10 @ fe8
SET_FUNC SaveMenuStartBlockingProc, 0x80AC3E1 @ fe8
SET_FUNC SetupBackgrounds, 0x8001B59
SET_FUNC StartBlockingPrepVendor, 0x80B41E1
SET_FUNC StartBlockingPrepArmory, 0x80B4201
SET_FUNC StartBlockingPrepSecret, 0x80B4211
dat 0x085921C8, ProcScr_Popup
dat 0x08592228, ProcScr_PopupUpdateIcon
dat 0x08592230, PopupSrc_GotItem
dat 0x08592288, PopupSrc_ItemWasPilfered
dat 0x085922D0, ProcScr_GotItem
dat 0x08592300, PopupScr_GotGold
dat 0x08592348, PopupScr_GoldWasStole
SET_FUNC UnitLoadStatsFromCharacter, 0x8017e35
SET_FUNC __aeabi_idiv, __divsi3
@SET_FUNC __aeabi_idivmod, __modsi3
@SET_FUNC Div, __divsi3
@SET_FUNC Mod, __modsi3
SET_DATA weatherId, 0x202BD05
SET_DATA gPlaySt, 0x202BCF0
SET_DATA gCh, 0x202BCFE
SET_DATA Ballista_TerrainTable, 0x880BC18
SET_DATA gPhase, 0x202BCFF
SET_DATA gTurn, 0x202BD00
SET_DATA gSfx, 0x202BD31
SET_FUNC UnsetFlag, 0x8083d95
.endif
.if FE6 == true
SET_FUNC __aeabi_idiv, 0x809DCE1
@SET_FUNC Div, 0x809DCE1
@SET_FUNC Mod, 0x809DCE5
SET_FUNC SetFlag, 0x806BA49
SET_FUNC UnsetFlag, 0x806BA75
SET_FUNC CheckFlag, 0x806bA5D
SET_FUNC GetItemMight, 0x80171e9
SET_FUNC GetItemHit, 0x80171fd
SET_FUNC GetItemWeight, 0x8017211
SET_FUNC GetItemCrit, 0x8017225
SET_FUNC GetItemData, 0x8017359
SET_FUNC GetItemAttributes, 0x8017191
SET_FUNC GetItemIndex, 0x8017129
SET_FUNC GetItemUseEffect, 0x801730d
SET_FUNC GetCharacterData, 0x801863d
SET_FUNC GetClassData, 0x8018621
SET_FUNC UnitLoadStatsFromCharacter, 0x80176E5
SET_FUNC UnitInitFromDefinition, 0x8017655
SET_FUNC GetAutoleveledStatIncrease, 0x80250D5
@SET_FUNC CanBattleUnitGainLevels, @ inline ?
SET_FUNC CheckBattleUnitStatCaps, 0x80253Cd
SET_FUNC UnitCheckStatCaps, 0x80179Ed
SET_FUNC GetUnit, 0x801860d
SET_FUNC CheckBattleUnitLevelUp, 0x8025105
@SET_FUNC UnitLevelUp, @ unused
SET_FUNC UnitAutolevelCore, 0x8017855
SET_FUNC GetUnitMaxHp, 0x80183C9
SET_FUNC GetUnitPower, 0x80183E9
SET_FUNC GetUnitSkill, 0x8018409
SET_FUNC GetUnitSpeed, 0x8018449
SET_FUNC GetUnitDefense, 0x8018489
SET_FUNC GetUnitResistance, 0x80184A9
SET_FUNC GetUnitLuck, 0x80184D1
SET_FUNC DrawStatWithBar, 0x806EC6d
SET_FUNC PutNumberOrBlank, 0x8006f51
SET_FUNC PutNumberBonus, 0x8007001
SET_FUNC PutSpecialChar, 0x8006E75
SET_FUNC PutNumberSmall, 0x8006FE1
SET_FUNC StartStatScreenHelp, 0x807030d
SET_FUNC UnitHasMagicRank, 0x8018189
@SET_FUNC UnitLoadItemsFromDefinition, @ unused
SET_FUNC UnitAddItem, 0x80174Ad
SET_FUNC MakeNewItem, 0x801650d
@SET_FUNC UnitClearInventory,
SET_FUNC LockGame, 0x801597d
SET_FUNC UnlockGame, 0x801598d
SET_FUNC BMapDispSuspend, 0x8028395
SET_FUNC BMapDispResume, 0x80283c9
SET_FUNC StartFastFadeFromBlack, 0x80146Ed
SET_FUNC StartFastFadeToBlack, 0x80146C9
SET_FUNC WaitForFade, 0x80149B1
SET_FUNC BG_Fill, 0x8001551
SET_FUNC BG_EnableSyncByMask, 0x8000fd5
SET_FUNC BG_SetPosition, 0x80019Dd
SET_FUNC LoadUiFrameGraphics, 0x80417D5
SET_FUNC LoadObjUIGfx, 0x8015B45
SET_FUNC Proc_Start, 0x8003a05
SET_FUNC Proc_StartBlocking, 0x8003ad9
SET_FUNC Proc_Find, 0x8003e7d
SET_FUNC Proc_Break, 0x8003e61
SET_FUNC Proc_Goto, 0x8003f6d
SET_FUNC Proc_EndEach, 0x8004249
SET_FUNC m4aSongNumStart, 0x809C861
SET_FUNC PutDrawText, 0x8006409
SET_FUNC ClearText, 0x80058ed
SET_FUNC InitText, 0x800579d
SET_FUNC InitTextFont, 0x800566d
SET_FUNC ResetText, 0x800563d
SET_FUNC SetTextFontGlyphs, 0x8005705
SET_FUNC ResetTextFont, 0x800573d
SET_FUNC InitSystemTextFont, 0x8006345
SET_FUNC PutNumber, 0x8006F31
SET_FUNC SetFontGlyphSet, 0x8005705
SET_FUNC SetTextFont, 0x8005769
SET_FUNC TileMap_FillRect, 0x809FAA1
SET_FUNC DisplayUiHand, 0x80415Cd
SET_FUNC NewPopup_ItemGot, 0x80121F5
SET_FUNC Roll1RN, 0x8000E39
SET_FUNC SetLCGRNValue, 0x8000E99
SET_FUNC InitRN, 0x8000C89
SET_FUNC GetGameClock, 0x8000EEd
SET_FUNC PutSprite, 0x8007d3d
SET_FUNC PrintDebugStringToBG, 0x8004f19
SET_FUNC SetupDebugFontForBG, 0x8004e59 @ hook this
SET_FUNC StartShopScreen, 0x8095E91
SET_FUNC EndPlayerPhaseSideWindows, 0x8073325 @ maybe EndMapUi
SET_FUNC UpdateShopItemCounts, 0x8095F5d
@SET_FUNC GetUnitMovementCost, @ dunno @ fe7 0x80187d5
SET_FUNC GetUnitItemCount, 0x8017521
SET_FUNC GetUnitItemSlot, 0x8016D09
SET_FUNC CanUnitUseChestKeyItem, 0x80236C5
SET_FUNC CanUnitUseDoorKeyItem, 0x8023701
SET_FUNC CanUnitOpenBridge, 0x8023715
SET_FUNC AiGetChestUnlockItemSlot, 0x80303F9
SET_FUNC GetUnitKeyItemSlotForTerrain, 0x80181d5
SET_FUNC CanUnitUseLockpickItem, 0x8023729
SET_FUNC IsItemDisplayUsable, 0x8016BD9
SET_FUNC CanUnitUseStaff, 0x8016645
SET_FUNC CanUnitUseWeapon, 0x8016539
SET_FUNC StatScreen_Display, 0x806ffdd
SET_FUNC InitStatScreenText, 0x806eaf1
SET_DATA gBG0TilemapBuffer, 0x2021B08
SET_DATA gBG1TilemapBuffer, 0x2022308
SET_DATA gBG2TilemapBuffer, 0x2022B08
SET_DATA gBG3TilemapBuffer, 0x2023308
SET_DATA sKeyStatusBuffer, 0x2023B20
SET_DATA gStatScreen, 0x2003108 @ for text handles
SET_DATA gUiTmScratchA, 0x2003238 @ might be wrong
SET_DATA gUiTmScratchC, 0x2003C38
SET_FUNC DrawStatBarGfx, 0x806E999
SET_DATA gActiveUnit, 0x30044B0
@ 202AA08 gBmSt https://github.com/StanHash/fe6/blob/5430c7ea15313a5754ddb466916b1d2946e72c4a/include/bm.h#L90C8-L90C12
@ 801E2C0 801FFE0 801FB78 0 0 ChapterIntro_InitMapDisplay
SET_DATA weatherId, 0x202AA5D
SET_DATA gPlaySt, 0x202AA48
SET_DATA gCh, 0x202AA56
SET_DATA gBmMapTerrain, 0x202D208
SET_DATA gProcScr_Shop, 0x8690F00
SET_DATA sPrevHandClockFrame, 0x203C9D8
SET_DATA sPrevHandScreenPosition, 0x203C9D4
SET_DATA gLCDControlBuffer, 0x30026B0
SET_DATA ProcScr_GotItem, 0x85C4934 @ maybe
SET_FUNC StartBlockingPrepShop, 0x8095df1
SET_FUNC ApplyUnitDefaultPromotion, 0x8029819
.endif
.if FE7 == true
SET_FUNC ApplyUnitDefaultPromotion, 0x8029819
SET_DATA TacticianName, 0x202BC18
SET_FUNC __aeabi_idiv, 0x80BFA15
@SET_FUNC Div, 0x80BFA15
@SET_FUNC Mod, 0x80BFA19
SET_FUNC SetFlag, 0x80798E5
SET_FUNC UnsetFlag, 0x8079911
SET_FUNC CheckFlag, 0x80798F9
SET_FUNC GetItemMight, 0x80172E1
SET_FUNC GetItemHit, 0x80172F9
SET_FUNC GetItemWeight, 0x8017311
SET_FUNC GetItemCrit, 0x8017329
SET_FUNC GetItemData, 0x80174AD
SET_FUNC GetItemAttributes, 0x801727D
SET_FUNC GetItemIndex, 0x80171B5
SET_FUNC GetItemUseEffect, 0x801743D
SET_FUNC GetCharacterData, 0x8018D39
SET_FUNC GetClassData, 0x8018D21
SET_FUNC UnitLoadStatsFromCharacter, 0x8017931
SET_FUNC UnitInitFromDefinition, 0x8017869
SET_FUNC GetAutoleveledStatIncrease, 0x8029605
SET_FUNC CanBattleUnitGainLevels, 0x8029635
SET_FUNC CheckBattleUnitStatCaps, 0x8029971
SET_FUNC UnitCheckStatCaps, 0x8017C65
SET_FUNC GetUnit, 0x8018D0D
SET_FUNC CheckBattleUnitLevelUp, 0x8029661
SET_FUNC UnitLevelUp, 0x802A995
SET_FUNC UnitAutolevelCore, 0x8017AC1
SET_FUNC GetUnitMaxHp, 0x8018AB1
SET_FUNC GetUnitPower, 0x8018AD1
SET_FUNC GetUnitSkill, 0x8018AF1
SET_FUNC GetUnitSpeed, 0x8018B31
SET_FUNC GetUnitDefense, 0x8018B71
SET_FUNC GetUnitResistance, 0x8018B91
SET_FUNC GetUnitLuck, 0x8018BB9
SET_FUNC DrawStatWithBar, 0x807FD29
SET_FUNC PutNumberOrBlank, 0x80061E5
SET_FUNC PutNumberBonus, 0x8006241
SET_FUNC PutSpecialChar, 0x800615D
SET_FUNC PutNumberSmall, 0x8006235
SET_FUNC StartStatScreenHelp, 0x80814F5
SET_FUNC UnitLoadItemsFromDefinition, 0x80178F5
SET_FUNC UnitAddItem, 0x8017655
SET_FUNC MakeNewItem, 0x8016175
SET_FUNC UnitClearInventory, 0x8017675
SET_FUNC LockGame, 0x8015309
SET_FUNC UnlockGame, 0x8015319
SET_FUNC BMapDispSuspend, 0x802D3B5
SET_FUNC BMapDispResume, 0x802D3E9
SET_FUNC StartFastFadeFromBlack, 0x8013FD5
SET_FUNC StartFastFadeToBlack, 0x8013FB1
SET_FUNC WaitForFade, 0x8014299
SET_FUNC BG_Fill, 0x8001811
SET_FUNC BG_EnableSyncByMask, 0x8000ffd
SET_FUNC BG_SetPosition, 0x8001D8D
SET_FUNC LoadUiFrameGraphics, 0x804A211
SET_FUNC LoadObjUIGfx, 0x8015591
SET_FUNC Proc_Start, 0x8004495
SET_FUNC Proc_StartBlocking, 0x80044F9
SET_FUNC Proc_Find, 0x80046A9
SET_FUNC Proc_Break, 0x80046A1
SET_FUNC Proc_Goto, 0x8004721
SET_FUNC Proc_EndEach, 0x800486D
SET_FUNC m4aSongNumStart, 0x80BE595
SET_FUNC PutDrawText, 0x8005AD5
SET_FUNC ClearText, 0x80054E1
SET_FUNC InitText, 0x8005475
SET_FUNC ResetText, 0x80053B1
SET_FUNC SetTextFontGlyphs, 0x8005411
SET_FUNC ResetTextFont, 0x8005439
SET_FUNC ChapterStatus_SetupFont, 0x8086E61
SET_FUNC InitSystemTextFont, 0x8005A41
SET_FUNC TileMap_FillRect, 0x80C57BD
SET_FUNC StartBlockingPrepShop, 0x8098F71
SET_FUNC DisplayUiHand, 0x8049F59
SET_FUNC NewPopup_ItemGot, 0x800EF55
SET_FUNC Roll1RN, 0x8000E61
SET_FUNC SetLCGRNValue, 0x8000EC1
SET_FUNC InitRN, 0x8000CA9
SET_FUNC PutNumber, 0x80061D9
SET_FUNC GetGameClock, 0x8000F15
SET_FUNC PutSprite, 0x80069F5
SET_FUNC SetFontGlyphSet, 0x8005411
SET_FUNC SetTextFont, 0x8005451
SET_FUNC PrintDebugStringToBG, 0x8004F71
SET_FUNC SetupDebugFontForBG, 0x8004EF9
SET_FUNC StoreRNState, 0x8000D75
SET_FUNC LoadRNState, 0x8000DD1
SET_FUNC StartShopScreen, 0x80B0455
SET_FUNC EndPlayerPhaseSideWindows, 0x8085C7D
SET_FUNC UpdateShopItemCounts, 0x80B0521
SET_FUNC GetUnitMovementCost, 0x80187d5
SET_FUNC GetUnitItemCount, 0x80176DD
SET_FUNC GetUnitItemSlot, 0x8016D0D
SET_FUNC CanUnitUseChestKeyItem, 0x8027355
SET_FUNC CanUnitUseDoorKeyItem, 0x8027391
SET_FUNC CanUnitOpenBridge, 0x80273A5
SET_FUNC AiGetChestUnlockItemSlot, 0x8036A8D
SET_FUNC GetUnitKeyItemSlotForTerrain, 0x8018525
SET_FUNC CanUnitUseLockpickItem, 0x80273B9
SET_FUNC IsItemDisplayUsable, 0x8016AB1
SET_FUNC CanUnitUseStaff, 0x80163D5
SET_FUNC CanUnitUseWeapon, 0x80161A5
SET_FUNC StatScreen_Display, 0x808119D
SET_FUNC GetUnitStatusName, 0x8018CF1
SET_FUNC memcpy, 0x80BFF99
SET_FUNC GetStringFromIndex, 0x8012C61
SET_FUNC UnitHasMagicRank, 0x80184DD
SET_FUNC DisplayTexts, 0x807FA49
SET_FUNC UpdateStatArrowSprites, 0x8015AA9
SET_FUNC PageNumCtrl_DisplayBlinkIcons, 0x8080F55
SET_FUNC GetUnitAid, 0x8018451
SET_FUNC DrawIcon, 0x8004e29
SET_FUNC GetUnitAidIconId, 0x8018579
SET_FUNC GetUnitRescueName, 0x8018CC1
SET_FUNC GetUnitStatusName, 0x8018CF1
SET_FUNC DisplayBwl, 0x807FBF1
SET_FUNC Text_InsertDrawString, 0x8005B19
SET_FUNC GetUnitAffinityIcon, 0x8026B25
SET_DATA sPage0TextInfo, 0x84049A0
SET_DATA gObject_8x8, 0x8B905B0
SET_FUNC Decompress, 0x8013169
SET_DATA gBuf, 0x2020140
@SET_DATA Tsa_StatScreenPage0, 0x83FCA4C
SET_FUNC TmApplyTsa, 0x80C57B5
SET_DATA gBG0TilemapBuffer, 0x2022C60
SET_DATA gBG1TilemapBuffer, 0x2023460
SET_DATA gBG2TilemapBuffer, 0x2023C60
SET_DATA gBG3TilemapBuffer, 0x2024460
SET_DATA sKeyStatusBuffer, 0x2024C78
SET_DATA gStatScreen, 0x200310C @ for text handles
SET_DATA gUiTmScratchA, 0x200323C
SET_DATA gUiTmScratchB, 0x200373C
SET_DATA gUiTmScratchC, 0x2003C3C
SET_FUNC DrawStatBarGfx, 0x807F849 @ 806E998
SET_DATA gLCDControlBuffer, 0x3002870
SET_DATA ProcScr_GotItem, 0x8B91DC4
SET_DATA gActiveUnit, 0x3004690
SET_DATA gProcScr_Shop, 0x8CE6FC0
SET_DATA gLCGRNValue, 0x3000008
SET_DATA sPrevHandClockFrame, 0x203DCF0
SET_DATA sPrevHandScreenPosition, 0x203DCEC
SET_DATA Ballista_TerrainTable, 0x8BEC398
SET_DATA gBmMapTerrain, 0x202E3E0
SET_DATA weatherId, 0x202BC0D
SET_DATA gPlaySt, 0x202BBF8
SET_DATA gCh, 0x202BC06
@SET_FUNC DivArm, 0x80D1681
@
@@ division & other libgcc functions
@SET_FUNC __aeabi_idiv, __divsi3
@SET_FUNC __aeabi_idivmod, __modsi3
@
@SET_DATA classTablePoin, 0x8017AB8
.endif