How To Write An Emulator In JavaScript


Well, after a bit of success in writing my first emulator in JavaScript, I thought I would share a series on how I went about it and also show others how to go about coding an emulation engine.

Now, I’m no expert on emulation, and don’t claim to be. I do this as a hobby and learned a few things while doing it and, as I always say, the best way to remember something is to pass on the information. So here comes a series of tutorials on building emulators. Remember: The language we are using herein is JavaScript.

Let’s begin with the easy one: CHIP-8.

1. Introduction To Chip-8.

2. Modelling the CPU.

3. Loading a binary file.

4. Opcodes & implementation.