diff options
Diffstat (limited to 'home/battle.asm')
-rw-r--r-- | home/battle.asm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/home/battle.asm b/home/battle.asm index 37f39572a..94a065d4d 100644 --- a/home/battle.asm +++ b/home/battle.asm @@ -309,3 +309,53 @@ GLOBAL BattleText rst Bankswitch ret ; 3ae1 + +GetBattleAnimPointer:: ; 3ae1 + +GLOBAL BattleAnimations +GLOBAL BattleAnimCommands + + ld a, BANK(BattleAnimations) + rst Bankswitch + + ld a, [hli] + ld [BattleAnimAddress], a + ld a, [hl] + ld [BattleAnimAddress + 1], a + + ld a, BANK(BattleAnimCommands) + rst Bankswitch + + ret +; 3af0 + +GetBattleAnimByte:: ; 3af0 + + push hl + push de + + ld hl, BattleAnimAddress + ld e, [hl] + inc hl + ld d, [hl] + + ld a, BANK(BattleAnimations) + rst Bankswitch + + ld a, [de] + ld [BattleAnimByte], a + inc de + + ld a, BANK(BattleAnimCommands) + rst Bankswitch + + ld [hl], d + dec hl + ld [hl], e + + pop de + pop hl + + ld a, [BattleAnimByte] + ret +; 3b0c |