Question: Write ARM assembly program for below two code: Question (1):- #include using namespace std; int main() { int vals[]={1,2,3,4,5,6,7,8,9,10}; int result[10]; int count=0; int bnd=10;

Write ARM assembly program for below two code:

Question (1):-

#include

using namespace std;

int main() {

int vals[]={1,2,3,4,5,6,7,8,9,10};

int result[10];

int count=0;

int bnd=10;

while(count

{

if(vals[count]%2==0)

result[count]=vals[count]*2;

else

result[count]=vals[count]+1;

count=count+1;

}

return 0;

}

Question (2):-

#include

using namespace std;

int main() {

int num1=36;

int num2=54;

while(num1!=num2)

{

while(num1>num2)

{

num1=num1-num2;

}

while(num2>num1)

{

num2=num2-num1;

}

}

return 0;

}

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!