Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (32 sloc) 2.17 KB
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>example computer program</title>
</head>
<body>
<canvas id="canvas" style="width: 50%; height: 50%; display: block; margin: 0 auto;"/>
<script type="text/javascript" src="es6-promise.js"></script>
<script type="text/javascript" src="browserfs.min.js"></script>
<script type="text/javascript" src="loader.js"></script>
<script type="text/javascript">
var emulator = new Emulator(document.querySelector("#canvas"),
null,
new SAELoader(SAELoader.model("A500"),
SAELoader.fastMemory(2),
SAELoader.nativeResolution(720, 568),
SAELoader.emulatorJS("emulators/sae/scriptedamigaemulator.js"),
SAELoader.mountFile("aros-amiga-m68k-rom.bin",
SAELoader.fetchFile("Bios",
"examples/aros-amiga-m68k-rom.bin")),
SAELoader.mountFile("aros-amiga-m68k-ext.bin",
SAELoader.fetchFile("Bios",
"examples/aros-amiga-m68k-ext.bin")),
SAELoader.rom(["aros-amiga-m68k-rom.bin", "aros-amiga-m68k-ext.bin"]),
SAELoader.mountFile("Cool_Demos_17.2_1989_Razor_1911.adf",
SAELoader.fetchFile("Game",
"examples/Cool_Demos_17.2_1989_Razor_1911.adf")),
SAELoader.floppy(0, "Cool_Demos_17.2_1989_Razor_1911")))
emulator.setScale(3).start({ waitAfterDownloading: true });
</script>
</body>
</html>