more battle animation labels

This commit is contained in:
yenatch 2013-12-08 16:22:35 -05:00
parent 37dd85797a
commit 9eb2cf3d21
3 changed files with 44 additions and 14 deletions

View File

@ -2410,41 +2410,49 @@ StdBattleTextBox: ; 3ad5
Function3ae1: ; 3ae1 Function3ae1: ; 3ae1
ld a, $32
ld a, BANK(BattleAnimations)
rst Bankswitch rst Bankswitch
ld a, [hli] ld a, [hli]
ld [$d410], a ld [BattleAnimAddress], a
ld a, [hl] ld a, [hl]
ld [$d411], a ld [BattleAnimAddress + 1], a
ld a, $33
ld a, BANK(BattleAnimCommands)
rst Bankswitch rst Bankswitch
ret ret
; 3af0 ; 3af0
GetBattleAnimByte: ; 3af0 GetBattleAnimByte: ; 3af0
push hl push hl
push de push de
ld hl, $d410
ld hl, BattleAnimAddress
ld e, [hl] ld e, [hl]
inc hl inc hl
ld d, [hl] ld d, [hl]
ld a, $32
ld a, BANK(BattleAnimations)
rst Bankswitch rst Bankswitch
ld a, [de] ld a, [de]
ld [$d417], a ld [BattleAnimByte], a
inc de inc de
ld a, $33
ld a, BANK(BattleAnimCommands)
rst Bankswitch rst Bankswitch
ld [hl], d ld [hl], d
dec hl dec hl
ld [hl], e ld [hl], e
pop de pop de
pop hl pop hl
ld a, [$d417]
ld a, [BattleAnimByte]
ret ret
; 3b0c ; 3b0c
@ -2453,17 +2461,17 @@ Function3b0c: ; 3b0c
and a and a
ret z ret z
ld a, $00 ld a, LYOverridesBackup % $100
ld [Requested2bppSource], a ld [Requested2bppSource], a
ld a, $d2 ld a, LYOverridesBackup / $100
ld [Requested2bppSource + 1], a ld [Requested2bppSource + 1], a
ld a, $00 ld a, LYOverrides % $100
ld [Requested2bppDest], a ld [Requested2bppDest], a
ld a, $d1 ld a, LYOverrides / $100
ld [Requested2bppDest + 1], a ld [Requested2bppDest + 1], a
ld a, $9 ld a, (LYOverridesEnd - LYOverrides) / 16
ld [Requested2bpp], a ld [Requested2bpp], a
ret ret
; 3b2a ; 3b2a

View File

@ -86996,6 +86996,7 @@ Functionc9066: ; c9066 (32:5066)
ret ret
; c906f (32:506f) ; c906f (32:506f)
BattleAnimations: ; c906f
INCBIN "baserom.gbc",$c906f,$cbcdd - $c906f INCBIN "baserom.gbc",$c906f,$cbcdd - $c906f
Functioncbcdd: ; cbcdd Functioncbcdd: ; cbcdd

View File

@ -2137,6 +2137,27 @@ LYOverrides: ; d100
ds 144 ds 144
LYOverridesEnd: LYOverridesEnd:
ds 112
LYOverridesBackup: ; d200
ds 144
LYOverridesBackupEnd:
SECTION "Battle Animations", WRAMX[$d410], BANK[5]
BattleAnimAddress: ; d410
ds 2
BattleAnimDuration: ; d412
ds 1
BattleAnimParent: ; d413
ds 2
ds 2
BattleAnimByte: ; d417
ds 1
ds 1
BattleAnimTile: ; d419
ds 1
SECTION "SRAMBank1",SRAM,BANK[1] SECTION "SRAMBank1",SRAM,BANK[1]