Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started