MIPS assembler
Data structure std::map<std::string,int> labelMap is the map between label name and the sequence number of the labeled instruction. map<string, int> registerNumber stores the map between register name and register number. struct InstructionInfo stores the instruction’s information including its name, type, opcode and funct and includes a function named convert to convert the lexer::instruction struct to […]