
Make your own Assembler simulator in JavaScript (Part 2)
In part 1 we did create the CPU. In the second and final part, we gonna focus on the memory, console output, assembler and the UI. The memory We will use a simple array to represent the memory. Each slot contains a JavaScript numeric value. So, in theory, the memory can hold values bigger than a byte but our CPU code will make sure all values are between 0-255. The memory has three functions. Load…