2015-07-20 15:28:05 +00: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
|
|
|
|
rept 3
|
|
|
|
add hl,de
|
|
|
|
endr
|
|
|
|
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
|
|
|
|
add_predef Functionc699
|
|
|
|
add_predef FillPP
|
2015-10-07 17:19:41 +00:00
|
|
|
add_predef TryAddMonToParty
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef Functionda96
|
2015-10-08 18:53:39 +00:00
|
|
|
add_predef SentGetPkmnIntoFromBox
|
2015-08-30 11:17:14 +00:00
|
|
|
add_predef SentPkmnIntoBox
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef GiveEgg
|
|
|
|
add_predef Functionc6e0
|
2015-10-08 18:53:39 +00:00
|
|
|
add_predef CalcPkmnStats
|
2015-11-04 16:19:58 +00:00
|
|
|
add_predef CalcPkmnStatC
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef CanLearnTMHMMove
|
|
|
|
add_predef GetTMHMMove
|
|
|
|
add_predef Function28eef ; $ 10
|
|
|
|
add_predef PrintMoveDesc
|
|
|
|
add_predef UpdatePlayerHUD
|
|
|
|
add_predef FillBox
|
2015-09-09 23:27:07 +00:00
|
|
|
add_predef CheckPlayerPartyForFitPkmn
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef UpdateEnemyHUD
|
|
|
|
add_predef StartBattle
|
|
|
|
add_predef FillInExpBar
|
2015-11-06 19:45:10 +00:00
|
|
|
add_predef GetMonBackpic ; $18
|
2015-11-06 21:42:38 +00:00
|
|
|
add_predef GetMonFrontpic
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef LearnLevelMoves
|
|
|
|
add_predef FillMoves
|
|
|
|
add_predef Function421e6
|
|
|
|
add_predef Function28f63
|
|
|
|
add_predef Function28f24
|
2015-10-08 18:53:39 +00:00
|
|
|
add_predef CopyPkmnToTempMon
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef ListMoves ; $20
|
2015-11-03 14:45:25 +00:00
|
|
|
add_predef PlaceNonFaintStatus
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef Function50cdb
|
|
|
|
add_predef Function50c50
|
|
|
|
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 Functioncbcdd
|
|
|
|
add_predef Predef2F
|
|
|
|
add_predef Function9853 ; $30
|
2015-07-22 19:57:02 +00:00
|
|
|
add_predef Predef_LoadSGBLayout
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef Function91d11
|
|
|
|
add_predef CheckContestMon
|
2015-10-18 00:49:34 +00:00
|
|
|
add_predef Predef_StartBattle
|
2015-10-16 17:35:43 +00:00
|
|
|
add_predef Predef35
|
|
|
|
add_predef Predef36
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef PlayBattleAnim
|
|
|
|
add_predef Predef38 ; $38
|
|
|
|
add_predef Predef39
|
|
|
|
add_predef Functionfd1d0
|
|
|
|
add_predef PartyMonItemName
|
|
|
|
add_predef GetFrontpic
|
|
|
|
add_predef GetBackpic
|
|
|
|
add_predef Function5108b
|
|
|
|
add_predef GetTrainerPic
|
|
|
|
add_predef DecompressPredef ; $40
|
2015-11-07 01:55:16 +00:00
|
|
|
add_predef CheckTypeMatchup
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef ConvertMon_1to2
|
|
|
|
add_predef Functionfb877
|
|
|
|
add_predef Functiond0000
|
2015-11-03 14:45:25 +00:00
|
|
|
add_predef PlaceStatusString
|
2015-07-20 15:28:05 +00:00
|
|
|
add_predef Functiond00a3
|
|
|
|
add_predef Functiond008e
|
|
|
|
add_predef Functiond0669 ; $48
|
|
|
|
add_predef Functiond066e
|
|
|
|
dbw $ff, Function2d43 ; ????
|
2015-07-20 22:59:26 +00:00
|
|
|
; 864c
|