Skip to content

Commit

Permalink
Add path to wasm module to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jan 1, 2021
1 parent 6abb23c commit a172304
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/arch.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
window.onload = function()
{
var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 128 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
Expand Down
1 change: 1 addition & 0 deletions examples/async_load.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// is required if the server is on a different host

var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 64 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
Expand Down
1 change: 1 addition & 0 deletions examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
window.onload = function()
{
var emulator = window.emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
Expand Down
1 change: 1 addition & 0 deletions examples/lang.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
}, 999);

var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 128 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
Expand Down
1 change: 1 addition & 0 deletions examples/lang2.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
}

var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 128 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
Expand Down
1 change: 1 addition & 0 deletions examples/lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
window.onload = function()
{
var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,

Expand Down
1 change: 1 addition & 0 deletions examples/save_restore.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
window.onload = function()
{
var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
Expand Down
2 changes: 2 additions & 0 deletions examples/serial.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
window.onload = function()
{
var emulator = new V86Starter({
wasm_path: "../build/v86.wasm",

// Uncomment to see what's going on
//screen_container: document.getElementById("screen_container"),

Expand Down
2 changes: 2 additions & 0 deletions examples/two_instances.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
var container2 = document.getElementById("screen_container2");

var emulator1 = new V86Starter({
wasm_path: "../build/v86.wasm",
screen_container: container1,
bios: {
url: "../bios/seabios.bin",
Expand All @@ -25,6 +26,7 @@
});

var emulator2 = new V86Starter({
wasm_path: "../build/v86.wasm",
screen_container: container2,
bios: {
url: "../bios/seabios.bin",
Expand Down

0 comments on commit a172304

Please sign in to comment.