diff options
| author | Javier Degirolmo | 2012-04-07 20:28:18 -0300 |
|---|---|---|
| committer | Javier Degirolmo | 2012-04-07 20:28:18 -0300 |
| commit | da98253489b1334f9d23f477ec8fa2a76e664aa6 (patch) | |
| tree | 4187354505c4c3314db8d5b414cd698c501be1a4 /src-z80/core/sfx.z80 | |
| parent | efd1677ed70a4e0acbae05ae3bc0d9b14b8c1405 (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/core/sfx.z80')
| -rw-r--r-- | src-z80/core/sfx.z80 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src-z80/core/sfx.z80 b/src-z80/core/sfx.z80 index d008f0b..6eb844d 100644 --- a/src-z80/core/sfx.z80 +++ b/src-z80/core/sfx.z80 @@ -299,6 +299,24 @@ ClearSFX: ld b, (hl) call SetFMVolLoad pop bc + + ld a, b + and $04 + rrca + ld iyl, a + + push bc ; Restore BGM FM panning + ld a, b + ld h, RAM_BGMFMPan>>8 + add RAM_BGMFMPan&$FF + ld l, a + ld a, b + ld b, (hl) + and $03 + add $B4 + ld (iy+0), b + ld (iy+1), a + pop bc PollPCM inc b |
