Skip to content

Commit

Permalink
s/V86Starter/V86
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Sep 20, 2023
1 parent 48045ee commit 080482d
Show file tree
Hide file tree
Showing 19 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ See [tests/Readme.md](tests/Readme.md) for more infos.
Using v86 for your own purposes is as easy as:

```javascript
var emulator = new V86Starter({
var emulator = new V86({
screen_container: document.getElementById("screen_container"),
bios: {
url: "../../bios/seabios.bin",
Expand Down
4 changes: 2 additions & 2 deletions docs/archlinux.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ wget https://raw.githubusercontent.com/smgoller/rangehttpserver/master/RangeHTTP
python2 RangeHTTPServer.py
```

Now that the webserver is running, point your browser to `http://localhost:8000/examples/arch.html`. Wait for the Linux to boot. When the system is up, click 'Save state to file'. Your browser will download a `v86state.bin` file. Copy that file to `/your/v86/dir/images`. You can then edit `examples/arch.html` again and add a 'state' key to the `V86Starter` array.
Now that the webserver is running, point your browser to `http://localhost:8000/examples/arch.html`. Wait for the Linux to boot. When the system is up, click 'Save state to file'. Your browser will download a `v86state.bin` file. Copy that file to `/your/v86/dir/images`. You can then edit `examples/arch.html` again and add a 'state' key to the `V86` array.

```sh
initial_state: {
Expand All @@ -442,7 +442,7 @@ If you refresh `http://localhost:8000/examples/arch.html` you will see that the

### Networking

The emulator can emulate a network card. For more information [look at the networking documentation](https://github.com/copy/v86/blob/master/docs/networking.md). To set up networking in the VM, add the following item to the `V86Starter` array in the `examples/arch.html` file:
The emulator can emulate a network card. For more information [look at the networking documentation](https://github.com/copy/v86/blob/master/docs/networking.md). To set up networking in the VM, add the following item to the `V86` array in the `examples/arch.html` file:
```sh
network_relay_url: "ws://localhost:8080/",
```
Expand Down
2 changes: 1 addition & 1 deletion docs/windows-xp.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Create `winxp.htm` with this content (assuming all the files are in the same fol
<script>
onload = function()
{
new V86Starter({
new V86({
wasm_path: "v86.wasm",
bios: { url: "seabios.bin" },
vga_bios: { url: "vgabios.bin" },
Expand Down
2 changes: 1 addition & 1 deletion examples/arch.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

window.onload = function()
{
var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 512 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion examples/async_load.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Support of the "Range: bytes=..." header is required on the server, CORS
// is required if the server is on a different host

var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 64 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

window.onload = function()
{
var emulator = window.emulator = new V86Starter({
var emulator = window.emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion examples/debian.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

window.onload = function()
{
var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 512 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion examples/destroy.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

window.onload = function()
{
var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion examples/lang.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
document.getElementById("time").textContent = Math.round((Date.now() - start) / 1000);
}, 999);

var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 512 * 1024 * 1024,
vga_memory_size: 8 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion examples/lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

window.onload = function()
{
var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"use strict";

var fs = require("fs");
var V86Starter = require("../build/libv86.js").V86Starter;
var V86 = require("../build/libv86.js").V86;

function readfile(path)
{
Expand All @@ -18,7 +18,7 @@ process.stdin.setEncoding("utf8");

console.log("Now booting, please stand by ...");

var emulator = new V86Starter({
var emulator = new V86({
bios: { buffer: bios },
cdrom: { buffer: linux },
autostart: true,
Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"use strict";

var fs = require("fs");
var V86Starter = require("../build/libv86.js").V86Starter;
var V86 = require("../build/libv86.js").V86;

function readfile(path)
{
Expand All @@ -20,7 +20,7 @@ process.stdin.setEncoding("utf8");

console.log("Now booting, please stand by ...");

var emulator = new V86Starter({
var emulator = new V86({
bios: { buffer: bios },
cdrom: { buffer: linux },
autostart: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/save_restore.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

window.onload = function()
{
var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",

// Uncomment to see what's going on
Expand Down
4 changes: 2 additions & 2 deletions examples/two_instances.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
var container1 = document.getElementById("screen_container1");
var container2 = document.getElementById("screen_container2");

var emulator1 = new V86Starter({
var emulator1 = new V86({
wasm_path: "../build/v86.wasm",
screen_container: container1,
bios: {
Expand All @@ -25,7 +25,7 @@
autostart: true,
});

var emulator2 = new V86Starter({
var emulator2 = new V86({
wasm_path: "../build/v86.wasm",
screen_container: container2,
bios: {
Expand Down
2 changes: 1 addition & 1 deletion examples/worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
importScripts("../build/libv86.js");

var emulator = new V86Starter({
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
Expand Down
4 changes: 2 additions & 2 deletions src/browser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@
};
}

var emulator = new V86Starter({
var emulator = new V86({
"memory_size": memory_size,
"vga_memory_size": vga_memory_size,

Expand Down Expand Up @@ -1494,7 +1494,7 @@

/**
* @param {Object} settings
* @param {V86Starter} emulator
* @param {V86} emulator
*/
function init_ui(settings, emulator)
{
Expand Down
Loading

0 comments on commit 080482d

Please sign in to comment.