https://github.com/pjnalls/lc3-vm
LC-3 VM (Little Computer 3 as a Virtual Machine): a VM built by following along to the tutorial provided by Justin Meiners and Ryan Pendleton in order to understand how computers work. Please click on the link below for the original source code.
https://github.com/pjnalls/lc3-vm
c-programming clang computer-architecture computers lc-3 linux macos unix virtual-hardware virtual-machine vm
Last synced: 12 months ago
JSON representation
LC-3 VM (Little Computer 3 as a Virtual Machine): a VM built by following along to the tutorial provided by Justin Meiners and Ryan Pendleton in order to understand how computers work. Please click on the link below for the original source code.
- Host: GitHub
- URL: https://github.com/pjnalls/lc3-vm
- Owner: pjnalls
- Created: 2025-02-22T20:55:11.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T08:22:18.000Z (12 months ago)
- Last Synced: 2025-02-23T08:26:17.458Z (12 months ago)
- Topics: c-programming, clang, computer-architecture, computers, lc-3, linux, macos, unix, virtual-hardware, virtual-machine, vm
- Language: C
- Homepage: https://www.jmeiners.com/lc3-vm/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LC-3 VM
### (Little Computer 3 as a Virtual Machine)
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/](www.jmeiners.com/lc3-vm/)
## Getting Started
1. Ensure you have the GCC compiler installed on your machine.
```bash
$ gcc -v
```
2. Ensure Python version 3 is installed on your machine.
```bash
$ python -V
```
3. Create the executable for the VM:
```bash
$ gcc lc3.c -o lc3-vm
```
4. Use an LC-3 assembler written in Python to assemble an Assembly program (e.g., `2048.asm`).
```bash
$ python3 lc3-nasm.py 2048.asm
```
5. Run the executable with the machine code object file to test the VM.
```bash
$ ./lc3-vm 2048.obj
```