mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
A few conversions to bitswap<4> (nw)
This commit is contained in:
parent
c6d3b14aa5
commit
c573e3262b
@ -148,14 +148,8 @@ WRITE8_MEMBER(ls157_device::interleave_w)
|
|||||||
|
|
||||||
void ls157_device::interleave_w(u8 data)
|
void ls157_device::interleave_w(u8 data)
|
||||||
{
|
{
|
||||||
m_b = ((data >> 4) & 8)
|
m_b = bitswap<4>(data, 7, 5, 3, 1);
|
||||||
| ((data >> 3) & 4)
|
m_a = bitswap<4>(data, 6, 4, 2, 0);
|
||||||
| ((data >> 2) & 2)
|
|
||||||
| ((data >> 1) & 1);
|
|
||||||
m_a = ((data >> 3) & 8)
|
|
||||||
| ((data >> 2) & 4)
|
|
||||||
| ((data >> 1) & 2)
|
|
||||||
| ((data >> 0) & 1);
|
|
||||||
update_output();
|
update_output();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 */
|
/* when both the write and the enable are low, it's a write to the ADC0844 */
|
||||||
if (!(data & 0x40) && !(data & 0x20))
|
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 */
|
/* low 5 bits control the turbo CS */
|
||||||
m_turbo_cheap_squeak->write(space, offset, data);
|
m_turbo_cheap_squeak->write(space, offset, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user