summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-04-07 10:44:05 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-04-07 10:44:08 -0400
commit8007f158a97332814bce13253af6ce518fe73e26 (patch)
tree9f6f0e511348e8d28474a9dabb2694031fd8f2c1
parentcc401b0641b1a4bf3b4ab6ef93699e723a9ec55f (diff)
gdfs: Flip-flop is probably not needed here (nw)
adc0808: Allow side effect disabling for reads (nw)
-rw-r--r--src/devices/machine/adc0808.cpp11
-rw-r--r--src/mame/drivers/ssv.cpp4
2 files changed, 8 insertions, 7 deletions
diff --git a/src/devices/machine/adc0808.cpp b/src/devices/machine/adc0808.cpp
index 2e45b377ae0..b74939b83c5 100644
--- a/src/devices/machine/adc0808.cpp
+++ b/src/devices/machine/adc0808.cpp
@@ -146,11 +146,14 @@ void adc0808_device::device_timer(emu_timer &timer, device_timer_id id, int para
READ8_MEMBER( adc0808_device::data_r )
{
- if (VERBOSE)
- logerror("data_r: %02x\n", m_sar);
+ if (!machine().side_effects_disabled())
+ {
+ if (VERBOSE)
+ logerror("data_r: %02x\n", m_sar);
- // oe connected to flip-flop clear
- m_eoc_ff_cb(0);
+ // oe connected to flip-flop clear
+ m_eoc_ff_cb(0);
+ }
return m_sar;
}
diff --git a/src/mame/drivers/ssv.cpp b/src/mame/drivers/ssv.cpp
index 6f2dee36d59..4427b778d1c 100644
--- a/src/mame/drivers/ssv.cpp
+++ b/src/mame/drivers/ssv.cpp
@@ -2625,8 +2625,6 @@ MACHINE_CONFIG_START(ssv_state::gdfs)
/* basic machine hardware */
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(gdfs_map)
- MCFG_TIMER_MODIFY("scantimer")
- MCFG_TIMER_DRIVER_CALLBACK(ssv_state, interrupt)
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
@@ -2635,7 +2633,7 @@ MACHINE_CONFIG_START(ssv_state::gdfs)
MCFG_ADC0808_IN1_CB(IOPORT("GUNY1"))
MCFG_ADC0808_IN2_CB(IOPORT("GUNX2"))
MCFG_ADC0808_IN3_CB(IOPORT("GUNY2"))
- MCFG_ADC0808_EOC_FF_CB(WRITELINE(ssv_state, gdfs_adc_int_w))
+ MCFG_ADC0808_EOC_CB(WRITELINE(ssv_state, gdfs_adc_int_w))
/* video hardware */
MCFG_SCREEN_MODIFY("screen")