https://github.com/tparker48/mips_emulator
MIPS Emulator + Assembler
https://github.com/tparker48/mips_emulator
assember assembly emulation emulator mips mips-architecture mips-assembly simulation simulator
Last synced: 7 months ago
JSON representation
MIPS Emulator + Assembler
- Host: GitHub
- URL: https://github.com/tparker48/mips_emulator
- Owner: tparker48
- Created: 2025-10-12T07:41:40.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-11-11T21:19:23.000Z (7 months ago)
- Last Synced: 2025-11-11T23:20:40.742Z (7 months ago)
- Topics: assember, assembly, emulation, emulator, mips, mips-architecture, mips-assembly, simulation, simulator
- Language: Python
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MIPS Emulator

- A MIPS CPU emulator written in C
- Emulates full MIPS 5-stage pipeline (IF, ID, EXE, MEM, WB)
- Forwarding and bubble insertion for RAW hazards
- Interrupt handling (WIP)
- Full instruction set support (WIP)
- Debugging (WIP)
- MIPS assembler written in Python
- Writes assembly files (.s/.asm) to binary (.bin) (big endian)
# Assembler: Generating Machine Code from MIPS Assembly
---
## Requirements
- **Python 3.10+**
- **sly** (Sly Lex-Yacc) - used for lexing and parsing
```bash
pip install -r requirements.txt
```
## Running the Assembler
```
TODO
```
# CPU Emulator: Execute MIPS Machine Code
---
## Building
```
make
```
This produces the executable mips_sim (or mips_sim.exe on Windows).
Clean with:
```
make clean
```
## Running
Run an assembled binary with:
```
./mips_sim [my_mips_binary]
```
# Running Tests
---
Run tests with:
```
python -m tests.test_runner
```