Question: Translate the following C functions to MIPS. a ) Bitwise logic operation int func 1 ( int a , int b , int n )

Translate the following C functions to MIPS.
a) Bitwise logic operation
int func1(int a, int b, int n)
{
return (a <<8) & (b << n);
}
b) Use of 32-bit constant
int64_t func2(int a)
{
return a +0x20003000;
}
c) Multiply
int64_t func3(int32_t a, int32_t b)
{
return a*b;
}

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 Databases Questions!