Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

<!-- | |
The Emularity: An Example Computer Loader | |
For use with The Emularity, downloadable at http://www.emularity.com/ | |
SIMPLE STEPS for trying an emulated computer ("Gradius" for the | |
Sharp X1 Turbo). | |
* Check out this repository in your browser-accessible directory; | |
this file as well as es6-promise.js, browserfs.min.js and loader.js | |
are required. The logo and images directories are optional, but the | |
splash screen looks quite a lot better when they're available. | |
* Download the Neko Project II emulator from | |
https://yksoft1.github.io/emularity/xmil/xmil.js | |
https://yksoft1.github.io/emularity/xmil/xmil.wasm | |
* Download BIOS and configuration from | |
http://9game.oss-us-west-1.aliyuncs.com/np2/sharp-x1turbo-rom.zip | |
* Download the Gradius disk image from: | |
http://9game.oss-us-west-1.aliyuncs.com/np2/Gradius.2d | |
* Place BIOS, configuration file and disk image in an | |
"examples/np2" subdirectory. | |
* Visit your example_computer.html file with a modern | |
Javascript-capable browser. | |
--> | |
<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 NP2Loader(NP2Loader.nativeResolution(320, 200), | |
NP2Loader.emulatorJS("emulators/xmil.js"), | |
NP2Loader.emulatorWASM("emulators/xmil.wasm"), | |
NP2Loader.mountZip("xmil-em", | |
NP2Loader.fetchFile("BIOS", | |
"examples/np2/sharp-x1turbo-rom.zip")), | |
NP2Loader.mountFile("Gradius.2d", | |
NP2Loader.fetchFile("Disk Image", | |
"examples/np2/Gradius.2d")), | |
NP2Loader.extraArgs(["/emulator/Gradius.2d"]), | |
)); | |
emulator.setScale(3).start({ waitAfterDownloading: true }); | |
</script> | |
</body> | |
</html> |