Make your own assembler simulator in JavaScript (Part 1) –A nice series of posts explaining how the assembly simulator was implemented: “The goal of this blog post is to create a simple simulator which is able to assemble your code into cpu instructions and run them inside a virtual computer”