From 4faab6f75c53ae67f41186e3bed5bf53d5c2ab5d Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 3 Jun 2017 10:03:07 +0100 Subject: [PATCH] Correct fix for SB DSP command 0xf8. --- src/sound_sb_dsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound_sb_dsp.c b/src/sound_sb_dsp.c index 5b2a326..b0dbe1d 100644 --- a/src/sound_sb_dsp.c +++ b/src/sound_sb_dsp.c @@ -503,11 +503,11 @@ void sb_exec_command(sb_dsp_t *dsp) // pclog("ASP read reg %02X %02X\n", sb_data[0], sb_asp_regs[sb_data[0]]); break; case 0xF8: - if (dsp->sb_type < SB16) break; + if (dsp->sb_type >= SB16) break; sb_add_data(dsp, 0); break; case 0xF9: - if (dsp->sb_type >= SB16) break; + if (dsp->sb_type < SB16) break; if (dsp->sb_data[0] == 0x0e) sb_add_data(dsp, 0xff); else if (dsp->sb_data[0] == 0x0f) sb_add_data(dsp, 0x07); else if (dsp->sb_data[0] == 0x37) sb_add_data(dsp, 0x38);