addonovan / arm7.js

ARM7 assembly simulator with a javascript interpreter. The best of both worlds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have you ever wanted to program with the ease of assembly*, and the speed of a nested interpreter? Well now you can!

* Comments aren't even support yet lol

arm7.js will show you the values in your registers as you progress through the assembly (either by hand or with a speedy 500 ms delay between instructions) and will highlight the current line it's interpreting.

All you need to do to get it to run is put the following tags in your document (scripts at bottom btw):

  • <link rel="stylesheet" href="/link/to/emulator.css">
  • <script src="/path/to/emulator.js"></script>
  • <script src="/path/to/emulator.controls.js"></script>
  • <script src="/path/to/emulator.parser.js"></script>
  • <script src="/path/to/emulator.ops.js"></script>

And then wrap your raw arm7 assembly code in a <pre> tag with the id of src.

Currently supported:

  1. Labels
  2. Basic operations (mov, add, branching, conditional branching)
  3. Quitting

Unsupported operations:

  1. Basically everything else

This is a perfect tool to write an arm7 virtual machine in!

examples:

About

ARM7 assembly simulator with a javascript interpreter. The best of both worlds

License:MIT License


Languages

Language:JavaScript 98.2%Language:CSS 1.8%