v86 0.5.242 → 0.5.244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2314,7 +2314,7 @@ function $restore_state$$module$src$state$$($cpu$jscomp$5$$, $state$jscomp$9$$)
2314
2314
  this.periodic_interrupt_time = .9765625;
2315
2315
  this.cmos_a = 38;
2316
2316
  this.cmos_b = 2;
2317
- this.nmi_disabled = this.cmos_c = 0;
2317
+ this.nmi_disabled = this.cmos_diag_status = this.cmos_c = 0;
2318
2318
  this.update_interrupt = !1;
2319
2319
  this.update_interrupt_time = 0;
2320
2320
  $cpu$jscomp$10$$.io.register_write(112, this, function($out_byte$$) {
@@ -2340,6 +2340,7 @@ $RTC$$module$src$rtc$$.prototype.get_state = function() {
2340
2340
  $state$jscomp$11$$[11] = this.nmi_disabled;
2341
2341
  $state$jscomp$11$$[12] = this.update_interrupt;
2342
2342
  $state$jscomp$11$$[13] = this.update_interrupt_time;
2343
+ $state$jscomp$11$$[14] = this.cmos_diag_status;
2343
2344
  return $state$jscomp$11$$;
2344
2345
  };
2345
2346
  $RTC$$module$src$rtc$$.prototype.set_state = function($state$jscomp$12$$) {
@@ -2357,6 +2358,7 @@ $RTC$$module$src$rtc$$.prototype.set_state = function($state$jscomp$12$$) {
2357
2358
  this.nmi_disabled = $state$jscomp$12$$[11];
2358
2359
  this.update_interrupt = $state$jscomp$12$$[12] || !1;
2359
2360
  this.update_interrupt_time = $state$jscomp$12$$[13] || 0;
2361
+ this.cmos_diag_status = $state$jscomp$12$$[14] || 0;
2360
2362
  };
2361
2363
  $RTC$$module$src$rtc$$.prototype.timer = function($time$$) {
2362
2364
  $time$$ = Date.now();
@@ -2413,7 +2415,9 @@ $RTC$$module$src$rtc$$.prototype.cmos_port_read = function() {
2413
2415
  case 12:
2414
2416
  return this.cpu.device_lower_irq(8), $dbg_log$$module$src$log$$("cmos reg C read", 65536), $c_index$jscomp$79$$ = this.cmos_c, this.cmos_c &= -241, $c_index$jscomp$79$$;
2415
2417
  case 13:
2416
- return 0;
2418
+ return 128;
2419
+ case 14:
2420
+ return $dbg_log$$module$src$log$$("cmos diagnostic status read", 65536), this.cmos_diag_status;
2417
2421
  case 50:
2418
2422
  case 55:
2419
2423
  return $dbg_log$$module$src$log$$("read century: " + $h$$module$src$lib$$(this.encode_time((new Date(this.rtc_time)).getUTCFullYear() / 100 | 0)), 65536), this.encode_time((new Date(this.rtc_time)).getUTCFullYear() / 100 | 0);
@@ -2441,6 +2445,9 @@ $RTC$$module$src$rtc$$.prototype.cmos_port_write = function($data_byte$jscomp$8_
2441
2445
  this.cmos_b & 16 && ($dbg_log$$module$src$log$$("update interrupt", 65536), this.update_interrupt_time = Date.now());
2442
2446
  $dbg_log$$module$src$log$$("cmos b=" + $h$$module$src$lib$$(this.cmos_b, 2), 65536);
2443
2447
  break;
2448
+ case 14:
2449
+ this.cmos_diag_status = $data_byte$jscomp$8_now$jscomp$1$$;
2450
+ break;
2444
2451
  case 1:
2445
2452
  case 3:
2446
2453
  case 5: