Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (50 sloc) 2.67 KB
The Emularity: An Example Computer Loader
For use with The Emularity, downloadable at
SIMPLE STEPS for trying an emulated computer ("System 7.0.1" for the
Macintosh II).
* 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
* Download BIOS and configuration from
* Download the System 7.0.1 disk image from:
then extract the "test7.dsk" disk image file
* Place BIOS, configuration file and disk image in an
"examples" subdirectory.
* Visit your example_computer.html file with a modern
Javascript-capable browser.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>example computer program</title>
<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"),
new NP2Loader(NP2Loader.nativeResolution(640, 480),
NP2Loader.fetchFile("Mac ROM files",
NP2Loader.fetchFile("Disk Image",
emulator.setScale(3).start({ waitAfterDownloading: true });