$30
CSE331 Computer Organizations
Project 2 – MIPS Assembler
In this project, you are going to implement an assembler for MIPS. You are given
an assembler (1) written in C++. However, this assembler has missing
instructions specified below. Your goal is to implement them in addition to several
pseudo-instructions.
Missing instructions: add, addi, lbu, lhu, ll, slt, slti, sb, sc, sh, sub
Pseudo-instructions: li, move, blt, ble
Rules:
Your program has to take “input.asm” and produce “output.mcode”
which contains binary machine code(s) regarding to each instruction. It
already does that but make sure it does after your implementation as well.
Otherwise, you cannot get more than 50.
Most of the work is in “assembleLine(…)” function. There are missing
unimplemented if clauses. Implementing them should be enough.
If your program does not compile, you get 0.
You must change the name of main.cpp to
surname.name1.name2.name3…nameN.studentID.cpp otherwise
you get 0.