diff options
author | hap <happppp@users.noreply.github.com> | 2020-01-25 14:08:09 +0100 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2020-01-25 14:08:22 +0100 |
commit | 2e570a9a6ebe4d92e922b8b01d71551bbf629324 (patch) | |
tree | 3f35e8631cf97c68c20238f29dc764d5d844d78b | |
parent | 93c05f94d1dddfd757073acd15a519b846dbd27e (diff) |
m68705prg: fix output-before-reset problem (nw)
-rw-r--r-- | src/mame/drivers/m68705prg.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/drivers/m68705prg.cpp b/src/mame/drivers/m68705prg.cpp index 77b080f65a7..80b07e07cf5 100644 --- a/src/mame/drivers/m68705prg.cpp +++ b/src/mame/drivers/m68705prg.cpp @@ -107,11 +107,14 @@ protected: m_addr = 0x0000; m_pb_val = 0xff; + m_input_poll_timer->adjust(attotime::from_hz(120), 0, attotime::from_hz(120)); + } + + virtual void machine_reset() override + { m_digits[0] = s_7seg[(m_addr >> 0) & 0x0f]; m_digits[1] = s_7seg[(m_addr >> 4) & 0x0f]; m_digits[2] = s_7seg[(m_addr >> 8) & 0x0f]; - - m_input_poll_timer->adjust(attotime::from_hz(120), 0, attotime::from_hz(120)); } required_ioport m_sw; @@ -174,6 +177,8 @@ protected: virtual void machine_reset() override { + m68705prg_state_base::machine_reset(); + m_sw->field(0x01)->live().value = 0; m_sw->field(0x02)->live().value = 0; |