Add path to wasm module to examples

This commit is contained in:
Fabian 2020-12-31 19:14:30 -06:00
parent 6abb23cb69
commit a172304f8d
9 changed files with 11 additions and 0 deletions

View file

@ -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"),

View file

@ -14,6 +14,7 @@ window.onload = function()
// 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"),

View file

@ -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"),

View file

@ -15,6 +15,7 @@ window.onload = function()
}, 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"),

View file

@ -26,6 +26,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"),

View file

@ -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,

View file

@ -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"),

View file

@ -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"),

View file

@ -11,6 +11,7 @@ window.onload = function()
var container2 = document.getElementById("screen_container2");
var emulator1 = new V86Starter({
wasm_path: "../build/v86.wasm",
screen_container: container1,
bios: {
url: "../bios/seabios.bin",
@ -25,6 +26,7 @@ window.onload = function()
});
var emulator2 = new V86Starter({
wasm_path: "../build/v86.wasm",
screen_container: container2,
bios: {
url: "../bios/seabios.bin",