From 6864ad6c786b246303605b7f89926b0fd51d356e Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 5 Sep 2015 14:56:21 +0300 Subject: [PATCH] Restore original "is RTC ticking" bit emulation, PIC_TickIndex() works now. --- dosbox/cmos.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosbox/cmos.cpp b/dosbox/cmos.cpp index 370d6621..3b66ec6f 100644 --- a/dosbox/cmos.cpp +++ b/dosbox/cmos.cpp @@ -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); -- 2.47.3