Skip to content

Commit

Permalink
winnt4 (mps) rtc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelsuft committed Sep 12, 2022
1 parent 309e573 commit 3f7360b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
3 changes: 2 additions & 1 deletion build/libv86.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/libv86.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions build/v86_all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/v86_all.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,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));
Expand Down

0 comments on commit 3f7360b

Please sign in to comment.