From e652ab5279f8d0667416ad7110a25ca9179e25dd Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 14 Sep 2020 19:48:06 +0200 Subject: mcs48: fix a regression with previous change to strt_cnt --- src/devices/cpu/mcs48/mcs48.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/mcs48/mcs48.cpp b/src/devices/cpu/mcs48/mcs48.cpp index f43e25e7986..58f3d31b150 100644 --- a/src/devices/cpu/mcs48/mcs48.cpp +++ b/src/devices/cpu/mcs48/mcs48.cpp @@ -889,10 +889,10 @@ OPHANDLER( stop_tcnt ) { burn_cycles(1); m_timecount_enabled = 0; } OPHANDLER( strt_t ) { burn_cycles(1); m_timecount_enabled = TIMER_ENABLED; m_prescaler = 0; } OPHANDLER( strt_cnt ) { + burn_cycles(1); if (!(m_timecount_enabled & COUNTER_ENABLED)) m_t1_history = test_r(1); - burn_cycles(1); m_timecount_enabled = COUNTER_ENABLED; } -- cgit v1.2.3