2015-07-20 11:28:05 -04: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 12:31:49 -04:00
|
|
|
add hl, de
|
|
|
|
add hl, de
|
|
|
|
add hl, de
|
2015-07-20 11:28:05 -04: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
|
|
|
|
add_predef Predef1
|
|
|
|
add_predef HealParty
|
|
|
|
add_predef FlagPredef
|
2015-12-14 11:12:18 -05:00
|
|
|
add_predef ComputeHPBarPixels
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef FillPP
|
2015-10-07 13:19:41 -04:00
|
|
|
add_predef TryAddMonToParty
|
2015-11-17 12:29:37 -05:00
|
|
|
add_predef AddTempmonToParty
|
2015-10-08 20:53:39 +02:00
|
|
|
add_predef SentGetPkmnIntoFromBox
|
2015-08-30 13:17:14 +02:00
|
|
|
add_predef SentPkmnIntoBox
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef GiveEgg
|
2015-11-07 08:05:57 -05:00
|
|
|
add_predef AnimateHPBar
|
2015-10-08 20:53:39 +02:00
|
|
|
add_predef CalcPkmnStats
|
2015-11-04 11:19:58 -05:00
|
|
|
add_predef CalcPkmnStatC
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef CanLearnTMHMMove
|
|
|
|
add_predef GetTMHMMove
|
2015-11-25 10:16:29 -05:00
|
|
|
add_predef Predef_LinkTextbox ; $ 10
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef PrintMoveDesc
|
|
|
|
add_predef UpdatePlayerHUD
|
2016-01-12 12:46:18 -05:00
|
|
|
add_predef PlaceGraphic
|
2015-09-10 01:27:07 +02:00
|
|
|
add_predef CheckPlayerPartyForFitPkmn
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef UpdateEnemyHUD
|
|
|
|
add_predef StartBattle
|
|
|
|
add_predef FillInExpBar
|
2017-12-24 15:03:20 -05:00
|
|
|
add_predef GetBattleMonBackpic ; $18
|
|
|
|
add_predef GetEnemyMonFrontpic
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef LearnLevelMoves
|
|
|
|
add_predef FillMoves
|
2015-11-18 18:35:44 -05:00
|
|
|
add_predef EvolveAfterBattle
|
2015-11-23 00:21:21 -05:00
|
|
|
add_predef TradeAnimationPlayer2
|
|
|
|
add_predef TradeAnimation
|
2015-10-08 20:53:39 +02:00
|
|
|
add_predef CopyPkmnToTempMon
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef ListMoves ; $20
|
2015-11-03 09:45:25 -05:00
|
|
|
add_predef PlaceNonFaintStatus
|
2016-05-10 12:31:49 -04:00
|
|
|
add_predef Predef22
|
2015-12-04 08:46:11 -05:00
|
|
|
add_predef ListMovePP
|
2015-07-20 11:28:05 -04: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 15:35:28 -05:00
|
|
|
add_predef LoadPoisonBGPals
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef Predef2F
|
2016-05-05 15:07:37 -04:00
|
|
|
add_predef InitSGBBorder ; $30
|
2015-07-22 15:57:02 -04:00
|
|
|
add_predef Predef_LoadSGBLayout
|
2015-12-09 11:38:40 -05:00
|
|
|
add_predef _Area
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef CheckContestMon
|
2015-10-17 20:49:34 -04:00
|
|
|
add_predef Predef_StartBattle
|
2015-10-16 13:35:43 -04:00
|
|
|
add_predef Predef35
|
|
|
|
add_predef Predef36
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef PlayBattleAnim
|
|
|
|
add_predef Predef38 ; $38
|
|
|
|
add_predef Predef39
|
2016-01-12 12:46:18 -05:00
|
|
|
add_predef Predef3A
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef PartyMonItemName
|
2017-12-24 15:03:20 -05:00
|
|
|
add_predef GetMonFrontpic
|
|
|
|
add_predef GetMonBackpic
|
|
|
|
add_predef GetAnimatedFrontpicPredef
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef GetTrainerPic
|
|
|
|
add_predef DecompressPredef ; $40
|
2015-11-06 20:55:16 -05:00
|
|
|
add_predef CheckTypeMatchup
|
2015-07-20 11:28:05 -04:00
|
|
|
add_predef ConvertMon_1to2
|
2015-11-18 18:35:44 -05:00
|
|
|
add_predef NewPokedexEntry
|
2015-11-07 09:48:32 -05:00
|
|
|
add_predef AnimateMon_Slow_Normal
|
2015-11-03 09:45:25 -05:00
|
|
|
add_predef PlaceStatusString
|
2015-11-07 09:48:32 -05:00
|
|
|
add_predef LoadMonAnimation
|
|
|
|
add_predef AnimateFrontpic
|
2016-05-10 12:31:49 -04:00
|
|
|
add_predef Predef48 ; $48
|
2016-01-12 12:46:18 -05:00
|
|
|
add_predef HOF_AnimateFrontpic
|
2016-05-11 21:24:14 -04:00
|
|
|
dbw $ff, InexplicablyEmptyFunction ; ???
|
2015-07-20 18:59:26 -04:00
|
|
|
; 864c
|