diff options
Diffstat (limited to 'src/mame/machine/taitoio.cpp')
-rw-r--r-- | src/mame/machine/taitoio.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mame/machine/taitoio.cpp b/src/mame/machine/taitoio.cpp index ae754907687..86d4d4d3a12 100644 --- a/src/mame/machine/taitoio.cpp +++ b/src/mame/machine/taitoio.cpp @@ -65,6 +65,7 @@ tc0220ioc_device::tc0220ioc_device(const machine_config &mconfig, const char *ta m_read_1_cb(*this), m_read_2_cb(*this), m_read_3_cb(*this), + m_write_3_cb(*this), m_read_7_cb(*this) { } @@ -79,6 +80,7 @@ void tc0220ioc_device::device_start() m_read_1_cb.resolve_safe(0); m_read_2_cb.resolve_safe(0); m_read_3_cb.resolve_safe(0); + m_write_3_cb.resolve_safe(); m_read_7_cb.resolve_safe(0); save_item(NAME(m_regs)); @@ -146,6 +148,10 @@ WRITE8_MEMBER( tc0220ioc_device::write ) m_watchdog->watchdog_reset(); break; + case 0x03: + m_write_3_cb(data); + break; + case 0x04: /* coin counters and lockout, hi nibble irrelevant */ machine().bookkeeping().coin_lockout_w(0, ~data & 0x01); @@ -200,6 +206,7 @@ tc0510nio_device::tc0510nio_device(const machine_config &mconfig, const char *ta m_read_1_cb(*this), m_read_2_cb(*this), m_read_3_cb(*this), + m_write_3_cb(*this), m_read_7_cb(*this) { } @@ -214,6 +221,7 @@ void tc0510nio_device::device_start() m_read_1_cb.resolve_safe(0); m_read_2_cb.resolve_safe(0); m_read_3_cb.resolve_safe(0); + m_write_3_cb.resolve_safe(); m_read_7_cb.resolve_safe(0); save_item(NAME(m_regs)); @@ -279,6 +287,10 @@ WRITE8_MEMBER( tc0510nio_device::write ) m_watchdog->watchdog_reset(); break; + case 0x03: + m_write_3_cb(data); + break; + case 0x04: /* coin counters and lockout */ machine().bookkeeping().coin_lockout_w(0, ~data & 0x01); machine().bookkeeping().coin_lockout_w(1, ~data & 0x02); |