diff --git a/src/rtc.js b/src/rtc.js index ce44c9a3..4468faf1 100644 --- a/src/rtc.js +++ b/src/rtc.js @@ -242,6 +242,13 @@ RTC.prototype.cmos_port_read = function() return this.encode_time(new Date(this.rtc_time).getUTCFullYear() % 100); case CMOS_STATUS_A: + if(v86.microtick() % 1000 >= 999) + { + // Set update-in-progress for one millisecond every second (we + // may not have precision higher than that in browser + // environments) + return this.cmos_a | 0x80; + } return this.cmos_a; case CMOS_STATUS_B: //dbg_log("cmos read from index " + h(index));