CHIP-8 emulator in Javascript, that runs in the browser

I recently wrote a CHIP 8 interpreter using JavaScript to brush up on my skills and learn some new features. I was able to improve upon a previous Python version and noticed that there isn’t much difference in performance in this case. However, I know that I can significantly speed up the JavaScript interpreter.

See my CHIP-8 Live Demo on Github. Enable the NUM LOCK and use 4 / 5 / 6.

Because JavaScript allows for fast prototyping, I was able to easily add a live monitor and disassembler. I wish I had more time to write my own assembler and some CHIP 8 programs, but I’ve moved on to a different project for now.

Check out the working CHIP8 code on GitHub, online version in the future.

This clip below shows the moment I was hunting a bug causing problems with the .PC register, jumping out of the program scope. Despite the fact I already had my Python version, due some language differences I couldn’t track it down for a few hours.

Leave a Reply

Your email address will not be published. Required fields are marked *