A lightweight and minimal SimpleRISC v21 interpreter written in pure C 🧡. This command-line tool reads SimpleRISC assembly instructions and interprets them directly — no intermediate machine code, just pure CPU mimicry!
-
🧠 Real-time Interpretation Parses and executes SimpleRISC
.sfiles directly. -
⚡ Minimalist & Fast Single-file architecture for quick builds and easy tweaks.
-
📄 Handles Registers & Memory Simulates general-purpose registers, instruction behavior, and memory ops.
-
🐞 Debugging Output Optional mode to print register and memory states after each instruction.
.
├── main.c # All logic packed in one mighty file
├── Makefile # Optional build support (if you’ve added it)gcc -o simpleRISC main.c -lmOr if you’ve added a Makefile (optional, cutie):
make./simpleRISC <program.asm> Arguments:
<program.asm>: Your SimpleRISC assembly file.
./simpleRISC test/fib.s
https://evans-prince.github.io/CLI-Emulator/
- Supports signed and unsigned immediates.
- Covers major 3-address instruction formats.
- Halfword and upper immediate support included
- Add support for branching and pipelining
- Modularize interpreter into separate files
- Add UI or web-based interface (👀 future upgrade?)
By Prince (IIT Delhi) 🧡 Drop a ⭐ if you like it or wanna collab.
MIT License — free to use, modify, and share!