summaryrefslogtreecommitdiff
path: root/home/sprite_anims.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/sprite_anims.asm')
-rwxr-xr-xhome/sprite_anims.asm31
1 files changed, 31 insertions, 0 deletions
diff --git a/home/sprite_anims.asm b/home/sprite_anims.asm
new file mode 100755
index 00000000..7b5b22d5
--- /dev/null
+++ b/home/sprite_anims.asm
@@ -0,0 +1,31 @@
+InitSpriteAnimStruct::
+ ld [wAnimatedObjectStructIDBuffer], a
+ ldh a, [hROMBank]
+ push af
+
+ ld a, BANK(_InitSpriteAnimStruct)
+ rst Bankswitch
+ ld a, [wAnimatedObjectStructIDBuffer]
+
+ call _InitSpriteAnimStruct
+
+ pop af
+ rst Bankswitch
+
+ ret
+
+ReinitSpriteAnimFrame::
+ ld [wAnimatedObjectStructIDBuffer], a
+ ldh a, [hROMBank]
+ push af
+
+ ld a, BANK(_ReinitSpriteAnimFrame)
+ rst Bankswitch
+ ld a, [wAnimatedObjectStructIDBuffer]
+
+ call _ReinitSpriteAnimFrame
+
+ pop af
+ rst Bankswitch
+
+ ret