2018-01-15 11:23:09 -08:00
|
|
|
; Predef routines can be used with the "predef" and "predef_jump" macros.
|
|
|
|
; This preserves registers bc, de, hl and f.
|
|
|
|
|
2018-01-15 11:11:11 -08:00
|
|
|
add_predef: MACRO
|
|
|
|
\1Predef::
|
|
|
|
dab \1
|
|
|
|
ENDM
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
PredefPointers::
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef LearnMove ; $0
|
2018-01-15 11:11:11 -08:00
|
|
|
add_predef DummyPredef1
|
|
|
|
add_predef HealParty ; this is both a special and a predef
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef SmallFarFlagAction
|
|
|
|
add_predef ComputeHPBarPixels
|
|
|
|
add_predef FillPP
|
|
|
|
add_predef TryAddMonToParty
|
|
|
|
add_predef AddTempmonToParty
|
2018-02-22 08:13:29 -08:00
|
|
|
add_predef SendGetMonIntoFromBox
|
|
|
|
add_predef SendMonIntoBox
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef GiveEgg
|
|
|
|
add_predef AnimateHPBar
|
2018-02-22 08:13:29 -08:00
|
|
|
add_predef CalcMonStats
|
|
|
|
add_predef CalcMonStatC
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef CanLearnTMHMMove
|
|
|
|
add_predef GetTMHMMove
|
|
|
|
add_predef LinkTextboxAtHL ; $ 10
|
2020-05-25 00:54:42 -07:00
|
|
|
add_predef PrintMoveDescription
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef UpdatePlayerHUD
|
|
|
|
add_predef PlaceGraphic
|
2018-02-22 08:13:29 -08:00
|
|
|
add_predef CheckPlayerPartyForFitMon
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef UpdateEnemyHUD
|
|
|
|
add_predef StartBattle
|
|
|
|
add_predef FillInExpBar
|
|
|
|
add_predef GetBattleMonBackpic ; $18
|
|
|
|
add_predef GetEnemyMonFrontpic
|
|
|
|
add_predef LearnLevelMoves
|
|
|
|
add_predef FillMoves
|
|
|
|
add_predef EvolveAfterBattle
|
|
|
|
add_predef TradeAnimationPlayer2
|
|
|
|
add_predef TradeAnimation
|
2018-02-22 08:13:29 -08:00
|
|
|
add_predef CopyMonToTempMon
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef ListMoves ; $20
|
|
|
|
add_predef PlaceNonFaintStatus
|
|
|
|
add_predef Unused_PlaceEnemyHPLevel
|
|
|
|
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
|
2018-01-15 11:11:11 -08:00
|
|
|
add_predef DummyPredef2F
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef InitSGBBorder ; $30
|
|
|
|
add_predef LoadSGBLayout
|
|
|
|
add_predef Pokedex_GetArea
|
2018-06-05 03:58:25 -07:00
|
|
|
add_predef Unused_CheckShininess
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef DoBattleTransition
|
2018-01-15 11:11:11 -08:00
|
|
|
add_predef DummyPredef35
|
|
|
|
add_predef DummyPredef36
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef PlayBattleAnim
|
2018-01-15 11:11:11 -08:00
|
|
|
add_predef DummyPredef38 ; $38
|
|
|
|
add_predef DummyPredef39
|
|
|
|
add_predef DummyPredef3A
|
2018-01-16 11:30:10 -08:00
|
|
|
add_predef PartyMonItemName
|
|
|
|
add_predef GetMonFrontpic
|
|
|
|
add_predef GetMonBackpic
|
|
|
|
add_predef GetAnimatedFrontpic
|
|
|
|
add_predef GetTrainerPic
|
|
|
|
add_predef DecompressGet2bpp ; $40
|
|
|
|
add_predef CheckTypeMatchup
|
|
|
|
add_predef ConvertMon_1to2
|
|
|
|
add_predef NewPokedexEntry
|
|
|
|
add_predef Unused_AnimateMon_Slow_Normal
|
|
|
|
add_predef PlaceStatusString
|
|
|
|
add_predef LoadMonAnimation
|
|
|
|
add_predef AnimateFrontpic
|
|
|
|
add_predef Unused_HOF_AnimateAlignedFrontpic ; $48
|
|
|
|
add_predef HOF_AnimateFrontpic
|
2018-01-15 11:11:11 -08:00
|
|
|
dbw -1, InexplicablyEmptyFunction ; ???
|