lc3sim-js

lc3sim-js is a JavaScript implementation of the LC-3 virtual machine, an educational computer architecture.

Programs

Although lc3sim-js is capable of running any valid LC-3 program, this demo includes just two sample games:

Controls:

Any keys that are pressed while the terminal is focused will be forwarded to the VM.

On mobile (or devices with a touch screen), swiping on the terminal will simulate WASD key presses. To send keys other than this, you can tap anywhere in the terminal to manually focus the terminal and open a keyboard.

More Information

Source code is available on GitHub at rpendleton/lc3sim-js.

This project is based on a tutorial written by my friend and me. If you're interested in writing your own VM (or just want to learn more about the project), you can find the tutorial here.