This commit is contained in:
Ben 2017-09-09 19:31:24 -07:00 committed by Fabian
parent b9c421fd2f
commit 798b271ce6
3 changed files with 11 additions and 11 deletions

View file

@ -71,11 +71,11 @@ There are two ways to load images (`bios`, `vga_bios`, `cdrom`, `hda`, ...):
```javascript
// download file before boot
options.bios = {
bios: {
url: "bios/seabios.bin"
}
// download file sectors as requested, size is required
options.hda = {
hda: {
url: "disk/linux.iso",
async: true,
size: 16 * 1024 * 1024
@ -86,11 +86,11 @@ There are two ways to load images (`bios`, `vga_bios`, `cdrom`, `hda`, ...):
```javascript
// use <input type=file>
options.bios = {
bios: {
buffer: document.all.hd_image.files[0]
}
// start with empty hard drive
options.hda = {
hda: {
buffer: new ArrayBuffer(16 * 1024 * 1024)
}
```

View file

@ -7,9 +7,9 @@ and
be enabled by passing the following options to `V86Starter`:
```javascript
options.filesystem = {
basefs: "http://localhost/9p/fs.json",
baseurl: "http://localhost/9p/base/",
filesystem: {
basefs: "../9p/fs.json",
baseurl: "../9p/base/",
}
```

View file

@ -53,11 +53,11 @@
*
* ```javascript
* // download file before boot
* options.bios = {
* bios: {
* url: "bios/seabios.bin"
* }
* // download file sectors as requested, size is required
* options.hda = {
* hda: {
* url: "disk/linux.iso",
* async: true,
* size: 16 * 1024 * 1024
@ -68,11 +68,11 @@
*
* ```javascript
* // use <input type=file>
* options.bios = {
* bios: {
* buffer: document.all.hd_image.files[0]
* }
* // start with empty hard drive
* options.hda = {
* hda: {
* buffer: new ArrayBuffer(16 * 1024 * 1024)
* }
* ```