Some work on battle animations
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user