Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago