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 :-
