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
above
each R
instruction
function
add
sub sll
etc
should take as its parameter the full
bit instruction and
perform the appropriate operation.
include the following functions:
void add
uint
t instruction
;
void sub
uint
t instruction
;
void mult
uint
t instruction
;
void div
uint
t instruction
;
void mod
uint
t instruction
;
void and
uint
t instruction
;
void nor
uint
t instruction
;
void or
uint
t instruction
;
void xor
uint
t instruction
;
void sll
uint
t instruction
;
void sllv
uint
t instruction
;
void srl
uint
t instruction
;
void sra
uint
t instruction
;
void srlv
uint
t instruction
;
void srav
uint
t instruction
;
void slt
uint
t instruction
;
void sltu
uint
t instruction
;
void jr
uint
t instruction
;
void jalr
uint
t instruction
;
void syscall
uint
t instruction
;
This is a C i
instructions.h
These are the i
instructions implemented by the simulted MIPS processorctually defined in syscall.c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
