A few conversions to bitswap<4> (nw)

This commit is contained in:
AJR 2017-12-27 13:10:28 -05:00
parent c6d3b14aa5
commit c573e3262b
2 changed files with 3 additions and 9 deletions

View File

@ -148,14 +148,8 @@ WRITE8_MEMBER(ls157_device::interleave_w)
void ls157_device::interleave_w(u8 data)
{
m_b = ((data >> 4) & 8)
| ((data >> 3) & 4)
| ((data >> 2) & 2)
| ((data >> 1) & 1);
m_a = ((data >> 3) & 8)
| ((data >> 2) & 4)
| ((data >> 1) & 2)
| ((data >> 0) & 1);
m_b = bitswap<4>(data, 7, 5, 3, 1);
m_a = bitswap<4>(data, 6, 4, 2, 0);
update_output();
}

View File

@ -264,7 +264,7 @@ WRITE8_MEMBER(mcr3_state::maxrpm_op6_w)
/* when both the write and the enable are low, it's a write to the ADC0844 */
if (!(data & 0x40) && !(data & 0x20))
m_maxrpm_adc->write(space, 0, bitswap<8>(m_maxrpm_adc_control, 7, 6, 5, 4, 2, 3, 1, 0));
m_maxrpm_adc->write(space, 0, bitswap<4>(m_maxrpm_adc_control, 2, 3, 1, 0));
/* low 5 bits control the turbo CS */
m_turbo_cheap_squeak->write(space, offset, data);