summaryrefslogtreecommitdiff
path: root/home/sprite_updates.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/sprite_updates.asm')
-rw-r--r--home/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 100644
index 000000000..d263363a6
--- /dev/null
+++ b/home/sprite_updates.asm
@@ -0,0 +1,19 @@
+DisableSpriteUpdates::
+ xor a
+ ld [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
+ ld [hMapAnims], a
+ ret