blob: 7876d7630ea269ba7aac6f47572f6a7426e3f175 [file] [log] [blame] [raw]
// load all files to run v86 in browser, uncompiled
(function()
{
var PATH = "src/",
CORE_FILES="const.js io.js cpu.js main.js disk.js pci.js floppy.js memory.js dma.js pit.js vga.js ps2.js pic.js rtc.js uart.js"
BROWSER_FILES="browser/main.js browser/screen.js browser/keyboard.js browser/mouse.js"
window.onload = function()
{
load_scripts(CORE_FILES);
load_scripts(BROWSER_FILES);
function load_scripts(resp)
{
var files = resp.split(" "),
script;
for(var i = 0; i < files.length; i++)
{
script = document.createElement("script");
script.src = PATH + files[i] + "?" + Math.random();
document.body.appendChild(script);
}
}
};
})();