summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-11-12 10:36:07 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-11-12 10:36:07 -0500
commitccb1f70feaffcf4edc40ae7c4e4c71627ee43eda (patch)
treec3bab210c2c1ee686697492f7636564cf5648346
parente92b31863abdbec577f1085f5fc4de2c9a4a0a1c (diff)
m72.cpp: Miscellaneous cruft removal (nw)
-rw-r--r--src/mame/drivers/m72.cpp16
-rw-r--r--src/mame/includes/m72.h2
2 files changed, 2 insertions, 16 deletions
diff --git a/src/mame/drivers/m72.cpp b/src/mame/drivers/m72.cpp
index bdd3c946c47..1d0c385a0c9 100644
--- a/src/mame/drivers/m72.cpp
+++ b/src/mame/drivers/m72.cpp
@@ -341,13 +341,6 @@ READ8_MEMBER(m72_state::mcu_data_r)
return (m_dpram->right_r(space, offset >> 1) >> (BIT(offset, 0) ? 8 : 0)) & 0xff;
}
-INTERRUPT_GEN_MEMBER(m72_state::mcu_int)
-{
- //m_mcu_snd_cmd_latch |= 0x11; /* 0x10 is special as well - FIXME */
- //m_mcu_snd_cmd_latch = 0x11;// | (machine().rand() & 1); /* 0x10 is special as well - FIXME */
- device.execute().set_input_line(1, ASSERT_LINE);
-}
-
READ8_MEMBER(m72_state::mcu_sample_r)
{
uint8_t sample;
@@ -358,12 +351,9 @@ READ8_MEMBER(m72_state::mcu_sample_r)
WRITE8_MEMBER(m72_state::mcu_port1_w)
{
m_mcu_sample_latch = data;
- m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
-}
-WRITE8_MEMBER(m72_state::mcu_port3_w)
-{
- logerror("port3: %02x\n", data);
+ // FIXME: this can't be the NMI trigger
+ m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
WRITE8_MEMBER(m72_state::mcu_low_w)
@@ -1888,8 +1878,6 @@ MACHINE_CONFIG_START(m72_state::m72_8751)
MCFG_DEVICE_ADD("mcu", I8751, XTAL(8'000'000)) /* Uses its own XTAL */
MCFG_DEVICE_IO_MAP(mcu_io_map)
MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, m72_state, mcu_port1_w))
- MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, m72_state, mcu_port3_w))
- //MCFG_DEVICE_VBLANK_INT_DRIVER("screen", m72_state, mcu_int)
MACHINE_CONFIG_END
diff --git a/src/mame/includes/m72.h b/src/mame/includes/m72.h
index d8acdd078bb..9f24463e962 100644
--- a/src/mame/includes/m72.h
+++ b/src/mame/includes/m72.h
@@ -154,7 +154,6 @@ private:
DECLARE_READ8_MEMBER(mcu_data_r);
DECLARE_READ8_MEMBER(mcu_sample_r);
DECLARE_WRITE8_MEMBER(mcu_port1_w);
- DECLARE_WRITE8_MEMBER(mcu_port3_w);
DECLARE_WRITE8_MEMBER(mcu_low_w);
DECLARE_WRITE8_MEMBER(mcu_high_w);
DECLARE_READ8_MEMBER(snd_cpu_sample_r);
@@ -202,7 +201,6 @@ private:
DECLARE_MACHINE_START(kengo);
DECLARE_MACHINE_RESET(kengo);
- INTERRUPT_GEN_MEMBER(mcu_int);
INTERRUPT_GEN_MEMBER(fake_nmi);
TIMER_CALLBACK_MEMBER(synch_callback);
TIMER_CALLBACK_MEMBER(scanline_interrupt);