2015-07-20 15:28:05 +00:00
|
|
|
GetPredefPointer:: ; 854b
|
|
|
|
; Return the bank and address of PredefID in a and PredefAddress.
|
|
|
|
|
|
|
|
; Save hl for later (back in Predef)
|
|
|
|
ld a, h
|
|
|
|
ld [PredefTemp], a
|
|
|
|
ld a, l
|
|
|
|
ld [PredefTemp + 1], a
|
|
|
|
|
|
|
|
push de
|
|
|
|
ld a, [PredefID]
|
|
|
|
ld e, a
|
|
|
|
ld d, 0
|
|
|
|
ld hl, PredefPointers
|
2016-05-10 16:31:49 +00:00
|
|
|
add hl, de
|
|
|
|
add hl, de
|
|
|
|
add hl, de
|
2015-07-20 15:28:05 +00:00
|
|
|
pop de
|
|
|
|
|
|
|
|
ld a, [hli]
|
|
|
|
ld [PredefAddress + 1], a
|
|
|
|
ld a, [hli]
|
|
|
|
ld [PredefAddress], a
|
|
|
|
ld a, [hl]
|
|
|
|
|
|
|
|
ret
|
|
|
|
; 856b
|
|
|
|
|
|
|
|
PredefPointers:: ; 856b
|
|
|
|
; $4b Predef pointers
|
|
|
|
; address, bank
|
|
|
|
|
|
|
|
add_predef LearnMove ; $0
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef DummyPredef1
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef HealParty
|
|
|
|
add_predef FlagPredef
|
2015-12-14 16:12:18 +00:00
|
|
|
add_predef ComputeHPBarPixels
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef FillPP
|
2015-10-07 17:19:41 +00:00
|
|
|
add_predef TryAddMonToParty
|
2015-11-17 17:29:37 +00:00
|
|
|
add_predef AddTempmonToParty
|
2015-10-08 18:53:39 +00:00
|
|
|
add_predef SentGetPkmnIntoFromBox
|
2015-08-30 11:17:14 +00:00
|
|
|
add_predef SentPkmnIntoBox
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef GiveEgg
|
2015-11-07 13:05:57 +00:00
|
|
|
add_predef AnimateHPBar
|
2015-10-08 18:53:39 +00:00
|
|
|
add_predef CalcPkmnStats
|
2015-11-04 16:19:58 +00:00
|
|
|
add_predef CalcPkmnStatC
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef CanLearnTMHMMove
|
|
|
|
add_predef GetTMHMMove
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef LinkTextboxPredef ; $ 10
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef PrintMoveDesc
|
|
|
|
add_predef UpdatePlayerHUD
|
2016-01-12 17:46:18 +00:00
|
|
|
add_predef PlaceGraphic
|
2015-09-09 23:27:07 +00:00
|
|
|
add_predef CheckPlayerPartyForFitPkmn
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef UpdateEnemyHUD
|
|
|
|
add_predef StartBattle
|
|
|
|
add_predef FillInExpBar
|
2017-12-24 20:03:20 +00:00
|
|
|
add_predef GetBattleMonBackpic ; $18
|
|
|
|
add_predef GetEnemyMonFrontpic
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef LearnLevelMoves
|
|
|
|
add_predef FillMoves
|
2015-11-18 23:35:44 +00:00
|
|
|
add_predef EvolveAfterBattle
|
2015-11-23 05:21:21 +00:00
|
|
|
add_predef TradeAnimationPlayer2
|
|
|
|
add_predef TradeAnimation
|
2015-10-08 18:53:39 +00:00
|
|
|
add_predef CopyPkmnToTempMon
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef ListMoves ; $20
|
2015-11-03 14:45:25 +00:00
|
|
|
add_predef PlaceNonFaintStatus
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef UnreferencedPredef22
|
2015-12-04 13:46:11 +00:00
|
|
|
add_predef ListMovePP
|
2015-07-20 15:28:05 +00:00
|
|
|
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
|
2015-12-01 20:35:28 +00:00
|
|
|
add_predef LoadPoisonBGPals
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef DummyPredef2F
|
2016-05-05 19:07:37 +00:00
|
|
|
add_predef InitSGBBorder ; $30
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef LoadSGBLayout
|
|
|
|
add_predef Pokedex_GetArea
|
2018-01-02 15:04:21 +00:00
|
|
|
add_predef Unreferenced_CheckContestMon
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef DoBattleTransition
|
|
|
|
add_predef DummyPredef35
|
|
|
|
add_predef DummyPredef36
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef PlayBattleAnim
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef DummyPredef38 ; $38
|
|
|
|
add_predef DummyPredef39
|
|
|
|
add_predef DummyPredef3A
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef PartyMonItemName
|
2017-12-24 20:03:20 +00:00
|
|
|
add_predef GetMonFrontpic
|
|
|
|
add_predef GetMonBackpic
|
|
|
|
add_predef GetAnimatedFrontpicPredef
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef GetTrainerPic
|
|
|
|
add_predef DecompressPredef ; $40
|
2015-11-07 01:55:16 +00:00
|
|
|
add_predef CheckTypeMatchup
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef ConvertMon_1to2
|
2015-11-18 23:35:44 +00:00
|
|
|
add_predef NewPokedexEntry
|
2015-11-07 14:48:32 +00:00
|
|
|
add_predef AnimateMon_Slow_Normal
|
2015-11-03 14:45:25 +00:00
|
|
|
add_predef PlaceStatusString
|
2015-11-07 14:48:32 +00:00
|
|
|
add_predef LoadMonAnimation
|
|
|
|
add_predef AnimateFrontpic
|
2018-01-02 14:05:14 +00:00
|
|
|
add_predef UnreferencedPredef48 ; $48
|
2016-01-12 17:46:18 +00:00
|
|
|
add_predef HOF_AnimateFrontpic
|
2016-05-12 01:24:14 +00:00
|
|
|
dbw $ff, InexplicablyEmptyFunction ; ???
|
2015-07-20 22:59:26 +00:00
|
|
|
; 864c
|