This project is a simple assembly language simulator that includes an assembler, a floating-point conversion module, and a simulator for a custom assembly language. The assembly language supports various instructions, registers, variables, and labels.
The assembler reads assembly code written in a custom language and produces machine code for simulation. It performs syntax checks, register validation, and handles variables and labels. The output machine code is then used by the simulator.
This module provides functions for converting floating-point numbers between binary and decimal representations. It is utilized by the assembler to handle floating-point instructions seamlessly.
The simulator executes machine code generated by the assembler. It emulates a CPU with a register file and memory. The execution of each instruction is printed, providing a clear understanding of the program flow.
There are test cases attached to check the functioning.
- Python 3.x
The assembler includes a comprehensive error-handling system, providing detailed messages about any encountered issues during the assembly process. Check the error codes and descriptions in the code for troubleshooting.
- Ensure that you have Python installed on your system.
- Harsh Mistry
- Aditya Jagadale
- Hemanth Dindigallu
- Anushka Korlapati