summaryrefslogtreecommitdiff
path: root/home/update_sprites.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/update_sprites.asm')
-rw-r--r--home/update_sprites.asm14
1 files changed, 14 insertions, 0 deletions
diff --git a/home/update_sprites.asm b/home/update_sprites.asm
new file mode 100644
index 00000000..80ea14d3
--- /dev/null
+++ b/home/update_sprites.asm
@@ -0,0 +1,14 @@
+UpdateSprites::
+ ld a, [wUpdateSpritesEnabled]
+ dec a
+ ret nz
+ ldh a, [hLoadedROMBank]
+ push af
+ ld a, BANK(_UpdateSprites)
+ ldh [hLoadedROMBank], a
+ ld [MBC1RomBank], a
+ call _UpdateSprites
+ pop af
+ ldh [hLoadedROMBank], a
+ ld [MBC1RomBank], a
+ ret