Label BCD math predefs.

This commit is contained in:
yenatch 2014-05-25 17:27:02 -07:00
parent bba8405992
commit 4be11293e5
14 changed files with 92 additions and 83 deletions

View file

@ -36,8 +36,8 @@ Func_137aa: ; 137aa (4:77aa)
jr z, .asm_1380a
ld de, wPlayerMoney + 2 ; $d349
ld c, $3
ld a, $b
call Predef ; indirect jump to Func_f81d (f81d (3:781d))
ld a, $b ; AddBCDPredef
call Predef
ld hl, PickUpPayDayMoneyText
call PrintText
.asm_1380a

View file

@ -120,7 +120,7 @@ PayDayEffect_ ; 2feb8 (b:7eb8)
ld [hl], a
ld de, $cce7
ld c, $3
ld a, $b
ld a, $b ; AddBCDPredef
call Predef
ld hl, CoinsScatteredText ; $7f04
jp PrintText

View file

@ -996,8 +996,8 @@ TrainerBattleVictory: ; 3c696 (f:4696)
ld de, wPlayerMoney + 2 ; $d349
ld hl, $d07b
ld c, $3
ld a, $b
jp Predef ; indirect jump to Func_f81d (f81d (3:781d))
ld a, $b ; AddBCDPredef
jp Predef
MoneyForWinningText: ; 3c6e4 (f:46e4)
TX_FAR _MoneyForWinningText

View file

@ -71,8 +71,8 @@ VendingMachineMenu: ; 74ee0 (1d:4ee0)
ld hl, $ffde
ld de, wPlayerMoney + 2 ; $d349
ld c, $3
ld a, $c
call Predef ; indirect jump to Func_f836 (f836 (3:7836))
ld a, $c ; SubtractBCDPredef
call Predef
ld a, $13
ld [$d125], a
jp DisplayTextBoxID

View file

@ -104,7 +104,7 @@ HiddenCoins: ; 76799 (1d:6799)
ld de, $d5a5
ld hl, $ffa1
ld c, $2
ld a, $b
ld a, $b ; AddBCDPredef
call Predef
ld hl, $d6fe
ld a, [$cd41]

View file

@ -70,12 +70,13 @@ HealPartyPredef: ; 4fe8e (13:7e8e)
dbw BANK(HealParty),HealParty
MoveAnimationPredef: ; 4fe91 (13:7e91)
dbw BANK(MoveAnimation),MoveAnimation; 08 play move animation
dbw BANK(Func_f71e),Func_f71e
dbw BANK(Func_f71e),Func_f71e
dbw BANK(Func_f81d),Func_f81d
dbw BANK(Func_f836),Func_f836
dbw BANK(Func_f71e),Func_f71e
dbw BANK(Func_f71e),Func_f71e
dbw BANK(DivideBCDPredef),DivideBCDPredef
dbw BANK(DivideBCDPredef),DivideBCDPredef
dbw BANK(AddBCDPredef),AddBCDPredef
db BANK(SubtractBCDPredef)
dw SubtractBCDPredef
dbw BANK(DivideBCDPredef),DivideBCDPredef
dbw BANK(DivideBCDPredef),DivideBCDPredef
db BANK(InitializePlayerData)
dw InitializePlayerData
dbw BANK(FlagActionPredef),FlagActionPredef

View file

@ -618,7 +618,7 @@ SlotMachine_37741: ; 37741 (d:7741)
ld [hli], a
ld de, $d5a5
ld c, $2
ld a, $c
ld a, $c ; SubtractBCDPredef
call Predef
SlotMachine_37754: ; 37754 (d:7754)
@ -660,7 +660,7 @@ SlotMachine_3776b: ; 3776b (d:776b)
ld hl, $cd47
ld de, $d5a5
ld c, $2
ld a, $b
ld a, $b ; AddBCDPredef
call Predef
call SlotMachine_37754
call SlotMachine_3775f