diff options
Diffstat (limited to 'src/mame/audio/timeplt.cpp')
-rw-r--r-- | src/mame/audio/timeplt.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/audio/timeplt.cpp b/src/mame/audio/timeplt.cpp index 04b206d6246..fd4d7581e22 100644 --- a/src/mame/audio/timeplt.cpp +++ b/src/mame/audio/timeplt.cpp @@ -95,7 +95,7 @@ READ8_MEMBER( timeplt_audio_device::portB_r ) * *************************************/ -void timeplt_audio_device::filter_w(filter_rc_device &device, int data) +void timeplt_audio_device::set_filter(filter_rc_device &device, int data) { int C = 0; @@ -110,12 +110,12 @@ void timeplt_audio_device::filter_w(filter_rc_device &device, int data) WRITE8_MEMBER( timeplt_audio_device::filter_w ) { - filter_w(*m_filter_1[0], (offset >> 0) & 3); - filter_w(*m_filter_1[1], (offset >> 2) & 3); - filter_w(*m_filter_1[2], (offset >> 4) & 3); - filter_w(*m_filter_0[0], (offset >> 6) & 3); - filter_w(*m_filter_0[1], (offset >> 8) & 3); - filter_w(*m_filter_0[2], (offset >> 10) & 3); + set_filter(*m_filter_1[0], (offset >> 0) & 3); + set_filter(*m_filter_1[1], (offset >> 2) & 3); + set_filter(*m_filter_1[2], (offset >> 4) & 3); + set_filter(*m_filter_0[0], (offset >> 6) & 3); + set_filter(*m_filter_0[1], (offset >> 8) & 3); + set_filter(*m_filter_0[2], (offset >> 10) & 3); } @@ -166,7 +166,7 @@ void timeplt_audio_device::timeplt_sound_map(address_map &map) map(0x5000, 0x5000).mirror(0x0fff).w("ay1", FUNC(ay8910_device::address_w)); map(0x6000, 0x6000).mirror(0x0fff).rw("ay2", FUNC(ay8910_device::data_r), FUNC(ay8910_device::data_w)); map(0x7000, 0x7000).mirror(0x0fff).w("ay2", FUNC(ay8910_device::address_w)); - map(0x8000, 0xffff).w(this, FUNC(timeplt_audio_device::filter_w)); + map(0x8000, 0xffff).w(FUNC(timeplt_audio_device::filter_w)); } @@ -174,7 +174,7 @@ void locomotn_audio_device::locomotn_sound_map(address_map &map) { map(0x0000, 0x1fff).rom(); map(0x2000, 0x23ff).mirror(0x0c00).ram(); - map(0x3000, 0x3fff).w(this, FUNC(locomotn_audio_device::filter_w)); + map(0x3000, 0x3fff).w(FUNC(locomotn_audio_device::filter_w)); map(0x4000, 0x4000).mirror(0x0fff).rw("ay1", FUNC(ay8910_device::data_r), FUNC(ay8910_device::data_w)); map(0x5000, 0x5000).mirror(0x0fff).w("ay1", FUNC(ay8910_device::address_w)); map(0x6000, 0x6000).mirror(0x0fff).rw("ay2", FUNC(ay8910_device::data_r), FUNC(ay8910_device::data_w)); |