Question: In this project, you will create a simple assembler program for the MIPS assembly language by using C PROGRAMMING LANGUAGE. Your program receives the source
In this project, you will create a simple assembler program for the MIPS assembly language by using C PROGRAMMING LANGUAGE. Your program receives the source code filename (for example mycode.asm), translates each instruction into the machine code(HEX or Binary), and stores them with their associated address in an output file with the same name as the input file but with .obj extension.
For Simplicity, only consider the following MIPS instructions:
ADD, SUB, AND, OR (R-type)
ADDI, ANDI, SLL (I-Type)
BEQ, BNE (I-type)
J (J-type)
The source code in the input file can contain several instructions with different types, The target address of BEG, BNE, and J instructions are determined by labels in the source code.
The start Address of the program is 0x00400000
For example consider the following source code

For example consider the following source code the corresponding output file should contain the following Address and Code columns(only)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
