From bbf2f51a02b2544f1bef32a5868503b474ae2fef Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 7 Jul 2020 18:50:58 -0400 Subject: Move all code out of home.asm into home/ This results in 64 home/*.asm files, comparable to pokecrystal's 57. --- home/update_sprites.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 home/update_sprites.asm (limited to 'home/update_sprites.asm') 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 -- cgit v1.3.1-sl0p