From a5c6f014ccb4780502d7555401452b48ab705b8d Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 11 Nov 2013 12:59:54 +0000 Subject: [PATCH] Add small delay when raising IRQ, fixes Llamatron 2012 and Lemmings 3D. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3845 --- src/hardware/sblaster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware/sblaster.cpp b/src/hardware/sblaster.cpp index 49fbea22..b3104696 100644 --- a/src/hardware/sblaster.cpp +++ b/src/hardware/sblaster.cpp @@ -984,7 +984,8 @@ static void DSP_DoCommand(void) { DSP_AddData(sb.dsp.test_register);; break; case 0xf2: /* Trigger 8bit IRQ */ - SB_RaiseIRQ(SB_IRQ_8); + //Small delay in order to emulate the slowness of the DSP, fixes Llamatron 2012 and Lemmings 3D + PIC_AddEvent(&DSP_RaiseIRQEvent,0.01f); break; case 0xf3: /* Trigger 16bit IRQ */ DSP_SB16_ONLY;