From 7b752230e31d50c3521a0a76e7ef7a233a1cff57 Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 13 Sep 2018 13:34:02 -0400 Subject: act5a: Better way to reset cursor blink (nw) --- src/mame/drivers/microterm_f8.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/microterm_f8.cpp b/src/mame/drivers/microterm_f8.cpp index 88d512db37f..878b9c96c81 100644 --- a/src/mame/drivers/microterm_f8.cpp +++ b/src/mame/drivers/microterm_f8.cpp @@ -256,6 +256,15 @@ bool microterm_f8_state::poll_keyboard() READ8_MEMBER(microterm_f8_state::key_r) { + // Cursor is supposed to stop blinking temporarily when keys are depressed + // This implementation suspends cursor blinking when keys are actually read + // It also suspends blinking text, which perhaps is supposed to happen + if (!machine().side_effects_disabled()) + { + m_blinkcount->reset_w(1); + m_blinkcount->reset_w(0); + } + return m_keylatch; } @@ -276,11 +285,6 @@ READ8_MEMBER(microterm_f8_state::port00_r) WRITE8_MEMBER(microterm_f8_state::port00_w) { m_port00 = data; - - // Cursor is supposed to stop blinking temporarily when keys are depressed - // This implementation suspends cursor blinking when keys are acknowledged and the cursor is repositioned - // It also suspends blinking text, which perhaps is supposed to happen - m_blinkcount->reset_w(BIT(data, 0)); } READ8_MEMBER(microterm_f8_state::port01_r) -- cgit v1.2.3