Question: 1. Write an Assembly program to solve expression and display in console. w = 4X*X+8*y+Z 2.Wrte an ALP program to print the array in reverse
1. Write an Assembly program to solve expression and display in console.
w = 4X*X+8*y+Z
2.Wrte an ALP program to print the array in reverse order.
3. Convert a following C program in to an Assembly Language program using SPIM software and display result.
if (i == j)
f=g+h;
else
f=g-h;
4.Convert an C program in to an Assembly Language program using SPIM software and display result
int pickMin( int x, int y, int z ) {
int min = x ;
if ( y < min )
min = y ;
if ( z < min )
min = z ;
return min ;
}
5. Convert an C program in to an Assembly Language program using SPIM software and display result.
int fact( int n ) {
if ( n == 0 )
return 1 ;
else
return fact( n - 1 ) * n ;
}
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
