Fixed bugs; and, improved the efficiency of some pce library functions.

This commit is contained in:
Greg King
2015-11-26 15:06:20 -05:00
committed by Oliver Schmidt
parent 959eff34a3
commit 39694d0aaa
16 changed files with 158 additions and 229 deletions

View File

@@ -4,8 +4,8 @@
.segment "ONCE"
psg_init:
clx
stz PSG_GLOBAL_PAN ; Silence global balance
ldx #6 - 1
psg_clear_loop:
stx PSG_CHAN_SELECT ; Select channel
@@ -17,14 +17,12 @@ psg_clear_loop:
stz PSG_LFO_FREQ ; Clear LFO frequency
stz PSG_LFO_CTRL ; Clear LFO control
cly
ldy #$20
psg_clear_waveform:
stz PSG_CHAN_DATA ; Clear waveform byte
iny
cpy #$20
dey
bne psg_clear_waveform
inx
cpx #$06
bne psg_clear_loop
dex
bpl psg_clear_loop
rts