This is a RISC based assembler and simulator made as part of our CSE-112 Computer Organization course at IIIT Delhi. The assembler and simulator are written in Python 3.10.
The Problem Statement enlists the supported instruction set and deliverables of the project.
The python script assembler.py
takes input as assembly code and outputs machine code. The python script simulator.py
uses the machine code and outputs the result of the execution of the machine code.
The assembler script can be run using the following command:
cd SimpleAssembler
python3 SimpleAssembler.py
The simulator script can be run using the following command:
cd SimpleSimulator
python3 SimpleSimulator.py
We have also added a folder containing the test cases for the assembler and simulator. More information about the test cases and their execution can be found in the README file inside the folder.