A simple CPU emulator made with python that uses a custom simple ISA and has its own assembler and debugger. The program comes with an example program that displays an RGB gradient onto the display.
- Clone the repository:
git clone https://github.com/ImShyMike/Python-CPU.git
- Install dependencies:
pip install -r requirements.txt
- To use the CPU, run the file at
src/cpu.py
- To make a custom program for the CPU, edit
scr/code/asm/code.asm
and then assemble it using the assembler - To run the assembler, run the file at
scr/assembler.py
The configuration file is located at scr/config.json
. Default values:
- CPU
- Assembler
- Compiler
- Examples
- Display
- Debugger
This project is licensed under the MIT License.