summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/fidel_clockdiv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/fidel_clockdiv.cpp')
-rw-r--r--src/mame/machine/fidel_clockdiv.cpp22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/mame/machine/fidel_clockdiv.cpp b/src/mame/machine/fidel_clockdiv.cpp
index 26dcd9a78fa..13ec96c2ee1 100644
--- a/src/mame/machine/fidel_clockdiv.cpp
+++ b/src/mame/machine/fidel_clockdiv.cpp
@@ -18,29 +18,14 @@ TODO:
#include "machine/fidel_clockdiv.h"
-// machine start/reset
+// machine start
void fidel_clockdiv_state::machine_start()
{
- // zerofill
- m_div_config = 0;
- m_read_tap = nullptr;
- m_write_tap = nullptr;
-
- // register for savestates
- save_item(NAME(m_div_status));
- save_item(NAME(m_div_config));
- save_item(NAME(m_div_scale));
-
// dummy timer for cpu divider
m_div_timer = machine().scheduler().timer_alloc(timer_expired_delegate(), this);
}
-void fidel_clockdiv_state::machine_reset()
-{
- div_refresh();
-}
-
// input ports
@@ -89,8 +74,7 @@ void fidel_clockdiv_state::div_refresh(ioport_value val)
m_maincpu->set_clock_scale(1.0);
m_div_status = ~0;
- m_div_config = val;
- m_div_scale = (m_div_config & 1) ? 0.25 : 0.5;
+ m_div_scale = (val & 1) ? 0.25 : 0.5;
// stop high frequency background timer if cpu divider is disabled
attotime period = (val) ? attotime::from_hz(m_maincpu->clock()) : attotime::never;
@@ -105,7 +89,7 @@ void fidel_clockdiv_state::div_refresh(ioport_value val)
m_write_tap = nullptr;
}
- if (m_div_config)
+ if (val)
{
address_space &program = m_maincpu->space(AS_PROGRAM);