A simulator that provides a simplified assembler syntax (based on NASM) and is simulating an x86-like CPU. Press Help inside the simulator to see an overview of the supported instructions. Make sure you have Grunt installed to compile the asmsimulator.js script. Run grunt to build the project. The simulator is written in JavaScript with Angular and runs on every device with a web browser. It has a lot of simplifications and constraints, but it is the basic structure of every emulator. The console output uses memory mapping and maps a specific portion of the memory to the console. Thus writing to the console output is as simple as writing into a specific memory location. The CPU reads instructions from the memory and executes them. The memory contains our program code and can be used by the program to store data.
Features
- 8-bit CPU
- 4 general purpose registers
- 256 bytes of memory
- Console output
- Try it online
- Make sure you have Grunt installed