]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Restore original "is RTC ticking" bit emulation, PIC_TickIndex() works now.
authorToni Wilen <twilen@winuae.net>
Sat, 5 Sep 2015 11:56:21 +0000 (14:56 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 5 Sep 2015 11:56:21 +0000 (14:56 +0300)
dosbox/cmos.cpp

index 370d6621cdc7bb4613e6eec40e76b077cc35ba3e..3b66ec6fe8d1b531c4f7ab02f822b3659f4a702c 100644 (file)
@@ -203,7 +203,7 @@ static Bitu cmos_readreg2(Bitu port,Bitu iolen) {
                                return (cmos.regs[0x0a] & 0x7f);
                        }
                } else {
-                       if (vblank_hz > 0 && (timeframes % (int)vblank_hz) == 0 && vpos == 0) { // && PIC_TickIndex()<0.002) {
+                       if (PIC_TickIndex()<0.002) {
                                return (cmos.regs[0x0a]&0x7f) | 0x80;
                        } else {
                                return (cmos.regs[0x0a]&0x7f);