mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
s14001a: get rid of compiler warning
This commit is contained in:
parent
f6031017f6
commit
75fc06b423
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user