mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +03:00
Merge pull request #4579 from cam900/csd_args
csd.cpp : Reduce unnecessary address_space, mem_mask arguments in han…
This commit is contained in:
commit
ba161bce5a
@ -116,7 +116,7 @@ void midway_cheap_squeak_deluxe_device::suspend_cpu()
|
|||||||
// stat_r - return the status value
|
// stat_r - return the status value
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
READ8_MEMBER( midway_cheap_squeak_deluxe_device::stat_r )
|
u8 midway_cheap_squeak_deluxe_device::stat_r()
|
||||||
{
|
{
|
||||||
return m_status;
|
return m_status;
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ READ8_MEMBER( midway_cheap_squeak_deluxe_device::stat_r )
|
|||||||
// sr_w - external 4-bit write to the input latch
|
// sr_w - external 4-bit write to the input latch
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
WRITE8_MEMBER( midway_cheap_squeak_deluxe_device::sr_w )
|
void midway_cheap_squeak_deluxe_device::sr_w(u8 data)
|
||||||
{
|
{
|
||||||
m_pia->write_portb(data & 0x0f);
|
m_pia->write_portb(data & 0x0f);
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,8 @@ public:
|
|||||||
void suspend_cpu();
|
void suspend_cpu();
|
||||||
|
|
||||||
// read/write
|
// read/write
|
||||||
DECLARE_READ8_MEMBER(stat_r);
|
u8 stat_r();
|
||||||
DECLARE_WRITE8_MEMBER(sr_w);
|
void sr_w(u8 data);
|
||||||
DECLARE_WRITE_LINE_MEMBER(sirq_w);
|
DECLARE_WRITE_LINE_MEMBER(sirq_w);
|
||||||
DECLARE_WRITE_LINE_MEMBER(reset_w);
|
DECLARE_WRITE_LINE_MEMBER(reset_w);
|
||||||
|
|
||||||
|
@ -389,7 +389,7 @@ WRITE8_MEMBER(mcr3_state::stargrds_op6_w)
|
|||||||
|
|
||||||
READ8_MEMBER(mcr3_state::spyhunt_ip1_r)
|
READ8_MEMBER(mcr3_state::spyhunt_ip1_r)
|
||||||
{
|
{
|
||||||
return ioport("ssio:IP1")->read() | (m_cheap_squeak_deluxe->stat_r(space, 0) << 5);
|
return ioport("ssio:IP1")->read() | (m_cheap_squeak_deluxe->stat_r() << 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -429,7 +429,7 @@ WRITE8_MEMBER(mcr3_state::spyhunt_op4_w)
|
|||||||
m_last_op4 = data;
|
m_last_op4 = data;
|
||||||
|
|
||||||
/* low 5 bits go to control the Cheap Squeak Deluxe */
|
/* low 5 bits go to control the Cheap Squeak Deluxe */
|
||||||
m_cheap_squeak_deluxe->sr_w(space, offset, data & 0x0f);
|
m_cheap_squeak_deluxe->sr_w(data & 0x0f);
|
||||||
m_cheap_squeak_deluxe->sirq_w(BIT(data, 4));
|
m_cheap_squeak_deluxe->sirq_w(BIT(data, 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,7 +414,7 @@ GFXDECODE_END
|
|||||||
|
|
||||||
WRITE8_MEMBER( zwackery_state::pia1_porta_w )
|
WRITE8_MEMBER( zwackery_state::pia1_porta_w )
|
||||||
{
|
{
|
||||||
m_cheap_squeak_deluxe->sr_w(space, 0, data >> 4);
|
m_cheap_squeak_deluxe->sr_w(data >> 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user