From 9e0a507726073b5ec2a9ed8aa93dd0657c507daa Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Thu, 10 May 2018 15:50:25 +0000 Subject: [PATCH] Added stub for the undocumented DSP command 0xE2. --- bochs/iodev/sound/sb16.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bochs/iodev/sound/sb16.cc b/bochs/iodev/sound/sb16.cc index 41a3f6d22..5804d23e6 100644 --- a/bochs/iodev/sound/sb16.cc +++ b/bochs/iodev/sound/sb16.cc @@ -740,6 +740,7 @@ void bx_sb16_c::dsp_datawrite(Bit32u value) case 0x40: case 0x38: case 0xe0: + case 0xe2: case 0xe4: case 0xf9: bytesneeded = 1; @@ -1152,6 +1153,13 @@ void bx_sb16_c::dsp_datawrite(Bit32u value) } break; + case 0xe2: + DSP.datain.get(&value8); + // TODO + writelog(WAVELOG(3), "undocumented DSP command %x ignored (value = 0x%02x)", + DSP.datain.currentcommand(), value8); + break; + case 0xe3: // none, output: Copyright string // the Windows driver needs the exact text, otherwise it