This commit is contained in:
copy 2015-01-19 21:58:58 +01:00
parent 1021f8666e
commit 7bfe2b41dc
4 changed files with 5 additions and 12 deletions

View file

@ -45,6 +45,7 @@ window.onload = function()
throw error;
}
console.log("Saved state of " + new_state.byteLength + " bytes");
button.value = "Restore state";
state = new_state;
});
@ -63,7 +64,7 @@ window.onload = function()
}
var a = document.createElement("a");
a.download = "v86-state.bin";
a.download = "v86state.bin";
a.href = window.URL.createObjectURL(new Blob([new_state]));
a.dataset.downloadurl = "application/octet-stream:" + a.download + ":" + a.href;
a.click();

View file

@ -33,7 +33,7 @@
}
}
console.log(el);
console.log(x);
};
debug.init = function()
@ -594,14 +594,6 @@
start = 0;
}
// textarea method: (slow)
//var result_string = "";
//for(var i = start; i < start + end; i++)
//{
// result_string += String.fromCharCode(int8array[i]);
//}
//dump_text(btoa(result_string));
return cpu.memory.buffer.slice(start, start + count);
}

View file

@ -84,7 +84,7 @@ v86.prototype.init = function(settings)
}
this.cpu.init(settings, this.bus);
this.bus.send_async("emulator-ready");
this.bus.send("emulator-ready");
};
// initialization that only needs to be once

View file

@ -23,7 +23,7 @@ function Memory(memory_size)
dbg_assert((memory_size & MMAP_BLOCK_SIZE - 1) === 0);
this.buffer = new ArrayBuffer(memory_size);;
this.buffer = new ArrayBuffer(memory_size);
this._state_restore();
};