From a679ba38190bfed6ae150a12e819ad7527c495d1 Mon Sep 17 00:00:00 2001 From: sik Date: Sun, 5 Mar 2017 20:57:11 -0300 Subject: Upgrade! --- src-z80/player/psg.z80 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-z80/player/psg.z80') diff --git a/src-z80/player/psg.z80 b/src-z80/player/psg.z80 index f0c5a76..b88978c 100644 --- a/src-z80/player/psg.z80 +++ b/src-z80/player/psg.z80 @@ -46,7 +46,7 @@ UpdatePSG: cp $FF ; Loop envelope? jp z, .envloop - ld iyl, b ; Keep byte safe somewhere... + ld iyl, b ; Keep byte safe somewhere... PollPCM ex de, hl ; Store new address @@ -61,6 +61,7 @@ UpdatePSG: PollPCM db $FD,$7D ; ld a, iyl ; Mix envelope with volume + and $0F add b ld b, a -- cgit v1.2.3