Skip to content

Commit

Permalink
add an example for amiga emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
db48x committed Aug 3, 2016
1 parent 6c63e41 commit 7acd3d8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions example_amiga.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<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.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("Kickstart v3.1 r40.63 (1993)(Commodore)(A500-A600-A2000)[!].rom",
SAELoader.fetchFile("Bios",
"examples/Kickstart v3.1 r40.63 (1993)(Commodore)(A500-A600-A2000)[!].rom")),
SAELoader.rom("Kickstart v3.1 r40.63 (1993)(Commodore)(A500-A600-A2000)[!].rom"),
SAELoader.mountFile("17Bit-Cyclic.adf",
SAELoader.fetchFile("Game",
"examples/17Bit-Cyclic.adf")),
SAELoader.floppy(0, "17Bit-Cyclic.adf")))
emulator.setScale(3).start({ waitAfterDownloading: true });
</script>
</body>
</html>

2 comments on commit 7acd3d8

@ManuelFonseca
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where can i find the scriptedamigaemulator.js? What does it need to make this example to work?? where can i find the files??

@db48x
Copy link
Owner Author

@db48x db48x commented on 7acd3d8 Aug 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please accept my apologies, Manuel! I have indeed neglected to document this, but in the mean time you can clone the source code for SAE from https://github.com/naTmeg/ScriptedAmigaEmulator.

Please sign in to comment.