From 380f9931ca1b84011b4534b92a52527960db781b Mon Sep 17 00:00:00 2001 From: Andrew Gardner Date: Thu, 17 Jan 2013 17:12:17 +0000 Subject: [PATCH] Switch -> if. (nw) --- src/emu/cpu/dsp16/dsp16ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/cpu/dsp16/dsp16ops.c b/src/emu/cpu/dsp16/dsp16ops.c index 872a096a8bf..778d0b7b1af 100644 --- a/src/emu/cpu/dsp16/dsp16ops.c +++ b/src/emu/cpu/dsp16/dsp16ops.c @@ -540,10 +540,10 @@ void dsp16_device::execute_one(const UINT16& op, UINT8& cycles, UINT8& pcAdvance const UINT8 CON = (op & 0x001f); bool conditionFulfilled = conditionTest(CON); cycles = 3; // TODO: This may need to interact with the next opcode to make sure it doesn't exceed 3? - switch (conditionFulfilled) + pcAdvance = 1; + if (!conditionFulfilled) { - case true: pcAdvance = 1; break; - case false: pcAdvance = 2; break; + pcAdvance = 2; } break; }