v86 0.5.366 → 0.5.367
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.
- package/build/libv86-debug.js +9 -2
- package/build/libv86-debug.mjs +9 -2
- package/build/libv86.js +88 -88
- package/build/libv86.mjs +384 -383
- package/package.json +1 -1
package/build/libv86-debug.js
CHANGED
|
@@ -496,6 +496,9 @@ function $dbg_assert$$module$src$log$$($cond$$, $msg$$) {
|
|
|
496
496
|
$paused$$ = !1;
|
|
497
497
|
$cursor_element$$.classList.add("blinking-cursor");
|
|
498
498
|
};
|
|
499
|
+
this.clear_text_state = function() {
|
|
500
|
+
$font_page_b$$ = $font_page_a$$ = $text_mode_height$$ = $text_mode_width$$ = $font_height$$ = $font_width$$ = null;
|
|
501
|
+
};
|
|
499
502
|
this.set_mode = function($graphical$$) {
|
|
500
503
|
$mode$jscomp$15$$ = $graphical$$ ? 1 : $options$jscomp$36$$.use_graphical_text ? 2 : 0;
|
|
501
504
|
0 === $mode$jscomp$15$$ ? ($text_screen$$.style.display = "block", $graphic_screen$$.style.display = "none") : ($text_screen$$.style.display = "none", $graphic_screen$$.style.display = "block", 2 === $mode$jscomp$15$$ && $changed_rows$$ && $changed_rows$$.fill(1));
|
|
@@ -524,7 +527,7 @@ function $dbg_assert$$module$src$log$$($cond$$, $msg$$) {
|
|
|
524
527
|
};
|
|
525
528
|
this.set_size_text = function($cols_i$jscomp$6$$, $rows$$) {
|
|
526
529
|
if ($cols_i$jscomp$6$$ !== $text_mode_width$$ || $rows$$ !== $text_mode_height$$) {
|
|
527
|
-
if ($changed_rows$$ = new Int8Array($rows$$), $text_mode_data$$ = new Int32Array($cols_i$jscomp$6$$ * $rows$$ * 4), $text_mode_width$$ = $cols_i$jscomp$6$$, $text_mode_height$$ = $rows$$, 0 === $mode$jscomp$15$$) {
|
|
530
|
+
if ($changed_rows$$ = new Int8Array($rows$$), $changed_rows$$.fill(1), $text_mode_data$$ = new Int32Array($cols_i$jscomp$6$$ * $rows$$ * 4), $text_mode_width$$ = $cols_i$jscomp$6$$, $text_mode_height$$ = $rows$$, 0 === $mode$jscomp$15$$) {
|
|
528
531
|
for (; $text_screen$$.childNodes.length > $rows$$;) {
|
|
529
532
|
$text_screen$$.removeChild($text_screen$$.firstChild);
|
|
530
533
|
}
|
|
@@ -4353,6 +4356,9 @@ function $KeyboardAdapter$$module$src$browser$keyboard$$($bus$jscomp$10$$) {
|
|
|
4353
4356
|
};
|
|
4354
4357
|
this.continue = function() {
|
|
4355
4358
|
};
|
|
4359
|
+
this.clear_text_state = function() {
|
|
4360
|
+
$text_mode_height$jscomp$1$$ = $text_mode_width$jscomp$1$$ = null;
|
|
4361
|
+
};
|
|
4356
4362
|
this.set_mode = function() {
|
|
4357
4363
|
};
|
|
4358
4364
|
this.set_font_bitmap = function() {
|
|
@@ -10063,7 +10069,8 @@ $VGAScreen$$module$src$vga$$.prototype.set_state = function($state$jscomp$54$$)
|
|
|
10063
10069
|
this.character_map_select = void 0 === $state$jscomp$54$$[63] ? 0 : $state$jscomp$54$$[63];
|
|
10064
10070
|
this.font_page_ab_enabled = void 0 === $state$jscomp$54$$[64] ? 0 : $state$jscomp$54$$[64];
|
|
10065
10071
|
this.screen.set_mode(this.graphical_mode);
|
|
10066
|
-
this.
|
|
10072
|
+
this.screen_height = this.screen_width = 0;
|
|
10073
|
+
this.graphical_mode ? this.svga_enabled ? (this.set_size_graphical(this.svga_width, this.svga_height, this.svga_width, this.svga_height, this.svga_bpp), this.update_layers()) : (this.update_vga_size(), this.update_layers(), this.complete_replot()) : (this.screen.clear_text_state(), this.set_font_bitmap(!0), this.set_size_text(this.max_cols, this.max_rows), this.set_font_page(), this.update_cursor_scanline(), this.update_cursor());
|
|
10067
10074
|
this.complete_redraw();
|
|
10068
10075
|
};
|
|
10069
10076
|
$VGAScreen$$module$src$vga$$.prototype.vga_memory_read = function($addr$jscomp$31$$) {
|
package/build/libv86-debug.mjs
CHANGED
|
@@ -495,6 +495,9 @@ function $ScreenAdapter$$module$src$browser$screen$$($options$jscomp$36$$, $scre
|
|
|
495
495
|
$paused$$ = !1;
|
|
496
496
|
$cursor_element$$.classList.add("blinking-cursor");
|
|
497
497
|
};
|
|
498
|
+
this.clear_text_state = function() {
|
|
499
|
+
$font_page_b$$ = $font_page_a$$ = $text_mode_height$$ = $text_mode_width$$ = $font_height$$ = $font_width$$ = null;
|
|
500
|
+
};
|
|
498
501
|
this.set_mode = function($graphical$$) {
|
|
499
502
|
$mode$jscomp$15$$ = $graphical$$ ? 1 : $options$jscomp$36$$.use_graphical_text ? 2 : 0;
|
|
500
503
|
0 === $mode$jscomp$15$$ ? ($text_screen$$.style.display = "block", $graphic_screen$$.style.display = "none") : ($text_screen$$.style.display = "none", $graphic_screen$$.style.display = "block", 2 === $mode$jscomp$15$$ && $changed_rows$$ && $changed_rows$$.fill(1));
|
|
@@ -523,7 +526,7 @@ function $ScreenAdapter$$module$src$browser$screen$$($options$jscomp$36$$, $scre
|
|
|
523
526
|
};
|
|
524
527
|
this.set_size_text = function($cols_i$jscomp$6$$, $rows$$) {
|
|
525
528
|
if ($cols_i$jscomp$6$$ !== $text_mode_width$$ || $rows$$ !== $text_mode_height$$) {
|
|
526
|
-
if ($changed_rows$$ = new Int8Array($rows$$), $text_mode_data$$ = new Int32Array($cols_i$jscomp$6$$ * $rows$$ * 4), $text_mode_width$$ = $cols_i$jscomp$6$$, $text_mode_height$$ = $rows$$, 0 === $mode$jscomp$15$$) {
|
|
529
|
+
if ($changed_rows$$ = new Int8Array($rows$$), $changed_rows$$.fill(1), $text_mode_data$$ = new Int32Array($cols_i$jscomp$6$$ * $rows$$ * 4), $text_mode_width$$ = $cols_i$jscomp$6$$, $text_mode_height$$ = $rows$$, 0 === $mode$jscomp$15$$) {
|
|
527
530
|
for (; $text_screen$$.childNodes.length > $rows$$;) {
|
|
528
531
|
$text_screen$$.removeChild($text_screen$$.firstChild);
|
|
529
532
|
}
|
|
@@ -4352,6 +4355,9 @@ function $DummyScreenAdapter$$module$src$browser$dummy_screen$$($options$jscomp$
|
|
|
4352
4355
|
};
|
|
4353
4356
|
this.continue = function() {
|
|
4354
4357
|
};
|
|
4358
|
+
this.clear_text_state = function() {
|
|
4359
|
+
$text_mode_height$jscomp$1$$ = $text_mode_width$jscomp$1$$ = null;
|
|
4360
|
+
};
|
|
4355
4361
|
this.set_mode = function() {
|
|
4356
4362
|
};
|
|
4357
4363
|
this.set_font_bitmap = function() {
|
|
@@ -10062,7 +10068,8 @@ $VGAScreen$$module$src$vga$$.prototype.set_state = function($state$jscomp$54$$)
|
|
|
10062
10068
|
this.character_map_select = void 0 === $state$jscomp$54$$[63] ? 0 : $state$jscomp$54$$[63];
|
|
10063
10069
|
this.font_page_ab_enabled = void 0 === $state$jscomp$54$$[64] ? 0 : $state$jscomp$54$$[64];
|
|
10064
10070
|
this.screen.set_mode(this.graphical_mode);
|
|
10065
|
-
this.
|
|
10071
|
+
this.screen_height = this.screen_width = 0;
|
|
10072
|
+
this.graphical_mode ? this.svga_enabled ? (this.set_size_graphical(this.svga_width, this.svga_height, this.svga_width, this.svga_height, this.svga_bpp), this.update_layers()) : (this.update_vga_size(), this.update_layers(), this.complete_replot()) : (this.screen.clear_text_state(), this.set_font_bitmap(!0), this.set_size_text(this.max_cols, this.max_rows), this.set_font_page(), this.update_cursor_scanline(), this.update_cursor());
|
|
10066
10073
|
this.complete_redraw();
|
|
10067
10074
|
};
|
|
10068
10075
|
$VGAScreen$$module$src$vga$$.prototype.vga_memory_read = function($addr$jscomp$31$$) {
|