Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
The Emularity: An Example C64 Loader
For use with The Emularity, downloadable at
SIMPLE STEPS for trying an emulated computer using ViceJS 3.2
("Comaland" for the C64).
* 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 files that comprise the compiled ViceJS emulator:
* Download a copy of Comaland 100% from{1..4}.d64
* Visit your example_vicejs.html file with a modern
Javascript-capable browser.
* For more information about the Vice Emscripten port, please see (for Vice 2.4), or Sgeo's
repository for Vice 3.2 (once he publishes it, hint hint).
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>example dos game</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 VICELoader(VICELoader.emulatorJS("emulators/vicejs/vice-resid.js"),
VICELoader.nativeResolution(768, 544),
VICELoader.extraArgs(["-soundfragsize", "4",
"-soundrate", "48000",
"-soundsync", "2",
"-soundbufsize", "150",
"-residsamp", "0",
"-joydev1", "4"]),
VICELoader.fetchFile("Disc 1",
VICELoader.fetchFile("Disc 2",
VICELoader.fetchFile("Disc 3",
VICELoader.fetchFile("Disc 4",
VICELoader.fliplist([["image1.d64", "image2.d64", "image3.d64", "image4.d64"]]),
emulator.start({ waitAfterDownloading: true });