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
|
GetPredefPointer:: ; 8b3b (2:4b3b)
ld a, h
ld [wPredefHLBuffer], a
ld a, l
ld [wPredefHLBuffer + 1], a
push de
ld a, [wPredefID]
ld e, a
ld d, $0
ld hl, PredefPointers
add hl, de
add hl, de
add hl, de
pop de
ld a, [hli]
ld [wPredefPointerBuffer + 1], a
ld a, [hli]
ld [wPredefPointerBuffer], a
ld a, [hl]
ret
PredefPointers::
; temp macro
predef_pointer: macro
IF DEF(GOLD)
dwb \1, \3
ENDC
IF DEF(SILVER)
dwb \2, \3
ENDC
endm
add_predef LearnMove ; $0
add_predef Predef1 ; $1
add_predef HealParty
add_predef FlagPredef
add_predef ComputeHPBarPixels
add_predef FillPP
add_predef TryAddMonToParty
add_predef AddTempmonToParty
add_predef SentGetPkmnIntoFromBox
add_predef SentPkmnIntoBox
add_predef GiveEgg
add_predef AnimateHPBar
add_predef CalcPkmnStats
add_predef CalcPkmnStatC
add_predef CanLearnTMHMMove
add_predef GetTMHMMove
add_predef Predef_LinkTextbox ; $ 10
add_predef PrintMoveDesc
add_predef UpdatePlayerHUD
add_predef PlaceGraphic
add_predef CheckPlayerPartyForFitPkmn
add_predef UpdateEnemyHUD
add_predef StartBattle
add_predef FillInExpBar
add_predef GetMonBackpic ; $18
add_predef GetMonFrontpic
add_predef LearnLevelMoves
add_predef FillMoves
add_predef EvolveAfterBattle
add_predef TradeAnimationPlayer2
add_predef TradeAnimation
add_predef CopyPkmnToTempMon
add_predef ListMoves ; $20
add_predef PlaceNonFaintStatus
add_predef Predef22
add_predef ListMovePP
add_predef GetGender
add_predef StatsScreenInit
add_predef DrawPlayerHP
add_predef DrawEnemyHP
add_predef PrintTempMonStats ; $28
add_predef GetTypeName
add_predef PrintMoveType
add_predef PrintType
add_predef PrintMonTypes
add_predef GetUnownLetter
add_predef LoadPoisonBGPals
add_predef Predef2F
add_predef InitSGBBorder ; $30
add_predef Predef_LoadSGBLayout
add_predef Area_
add_predef CheckContestMon
add_predef Predef_StartBattle
add_predef Predef35
add_predef Predef36
add_predef PlayBattleAnim
add_predef Predef38 ; $38
add_predef Predef39
add_predef Predef3A
add_predef PartyMonItemName
add_predef GetFrontpic
add_predef GetBackpic
add_predef GetTrainerPic
add_predef DecompressPredef
add_predef CheckTypeMatchup ; $40
add_predef ConvertMon_1to2
add_predef NewPokedexEntry
add_predef FrontpicPredef
add_predef UpdateTimePredef
dbw $ff, InexplicablyEmptyFunction
|