Madhav-Kanda / Assembler-Disassembler

Assembler converts assembly code into machine code. Disassembler converts machine code into assembly code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assembler-Disassembler

Contributors: Saatvik Rao, Sahil Agrawal, Medhansh Singh, Madhav Kanda

Our project consists of two parts. The first part involves implementing a MIPS assembler that takes assembly code as input and produces the corresponding machine code as output. The second part consists of implementing a MIPS disassembler by producing the MIPS assembly code corresponding to the machine code given as input by the user.

Guidelines

final_code.py is the final program that the user needs to run. assembly.txt is an example assembly code input. The user can decide to give the desirable input inside the aseembly.txt file. So, for the project, the user needs only two files at the start of the program and as the program progresses a MachineCode.txt file is created which stores the machine code for the given input. Later on, the user is asked if they want to convert back to the assembly. Depending on their answer, machine code is given output.

We have also provided the user with independet converters (assembler_code.py and disassembler.py) in which the user is free to convert any assembly code to machine code or any machine code to assembly code.

About

Assembler converts assembly code into machine code. Disassembler converts machine code into assembly code.


Languages

Language:Python 100.0%