2015-07-20 08:28:05 -07: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 09:31:49 -07:00
|
|
|
add hl, de
|
|
|
|
add hl, de
|
|
|
|
add hl, de
|
2015-07-20 08:28:05 -07: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
|
|
|
|
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_LearnMove ; $0
|
2018-01-02 06:05:14 -08:00
|
|
|
add_predef DummyPredef1
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef HealParty ; this is both a special and a predef
|
2018-01-07 02:53:20 -08:00
|
|
|
add_predef Predef_SmallFarFlagAction
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_ComputeHPBarPixels
|
|
|
|
add_predef Predef_FillPP
|
|
|
|
add_predef Predef_TryAddMonToParty
|
|
|
|
add_predef Predef_AddTempmonToParty
|
|
|
|
add_predef Predef_SendGetPkmnIntoFromBox
|
|
|
|
add_predef Predef_SendPkmnIntoBox
|
|
|
|
add_predef Predef_GiveEgg
|
|
|
|
add_predef Predef_AnimateHPBar
|
|
|
|
add_predef Predef_CalcPkmnStats
|
|
|
|
add_predef Predef_CalcPkmnStatC
|
|
|
|
add_predef Predef_CanLearnTMHMMove
|
|
|
|
add_predef Predef_GetTMHMMove
|
|
|
|
add_predef Predef_LinkTextbox ; $ 10
|
|
|
|
add_predef Predef_PrintMoveDesc
|
|
|
|
add_predef Predef_UpdatePlayerHUD
|
|
|
|
add_predef Predef_PlaceGraphic
|
|
|
|
add_predef Predef_CheckPlayerPartyForFitPkmn
|
|
|
|
add_predef Predef_UpdateEnemyHUD
|
|
|
|
add_predef Predef_StartBattle
|
|
|
|
add_predef Predef_FillInExpBar
|
|
|
|
add_predef Predef_GetBattleMonBackpic ; $18
|
|
|
|
add_predef Predef_GetEnemyMonFrontpic
|
|
|
|
add_predef Predef_LearnLevelMoves
|
|
|
|
add_predef Predef_FillMoves
|
|
|
|
add_predef Predef_EvolveAfterBattle
|
|
|
|
add_predef Predef_TradeAnimationPlayer2
|
|
|
|
add_predef Predef_TradeAnimation
|
|
|
|
add_predef Predef_CopyPkmnToTempMon
|
|
|
|
add_predef Predef_ListMoves ; $20
|
|
|
|
add_predef Predef_PlaceNonFaintStatus
|
2018-01-02 08:13:57 -08:00
|
|
|
add_predef UnusedPredef22
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_ListMovePP
|
|
|
|
add_predef Predef_GetGender
|
|
|
|
add_predef Predef_StatsScreenInit
|
|
|
|
add_predef Predef_DrawPlayerHP
|
|
|
|
add_predef Predef_DrawEnemyHP
|
|
|
|
add_predef Predef_PrintTempMonStats ; $28
|
|
|
|
add_predef Predef_GetTypeName
|
|
|
|
add_predef Predef_PrintMoveType
|
|
|
|
add_predef Predef_PrintType
|
|
|
|
add_predef Predef_PrintMonTypes
|
|
|
|
add_predef Predef_GetUnownLetter
|
|
|
|
add_predef Predef_LoadPoisonBGPals
|
2018-01-02 06:05:14 -08:00
|
|
|
add_predef DummyPredef2F
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_InitSGBBorder ; $30
|
|
|
|
add_predef Predef_LoadSGBLayout
|
|
|
|
add_predef Predef_Pokedex_GetArea
|
2018-01-02 08:13:57 -08:00
|
|
|
add_predef UnusedPredef_CheckContestMon
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_DoBattleTransition
|
2018-01-02 06:05:14 -08:00
|
|
|
add_predef DummyPredef35
|
|
|
|
add_predef DummyPredef36
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_PlayBattleAnim
|
2018-01-02 06:05:14 -08:00
|
|
|
add_predef DummyPredef38 ; $38
|
|
|
|
add_predef DummyPredef39
|
|
|
|
add_predef DummyPredef3A
|
2018-01-02 09:49:25 -08:00
|
|
|
add_predef Predef_PartyMonItemName
|
|
|
|
add_predef Predef_GetMonFrontpic
|
|
|
|
add_predef Predef_GetMonBackpic
|
|
|
|
add_predef Predef_GetAnimatedFrontpic
|
|
|
|
add_predef Predef_GetTrainerPic
|
|
|
|
add_predef Predef_Decompress ; $40
|
|
|
|
add_predef Predef_CheckTypeMatchup
|
|
|
|
add_predef Predef_ConvertMon_1to2
|
|
|
|
add_predef Predef_NewPokedexEntry
|
|
|
|
add_predef UnusedPredef_AnimateMon_Slow_Normal
|
|
|
|
add_predef Predef_PlaceStatusString
|
|
|
|
add_predef Predef_LoadMonAnimation
|
|
|
|
add_predef Predef_AnimateFrontpic
|
2018-01-02 08:13:57 -08:00
|
|
|
add_predef UnusedPredef48 ; $48
|
2018-01-15 07:55:44 -08:00
|
|
|
add_predef Predef_HOF_AnimateFrontpic
|
2016-05-11 18:24:14 -07:00
|
|
|
dbw $ff, InexplicablyEmptyFunction ; ???
|
2015-07-20 15:59:26 -07:00
|
|
|
; 864c
|