summaryrefslogtreecommitdiff
path: root/home/sprite_updates.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/sprite_updates.asm')
-rwxr-xr-xhome/sprite_updates.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/home/sprite_updates.asm b/home/sprite_updates.asm
new file mode 100755
index 00000000..8b8aee32
--- /dev/null
+++ b/home/sprite_updates.asm
@@ -0,0 +1,19 @@
+DisableSpriteUpdates::
+ xor a
+ ldh [hMapAnims], a
+ ld a, [wVramState]
+ res 0, a
+ ld [wVramState], a
+ ld a, $0
+ ld [wSpriteUpdatesEnabled], a
+ ret
+
+EnableSpriteUpdates::
+ ld a, $1
+ ld [wSpriteUpdatesEnabled], a
+ ld a, [wVramState]
+ set 0, a
+ ld [wVramState], a
+ ld a, $1
+ ldh [hMapAnims], a
+ ret \ No newline at end of file