Implement a CPU emulator (a virtual machine) in JavaScript
Channel: Coding Adventures
Date: 2022-05-27

Implement a CPU emulator using interpretation (a basic virtual machine) in JavaScript.

This project is great for any computer science student interested to find out more about how CPUs are working, about machine code and assembly language.

This video is also recommended to people interested to build emulators for retro machines or retro arcades. Of course this is just a very first step...

The project is implemented in JavaScript using codeguppy.com - a coding platform based on p5.js library. If you like the game, you can convert it to p5.js sketches or even bare-metal JavaScript using HTML5 canvas API (ask if interested).

💖 Full project source code:
https://codeguppy.com/code.html?aalTSbczWpRKRMXCTYXG

💖 If you like this exercise, consider purchasing the PDF edition of the "Illustrated JavaScript Coding Course".  Available on sale for a limited time:

https://codeguppy.gumroad.com/l/js/Launch

► Similar videos

Altair 8800 w/ Tiny BASIC emulator in JavaScript
💖 https://www.youtube.com/watch?v=cZNs1Wn5EdQ

► Other projects and coding lessons

💖 Coding Projects playlist (Cool games and fun projects on the canvas)
https://www.youtube.com/playlist?list=PLZld0zbNGbZSLmJhOam5QRKn7xGHgK0c0

💖 Coding Lessons playlist (Full JavaScript course)
https://www.youtube.com/playlist?list=PLZld0zbNGbZRfjut6JI7ZLx8ZbTDa5zn-

Credits

Credits for VM used: https://www.briansteffens.com/2017/07/03/google-sheets-virtual-machine.html