bedrock-js is a web-based assembler and emulator for the Bedrock computing system.
Installation
Source code can be found at code.benbridle.com/bedrock-js.
The latest release is available as bedrock-js-1.0.1.js, a single un-minified Javascript file.
Usage
Include the following in the <head>
element of an HTML file, replacing the src
attribute with the path to the downloaded bedrock-js Javascript file:
<script src='bedrock.js' defer></script>
All <pre>
elements with the class bedrock
will be replaced with an interactive assembler on page load, with any text within the element being copied into the assembler:
<pre class='bedrock'>:02 :03 ADD<pre>
All <bedrock src='program.br'>
elements will be replaced with a full emulator on page load, with the src
attribute pointing to the program file to run. The nocursor
attribute will hide the system mouse cursor, and the controls
attribute will reveal a toolbar with buttons for entering fullscreen and controlling the program:
<bedrock controls src='/share/clock.br'></bedrock>
Development
License
bedrock-js is licensed under the MIT License. Feel free to use it, change it, and share it however you want.