summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h6280
diff options
context:
space:
mode:
author angelosa <lordkale4@gmail.com>2019-08-15 17:28:59 +0200
committer angelosa <lordkale4@gmail.com>2019-08-15 17:28:59 +0200
commit2789778c855a9a88e23ea84d95cf520a46b641bd (patch)
tree6f9157585a1fd8db964d43ad421894fa54e54e85 /src/devices/cpu/h6280
parentab3e6b12285b592233caad426ffa896b74d40d68 (diff)
h6280.cpp: fix unintended behaviour on timer value latch [Angelo Salese]
Diffstat (limited to 'src/devices/cpu/h6280')
-rw-r--r--src/devices/cpu/h6280/h6280.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/cpu/h6280/h6280.cpp b/src/devices/cpu/h6280/h6280.cpp
index b30d7d5a78d..32c7a0578fa 100644
--- a/src/devices/cpu/h6280/h6280.cpp
+++ b/src/devices/cpu/h6280/h6280.cpp
@@ -2571,7 +2571,9 @@ WRITE8_MEMBER( h6280_device::timer_w )
switch (offset & 1)
{
case 0: /* Counter preload */
- m_timer_load = m_timer_value = ((data & 127) + 1) * 1024;
+ //m_timer_load = m_timer_value = ((data & 127) + 1) * 1024;
+ // matches HW behaviour, value is latched only with 0->1 counter enable transition
+ m_timer_load = ((data & 127) + 1) * 1024;
return;
case 1: /* Counter enable */