a vitural machine (VM) built by following the tutorial provided by Justin Meiners and Ryan Pendleton for understanding how computers work. Please click on the link below for the original source code.
https://www.jmeiners.com/lc3-vm/
- Ensure you have the GCC compiler installed on your machine.
$ gcc -v
- Ensure Python version 3 is installed on your machine.
$ python -V
- Create the executable for the VM:
$ gcc lc3.c -o lc3-vm
- Use an LC-3 assembler written in Python to assemble an Assembly program (e.g.,
2048.asm
).
$ python3 lc3-nasm.py 2048.asm
- Run the executable with the machine code object file to test the VM.
$ ./lc3-vm 2048.obj