summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar cam900 <dbtlrchl@naver.com>2019-02-02 14:16:18 +0900
committerGravatarGravatar cam900 <dbtlrchl@naver.com>2019-02-02 14:16:18 +0900
commit052d3a7903bf1abfe8a583dde8e8c6806c3c7edd (patch) (github)
tree55dac43e284817d36a34e7a62dc45127ea4c603d
parentaf1574c8837402e7fcc02a9da61c2b2c31a2da74 (diff)
downloadmame-052d3a7903bf1abfe8a583dde8e8c6806c3c7edd.tar.bz2
mame-052d3a7903bf1abfe8a583dde8e8c6806c3c7edd.zip
csd.cpp : Reduce unnecessary address_space, mem_mask arguments in handlers
-rw-r--r--src/mame/audio/csd.cpp4
-rw-r--r--src/mame/audio/csd.h4
-rw-r--r--src/mame/drivers/mcr3.cpp4
-rw-r--r--src/mame/drivers/zwackery.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/audio/csd.cpp b/src/mame/audio/csd.cpp
index 416c3143353..d770de8cd5d 100644
--- a/src/mame/audio/csd.cpp
+++ b/src/mame/audio/csd.cpp
@@ -116,7 +116,7 @@ void midway_cheap_squeak_deluxe_device::suspend_cpu()
// 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;
}
@@ -125,7 +125,7 @@ READ8_MEMBER( midway_cheap_squeak_deluxe_device::stat_r )
// 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);
}
diff --git a/src/mame/audio/csd.h b/src/mame/audio/csd.h
index 0fb5a2f16a7..c532863e151 100644
--- a/src/mame/audio/csd.h
+++ b/src/mame/audio/csd.h
@@ -32,8 +32,8 @@ public:
void suspend_cpu();
// read/write
- DECLARE_READ8_MEMBER(stat_r);
- DECLARE_WRITE8_MEMBER(sr_w);
+ u8 stat_r();
+ void sr_w(u8 data);
DECLARE_WRITE_LINE_MEMBER(sirq_w);
DECLARE_WRITE_LINE_MEMBER(reset_w);
diff --git a/src/mame/drivers/mcr3.cpp b/src/mame/drivers/mcr3.cpp
index 0822ae5f749..a1bb1aadb9d 100644
--- a/src/mame/drivers/mcr3.cpp
+++ b/src/mame/drivers/mcr3.cpp
@@ -389,7 +389,7 @@ WRITE8_MEMBER(mcr3_state::stargrds_op6_w)
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;
/* 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));
}
diff --git a/src/mame/drivers/zwackery.cpp b/src/mame/drivers/zwackery.cpp
index 3f3a2923cd7..776d63ac3aa 100644
--- a/src/mame/drivers/zwackery.cpp
+++ b/src/mame/drivers/zwackery.cpp
@@ -414,7 +414,7 @@ GFXDECODE_END
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);
}