Question: I need to implement the MIPS instructions ( other than syscall ) in a file called r _ instructions.c . In the r _ instructions.h

I need to implement the MIPS instructions (other than syscall) in a file called
r_instructions.c. In the r_instructions.h file that I provided you, there is a list of functions
that you have to implement each one corresponding to a MIPS R-instruction. As
described in the project description (downloaded in Step 1, above), each R-instruction
function (add, sub, sll, etc.) should take as its parameter the full 64-bit instruction and
perform the appropriate operation.
include the following functions:
void add(uint64_t instruction);
void sub(uint64_t instruction);
void mult(uint64_t instruction);
void div(uint64_t instruction);
void mod(uint64_t instruction);
void and(uint64_t instruction);
void nor(uint64_t instruction);
void or(uint64_t instruction);
void xor(uint64_t instruction);
void sll(uint64_t instruction);
void sllv(uint64_t instruction);
void srl(uint64_t instruction);
void sra(uint64_t instruction);
void srlv(uint64_t instruction);
void srav(uint64_t instruction);
void slt(uint64_t instruction);
void sltu(uint64_t instruction);
void jr(uint64_t instruction);
void jalr(uint64_t instruction);
void syscall(uint64_t instruction); //This is a C i_instructions.h >...
These are the i-instructions implemented by the simulted MIPS processorctually defined in syscall.c
I need to implement the MIPS instructions ( other

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!