shithub: pokecrystal

Download patch

ref: 37dd85797a7c5c5581b8fb21bae83d5d34ae0321
parent: b85244eade4e6e9e70a0dd68a65bc757ca497771
author: yenatch <[email protected]>
date: Thu Dec 5 10:01:32 EST 2013

Function3af0 -> GetBattleAnimByte

--- a/home.asm
+++ b/home.asm
@@ -2423,7 +2423,7 @@
 	ret
 ; 3af0
 
-Function3af0: ; 3af0
+GetBattleAnimByte: ; 3af0
 	push hl
 	push de
 	ld hl, $d410
--- a/main.asm
+++ b/main.asm
@@ -87458,7 +87458,7 @@
 
 Functioncc275: ; cc275
 
-	call Function3af0
+	call GetBattleAnimByte
 
 	cp $ff
 	jr nz, .asm_cc286
@@ -87577,9 +87577,9 @@
 
 ; no known jump sources
 BattleAnimCmd_FE: ; cc317 (33:4317)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	push de
 	ld hl, $d410
@@ -87601,9 +87601,9 @@
 
 ; no known jump sources
 BattleAnimCmd_FC: ; cc339 (33:4339)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	ld hl, $d410
 	ld [hl], e
@@ -87613,7 +87613,7 @@
 
 ; no known jump sources
 BattleAnimCmd_FD: ; cc348 (33:4348)
-	call Function3af0
+	call GetBattleAnimByte
 	ld hl, $d40f
 	bit 2, [hl]
 	jr nz, .asm_cc35b
@@ -87629,9 +87629,9 @@
 	jr z, .asm_cc372
 	dec [hl]
 .asm_cc363
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	ld hl, $d410
 	ld [hl], e
@@ -87659,9 +87659,9 @@
 	and a
 	jr z, .asm_cc39a
 	dec [hl]
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	ld hl, $d410
 	ld [hl], e
@@ -87682,7 +87682,7 @@
 
 ; no known jump sources
 BattleAnimCmd_F9: ; cc3a6 (33:43a6)
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d416], a
 	ret
 
@@ -87694,7 +87694,7 @@
 
 ; no known jump sources
 BattleAnimCmd_FB: ; cc3b2 (33:43b2)
-	call Function3af0
+	call GetBattleAnimByte
 	ld hl, $d416
 	cp [hl]
 	jr z, .asm_cc3c7
@@ -87709,9 +87709,9 @@
 	ld [hl], e
 	ret
 .asm_cc3c7
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	ld hl, $d410
 	ld [hl], e
@@ -87721,7 +87721,7 @@
 
 ; no known jump sources
 BattleAnimCmd_F8: ; cc3d6 (33:43d6)
-	call Function3af0
+	call GetBattleAnimByte
 	ld hl, $c689
 	cp [hl]
 	jr z, .asm_cc3eb
@@ -87736,9 +87736,9 @@
 	ld [hl], e
 	ret
 .asm_cc3eb
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	ld hl, $d410
 	ld [hl], e
@@ -87748,7 +87748,7 @@
 
 ; no known jump sources
 BattleAnimCmd_EE: ; cc3fa (33:43fa)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
 	ld a, [$c689]
 	and e
@@ -87764,9 +87764,9 @@
 	ld [hl], e
 	ret
 .asm_cc410
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
-	call Function3af0
+	call GetBattleAnimByte
 	ld d, a
 	ld hl, $d410
 	ld [hl], e
@@ -87776,13 +87776,13 @@
 
 ; no known jump sources
 BattleAnimCmd_D0: ; cc41f (33:441f)
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d419], a
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d41a], a
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d41b], a
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d41c], a
 	call Functioncc9a1
 	ret
@@ -87789,13 +87789,13 @@
 
 ; no known jump sources
 BattleAnimCmd_F0: ; cc43b (33:443b)
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d419], a
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d41a], a
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d41b], a
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$d41c], a
 	call Functionccb4f
 	ret
@@ -87802,19 +87802,19 @@
 
 ; no known jump sources
 BattleAnimCmd_F1: ; cc457 (33:4457)
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$cfc7], a
 	ret
 
 ; no known jump sources
 BattleAnimCmd_F2: ; cc45e (33:445e)
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$cfc8], a
 	ret
 
 ; no known jump sources
 BattleAnimCmd_F3: ; cc465 (33:4465)
-	call Function3af0
+	call GetBattleAnimByte
 	ld [$cfc9], a
 	ret
 
@@ -87856,7 +87856,7 @@
 	ld a, [$d419]
 	cp $4f
 	ret nc
-	call Function3af0
+	call GetBattleAnimByte
 	ld [hli], a
 	ld a, [$d419]
 	ld [hli], a
@@ -87883,7 +87883,7 @@
 
 ; no known jump sources
 BattleAnimCmd_D6: ; cc4c0 (33:44c0)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, $a
 	ld bc, $d30a
 .asm_cc4c8
@@ -87908,7 +87908,7 @@
 
 ; no known jump sources
 BattleAnimCmd_D8: ; cc4e3 (33:44e3)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, $5
 	ld bc, $d3fa
 .asm_cc4eb
@@ -87933,7 +87933,7 @@
 
 ; no known jump sources
 BattleAnimCmd_D7: ; cc506 (33:4506)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, $a
 	ld bc, $d30a
 .asm_cc50e
@@ -87951,7 +87951,7 @@
 	jr nz, .asm_cc50e
 	ret
 .asm_cc523
-	call Function3af0
+	call GetBattleAnimByte
 	ld hl, $e
 	add hl, bc
 	ld [hl], a
@@ -88357,7 +88357,7 @@
 
 ; no known jump sources
 BattleAnimCmd_E0: ; cc7cd (33:47cd)
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
 	srl a
 	srl a
@@ -88373,7 +88373,7 @@
 	ld a, [hl]
 	ld [$c2bc], a
 
-	call Function3af0
+	call GetBattleAnimByte
 	ld e, a
 	ld d, 0
 	callab PlayStereoSFX
@@ -88401,7 +88401,7 @@
 
 ; no known jump sources
 BattleAnimCmd_E1: ; cc807 (33:4807)
-	call Function3af0
+	call GetBattleAnimByte
 	and 3
 	ld e, a
 	ld d, 0