Hello everyone,
as a weekend project while learning javascript I created a barebones Hack Computer Simulator that runs in a browser. You can find it
here, there is also a brief tutorial. I hope you like it!
Here are some details:
- Runs .hack files directly out of your assembler.
- Comes with Pong preloaded! Just click START!
- Control over how many cpu cycles per frame to execute, and how many frames per second.
- Keyboard is routed to the KBD register at any moment.
- RAM registers can be manually written before running a program.
- Personalized screen colors.
- Brief tutorial.
- More coming!
- This is *not* a VM simulator, this is a hard and pure hack computer simulator: it accepts only .hack files and files longer than the ROM will just not work! Also this is implemented in Javascript so it provides noticeably better performance than the java CPUEmulator, but not webassembly better!
SCREENSHOT
![](http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/file/n4035789/Screenshot.png)
Last but not least, visit
github if you want to see the code or even contribute! The code is a mess but improving... next weekend.
I hope you like it
Magi