CS计算机代考程序代写 mips Using the provided framework files (DivisionEmu.zip, containing: MIPS driver “div-driver.asm”, MIPS stub “division-student.asm”; DIVEMU.tgz containing the C implementation: main.c, DIVEMU.h, DIVEMU.c) and the MARS MIPS simulator, you will implement two functions in MIPS, that provide A) the same functionality as the missing the DIVU instruction and B) the same functionality for DIV specified in the C implementation (i.e. sign of remainder matches sign of dividend). The C files contain implementations of both DIVU and DIV. Students are strongly advised to make use of the formulation provided in the C files in crafting their MIPS code, including a demonstration of modeling a 64-bit shift register with only 32-bit variables.

Using the provided framework files (DivisionEmu.zip, containing: MIPS driver “div-driver.asm”, MIPS stub “division-student.asm”; DIVEMU.tgz containing the C implementation: main.c, DIVEMU.h, DIVEMU.c) and the MARS MIPS simulator, you will implement two functions in MIPS, that provide A) the same functionality as the missing the DIVU instruction and B) the same functionality for DIV specified in the C implementation (i.e. sign of remainder matches sign of dividend). The C files contain implementations of both DIVU and DIV. Students are strongly advised to make use of the formulation provided in the C files in crafting their MIPS code, including a demonstration of modeling a 64-bit shift register with only 32-bit variables.