mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Move crysaudio ram from sram to wram
This commit is contained in:
parent
baf447a260
commit
5f87413b23
12 changed files with 253 additions and 379 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -126,8 +126,6 @@ ClearVram::
|
|||
|
||||
|
||||
StopAllSounds::
|
||||
call OpenSRAMForSound
|
||||
|
||||
ld a, 0 ; BANK("Audio Engine 1")
|
||||
ld [wAudioROMBank], a
|
||||
ld [wAudioSavedROMBank], a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue