aboutsummaryrefslogtreecommitdiff
path: root/src-z80/player/psg.z80
diff options
context:
space:
mode:
authorJavier Degirolmo2012-04-07 20:28:18 -0300
committerJavier Degirolmo2012-04-07 20:28:18 -0300
commitda98253489b1334f9d23f477ec8fa2a76e664aa6 (patch)
tree4187354505c4c3314db8d5b414cd698c501be1a4 /src-z80/player/psg.z80
parentefd1677ed70a4e0acbae05ae3bc0d9b14b8c1405 (diff)
Bugfixes (especially killing FM channels), panning is restored, version bumped up to 0.9 - going to look mainly for bugs now...
Diffstat (limited to 'src-z80/player/psg.z80')
-rw-r--r--src-z80/player/psg.z806
1 files changed, 2 insertions, 4 deletions
diff --git a/src-z80/player/psg.z80 b/src-z80/player/psg.z80
index 46df82a..f0c5a76 100644
--- a/src-z80/player/psg.z80
+++ b/src-z80/player/psg.z80
@@ -573,8 +573,6 @@ SetNotePSGBGM:
push hl
and $0F ; Check if channel is free
- ;ld hl, RAM_Locked
- ;add l
ld h, RAM_Locked>>8
add RAM_Locked&$FF
ld l, a
@@ -640,14 +638,14 @@ SetNoteNoiseBGM:
;****************************************************************************
LockChannelPSG:
+ and $03
ld b, a
PollPCM
push hl
ld h, RAM_Locked>>8 ; Get address of channel to lock
ld a, b
- and $0F
- add RAM_Locked&$FF
+ add (RAM_Locked&$FF)+8
ld l, a
ld (hl), $01 ; Lock channel