Move crysaudio ram from sram to wram

This commit is contained in:
dannye 2021-03-28 12:26:46 -05:00
parent baf447a260
commit 5f87413b23
12 changed files with 253 additions and 379 deletions

View file

@ -92,22 +92,12 @@ PlaySound::
pop de
ret
OpenSRAMForSound::
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ret
;InitSound::
; push hl
; push de
; push bc
; push af
;
; call OpenSRAMForSound
;
; ldh a, [hLoadedROMBank]
; push af
; ld a, BANK(_InitSound)
@ -132,10 +122,6 @@ UpdateSound::
; push bc
; push af
ld a, [wHaltAudio]
and a
ret nz
ldh a, [hLoadedROMBank]
push af
ld a, BANK(_UpdateSound)

View file

@ -126,8 +126,6 @@ ClearVram::
StopAllSounds::
call OpenSRAMForSound
ld a, 0 ; BANK("Audio Engine 1")
ld [wAudioROMBank], a
ld [wAudioSavedROMBank], a