pokecrystal/engine/predef.asm

109 lines
3.0 KiB
NASM
Raw Normal View History

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
add hl, de
add hl, de
add hl, de
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 17:49:25 +00:00
add_predef Predef_LearnMove ; $0
2018-01-02 14:05:14 +00:00
add_predef DummyPredef1
2018-01-02 17:49:25 +00:00
add_predef HealParty ; this is both a special and a predef
add_predef Predef_Flag
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 16:13:57 +00:00
add_predef UnusedPredef22
2018-01-02 17:49:25 +00: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 14:05:14 +00:00
add_predef DummyPredef2F
2018-01-02 17:49:25 +00:00
add_predef Predef_InitSGBBorder ; $30
add_predef Predef_LoadSGBLayout
add_predef Predef_Pokedex_GetArea
2018-01-02 16:13:57 +00:00
add_predef UnusedPredef_CheckContestMon
2018-01-02 17:49:25 +00:00
add_predef Predef_DoBattleTransition
2018-01-02 14:05:14 +00:00
add_predef DummyPredef35
add_predef DummyPredef36
2018-01-02 17:49:25 +00:00
add_predef Predef_PlayBattleAnim
2018-01-02 14:05:14 +00:00
add_predef DummyPredef38 ; $38
add_predef DummyPredef39
add_predef DummyPredef3A
2018-01-02 17:49:25 +00: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 16:13:57 +00:00
add_predef UnusedPredef48 ; $48
2018-01-02 17:49:25 +00:00
add_predef HOF_Predef_AnimateFrontpic
dbw $ff, InexplicablyEmptyFunction ; ???
; 864c