mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
Merge pull request #3641 from pmackinlay/interpro
mc146818: don't restart timer unnecessarily (nw)
This commit is contained in:
commit
9b5db920ff
@ -582,8 +582,11 @@ WRITE8_MEMBER( mc146818_device::write )
|
||||
|
||||
case REG_A:
|
||||
// top bit of A is read only
|
||||
m_data[REG_A] = data & ~REG_A_UIP;
|
||||
update_timer();
|
||||
if ((data ^ m_data[REG_A]) & ~REG_A_UIP)
|
||||
{
|
||||
m_data[REG_A] = data & ~REG_A_UIP;
|
||||
update_timer();
|
||||
}
|
||||
break;
|
||||
|
||||
case REG_B:
|
||||
|
Loading…
Reference in New Issue
Block a user