Merge pull request #3641 from pmackinlay/interpro

mc146818: don't restart timer unnecessarily (nw)
This commit is contained in:
Robert 2018-06-07 23:19:11 +10:00 committed by GitHub
commit 9b5db920ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: