summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-07-04 09:24:58 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-07-04 09:26:03 -0400
commitc1bef3b1d270eaf10e6125606d6e9f9c72871f5f (patch)
tree035b30754d46980a08de3100bf845c33e5ac3478
parentb1e205081cc775de4fe194487eb6e1690e37b03e (diff)
eprom: Fix MT 07691
-rw-r--r--src/mame/drivers/eprom.cpp9
-rw-r--r--src/mame/includes/eprom.h1
2 files changed, 3 insertions, 7 deletions
diff --git a/src/mame/drivers/eprom.cpp b/src/mame/drivers/eprom.cpp
index 4521a775625..fd2336f9837 100644
--- a/src/mame/drivers/eprom.cpp
+++ b/src/mame/drivers/eprom.cpp
@@ -44,11 +44,8 @@
void eprom_state::video_int_ack_w(uint16_t data)
{
m_maincpu->set_input_line(M68K_IRQ_4, CLEAR_LINE);
-}
-
-void eprom_state::video_int_ack_extra_w(uint16_t data)
-{
- m_extra->set_input_line(M68K_IRQ_4, CLEAR_LINE);
+ if (m_extra.found())
+ m_extra->set_input_line(M68K_IRQ_4, CLEAR_LINE);
}
void eprom_state::machine_start()
@@ -198,7 +195,7 @@ void eprom_state::extra_map(address_map &map)
map(0x260010, 0x26001f).portr("260010");
map(0x260020, 0x260027).mirror(0x8).r(FUNC(eprom_state::adc_r)).umask16(0x00ff);
map(0x260031, 0x260031).r(m_jsa, FUNC(atari_jsa_base_device::main_response_r));
- map(0x360000, 0x360001).w(FUNC(eprom_state::video_int_ack_extra_w));
+ map(0x360000, 0x360001).w(FUNC(eprom_state::video_int_ack_w));
map(0x360011, 0x360011).w(FUNC(eprom_state::eprom_latch_w));
map(0x360020, 0x360021).w(m_jsa, FUNC(atari_jsa_base_device::sound_reset_w));
map(0x360031, 0x360031).w(m_jsa, FUNC(atari_jsa_base_device::main_command_w));
diff --git a/src/mame/includes/eprom.h b/src/mame/includes/eprom.h
index 6ac451644c2..d17085ab57c 100644
--- a/src/mame/includes/eprom.h
+++ b/src/mame/includes/eprom.h
@@ -45,7 +45,6 @@ protected:
virtual void machine_start() override;
virtual void machine_reset() override;
void video_int_ack_w(uint16_t data);
- void video_int_ack_extra_w(uint16_t data);
TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
uint8_t adc_r(offs_t offset);
void eprom_latch_w(uint8_t data);