summaryrefslogtreecommitdiff
path: root/home/uncompress.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/uncompress.asm')
-rw-r--r--home/uncompress.asm13
1 files changed, 5 insertions, 8 deletions
diff --git a/home/uncompress.asm b/home/uncompress.asm
index 9d08aa60..182821aa 100644
--- a/home/uncompress.asm
+++ b/home/uncompress.asm
@@ -5,16 +5,13 @@ UncompressSpriteData::
ldh a, [hLoadedROMBank]
push af
ld a, b
- ldh [hLoadedROMBank], a
- ld [MBC1RomBank], a
- ld a, SRAM_ENABLE
- ld [MBC1SRamEnable], a
- xor a
- ld [MBC1SRamBank], a
+ call BankswitchCommon
+ ld a, $0
+ call SwitchSRAMBankAndLatchClockData
call _UncompressSpriteData
+ call PrepareRTCDataAndDisableSRAM
pop af
- ldh [hLoadedROMBank], a
- ld [MBC1RomBank], a
+ call BankswitchCommon
ret
; initializes necessary data to load a sprite and runs UncompressSpriteDataLoop