#ifndef ASMPARSER_H #define ASMPARSER_H #include "ParseResult.h" char* findReg(char* inp); char* findFunc(char* inp); char* findOp(char* inp); char* findType(char* inp); uint8_t binaryToDec(char* addy); char* decToBinary(char* dec); /** Breaks up given MIPS32 assembly instruction and creates a proper * ParseResult object storing information about that instruction. * * Pre: pASM points to an array holding the bits (as chars) of a * syntactically valid assembly instruction, whose mnemonic is * one of the following: * * addi mul mult lui lw sub * * Returns: * A pointer to a proper ParseResult object whose fields have been * correctly initialized to correspond to the target of pASM. */ ParseResult* parseASM(const char* const pASM, uint16_t offset); #endif