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
6
4
-
bit instruction and
perform the appropriate operation.
include the following functions:
void add
(
uint
6
4
_
t instruction
)
;
void sub
(
uint
6
4
_
t instruction
)
;
void mult
(
uint
6
4
_
t instruction
)
;
void div
(
uint
6
4
_
t instruction
)
;
void mod
(
uint
6
4
_
t instruction
)
;
void and
(
uint
6
4
_
t instruction
)
;
void nor
(
uint
6
4
_
t instruction
)
;
void or
(
uint
6
4
_
t instruction
)
;
void xor
(
uint
6
4
_
t instruction
)
;
void sll
(
uint
6
4
_
t instruction
)
;
void sllv
(
uint
6
4
_
t instruction
)
;
void srl
(
uint
6
4
_
t instruction
)
;
void sra
(
uint
6
4
_
t instruction
)
;
void srlv
(
uint
6
4
_
t instruction
)
;
void srav
(
uint
6
4
_
t instruction
)
;
void slt
(
uint
6
4
_
t instruction
)
;
void sltu
(
uint
6
4
_
t instruction
)
;
void jr
(
uint
6
4
_
t instruction
)
;
void jalr
(
uint
6
4
_
t instruction
)
;
void syscall
(
uint
6
4
_
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!