Minor refactoring of the CIA TOD code based on the reverse engineer analysis at http://forum.6502.org/viewtopic.php?f=4&t=7418&sid=38219c61eebb1ccd1190624aaf233042&start=30#p96981
Behavior is almost unchanged but it matches more closely what happens in hardware. No regression in the CIA/tod tests for x64sc.
Looks good to me.
If you don't mind, I'll change
(hl == 2) && (hh == 1))to(hh == 1) && (hl == 2))so that you see the12easier. Same for10.Thanks, I committed this change in r43714.