From 75fc06b42370f4941f6f2b21584c6ed2be7ecbab Mon Sep 17 00:00:00 2001 From: hap Date: Wed, 6 Jan 2021 17:17:25 +0100 Subject: s14001a: get rid of compiler warning --- src/devices/sound/s14001a.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/devices/sound/s14001a.cpp b/src/devices/sound/s14001a.cpp index f107b6767bf..50f2ca07eaa 100644 --- a/src/devices/sound/s14001a.cpp +++ b/src/devices/sound/s14001a.cpp @@ -116,17 +116,7 @@ uint8_t Mux8To2(bool bVoicedP2, uint8_t uPPQtrP2, uint8_t uDeltaAdrP2, uint8_t u uDeltaAdrP2 ^= 0x03; // count backwards // emulate 8 to 2 mux to obtain delta from byte (bigendian) - switch (uDeltaAdrP2 & 0x03) - { - case 0x00: - return (uRomDataP2 & 0xC0) >> 6; - case 0x01: - return (uRomDataP2 & 0x30) >> 4; - case 0x02: - return (uRomDataP2 & 0x0C) >> 2; - case 0x03: - return (uRomDataP2 & 0x03) >> 0; - } + return uRomDataP2 >> (~uDeltaAdrP2 << 1 & 0x06) & 0x03; } -- cgit v1.2.3