Write a block of code to compute the following expression do

Write a block of code to compute the following expression (do not remove nop): y = 6/x + 1, where x = 3 global main save %sp, -96, %sp

Solution

Solution in C Language :-

Code :-

//#include<stdio.h>
int main()
{
int x=3,y;
y=(6/x)+1;
// printf(\"%d\",y);
return 0;
}

Solution in Assumbly language(MIPS):-

Code :-

 Write a block of code to compute the following expression (do not remove nop): y = 6/x + 1, where x = 3 global main save %sp, -96, %spSolutionSolution in C Lan

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site