mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
h6280.cpp: fix unintended behaviour on timer value latch [Angelo Salese]
This commit is contained in:
parent
ab3e6b1228
commit
2789778c85
@ -2571,7 +2571,9 @@ WRITE8_MEMBER( h6280_device::timer_w )
|
|||||||
switch (offset & 1)
|
switch (offset & 1)
|
||||||
{
|
{
|
||||||
case 0: /* Counter preload */
|
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;
|
return;
|
||||||
|
|
||||||
case 1: /* Counter enable */
|
case 1: /* Counter enable */
|
||||||
|
Loading…
Reference in New Issue
Block a user