mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-30 12:30:51 +00:00
Fix clearing OAM and initializeing wave RAM
This commit is contained in:
parent
a588993f28
commit
157123e118
@ -15,6 +15,22 @@ Start:
|
||||
call ClearMemoryPage
|
||||
ld [c], a
|
||||
|
||||
; Clear OAM
|
||||
ld h, $fe
|
||||
ld c, $a0
|
||||
.clearOAMLoop
|
||||
ldi [hl], a
|
||||
dec c
|
||||
jr nz, .clearOAMLoop
|
||||
|
||||
; Init waveform
|
||||
ld c, $10
|
||||
.waveformLoop
|
||||
ldi [hl], a
|
||||
cpl
|
||||
dec c
|
||||
jr nz, .waveformLoop
|
||||
|
||||
; Clear chosen input palette
|
||||
ldh [InputPalette], a
|
||||
; Clear title checksum
|
||||
@ -29,22 +45,6 @@ Start:
|
||||
ld a, $77
|
||||
ldh [$24], a
|
||||
ld hl, $FF30
|
||||
; Init waveform
|
||||
ld c, $10
|
||||
.waveformLoop
|
||||
ldi [hl], a
|
||||
cpl
|
||||
dec c
|
||||
jr nz, .waveformLoop
|
||||
|
||||
|
||||
; Clear OAM
|
||||
ld h, $fe
|
||||
ld c, $a0
|
||||
.clearOAMLoop
|
||||
ldi [hl], a
|
||||
dec c
|
||||
jr nz, .clearOAMLoop
|
||||
|
||||
; Init BG palette
|
||||
ld a, $fc
|
||||
|
Loading…
Reference in New Issue
Block a user