pokecrystal-board/engine/predef.asm

109 lines
2.5 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
add_predef LearnMove ; $0
add_predef Predef1
add_predef HealParty
add_predef FlagPredef
2015-12-14 08:12:18 -08:00
add_predef ComputeHPBarPixels
add_predef FillPP
add_predef TryAddMonToParty
2015-11-17 09:29:37 -08:00
add_predef AddTempmonToParty
2015-10-08 11:53:39 -07:00
add_predef SentGetPkmnIntoFromBox
2015-08-30 04:17:14 -07:00
add_predef SentPkmnIntoBox
add_predef GiveEgg
add_predef AnimateHPBar
2015-10-08 11:53:39 -07:00
add_predef CalcPkmnStats
add_predef CalcPkmnStatC
add_predef CanLearnTMHMMove
add_predef GetTMHMMove
2015-11-25 07:16:29 -08:00
add_predef Predef_LinkTextbox ; $ 10
add_predef PrintMoveDesc
add_predef UpdatePlayerHUD
2016-01-12 09:46:18 -08:00
add_predef PlaceGraphic
2015-09-09 16:27:07 -07:00
add_predef CheckPlayerPartyForFitPkmn
add_predef UpdateEnemyHUD
add_predef StartBattle
add_predef FillInExpBar
add_predef GetMonBackpic ; $18
2015-11-06 13:42:38 -08:00
add_predef GetMonFrontpic
add_predef LearnLevelMoves
add_predef FillMoves
add_predef EvolveAfterBattle
2015-11-22 21:21:21 -08:00
add_predef TradeAnimationPlayer2
add_predef TradeAnimation
2015-10-08 11:53:39 -07:00
add_predef CopyPkmnToTempMon
add_predef ListMoves ; $20
2015-11-03 06:45:25 -08:00
add_predef PlaceNonFaintStatus
add_predef Predef22
2015-12-04 05:46:11 -08:00
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
add_predef Predef2F
2016-05-05 12:07:37 -07:00
add_predef InitSGBBorder ; $30
add_predef Predef_LoadSGBLayout
2015-12-09 08:38:40 -08:00
add_predef _Area
add_predef CheckContestMon
add_predef Predef_StartBattle
2015-10-16 10:35:43 -07:00
add_predef Predef35
add_predef Predef36
add_predef PlayBattleAnim
add_predef Predef38 ; $38
add_predef Predef39
2016-01-12 09:46:18 -08:00
add_predef Predef3A
add_predef PartyMonItemName
add_predef GetFrontpic
add_predef GetBackpic
2015-11-20 12:15:32 -08:00
add_predef FrontpicPredef
add_predef GetTrainerPic
add_predef DecompressPredef ; $40
2015-11-06 17:55:16 -08:00
add_predef CheckTypeMatchup
add_predef ConvertMon_1to2
add_predef NewPokedexEntry
2015-11-07 06:48:32 -08:00
add_predef AnimateMon_Slow_Normal
2015-11-03 06:45:25 -08:00
add_predef PlaceStatusString
2015-11-07 06:48:32 -08:00
add_predef LoadMonAnimation
add_predef AnimateFrontpic
add_predef Predef48 ; $48
2016-01-12 09:46:18 -08:00
add_predef HOF_AnimateFrontpic
dbw $ff, InexplicablyEmptyFunction ; ???
; 864c