diff options
| author | Javier Degirolmo | 2011-12-07 19:58:15 -0300 |
|---|---|---|
| committer | Javier Degirolmo | 2011-12-07 19:58:15 -0300 |
| commit | 84ca3186406f65f65a18b18130dcecab2c78e2d3 (patch) | |
| tree | 1419cf0a3e2d7baf235b1e3f5574e2be9177b7b7 /src-z80/core/bgm.z80 | |
| parent | 4f1d28c46ba1b4d7e9b3a7ef81e4ec7820eb041f (diff) | |
Some updates... Trying to fix SFX restoring but still broken
Diffstat (limited to 'src-z80/core/bgm.z80')
| -rw-r--r-- | src-z80/core/bgm.z80 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src-z80/core/bgm.z80 b/src-z80/core/bgm.z80 index c1650f1..ebda240 100644 --- a/src-z80/core/bgm.z80 +++ b/src-z80/core/bgm.z80 @@ -41,8 +41,17 @@ PlayBGM: ld hl, ProcessBGM ; Tell Echo to process BGM ld (DoTick_BGM+1), hl + + ld b, 8 ; Kill all FM channels explicitly +.resetallfm: + ld a, b + and $04 + rrca + ld iyl, a + ld a, b + call KillFM + djnz .resetallfm - PollPCM jp IdleLoop ; End of subroutine ;**************************************************************************** @@ -244,7 +253,8 @@ ClearBGM: .resetfm: PollPCM - xor a ; Reset BGM volume + ;xor a ; Reset BGM volume + ld a, $7F ld (de), a dec e |
