Question: Can you help me write the ARM Assembly equivalent to these two pseudocode programs using push { lr } and pop { lr } and
Can you help me write the ARM Assembly equivalent to these two pseudocode programs using pushlr and poplr and also balign :
For programs you are provided with some pseudo code in a high level language, using variables r r num num and num Your task is to write the ARM assembly equivalent of each.
In programs and use push lr and pop lr or else things will break when you call printf;
Use balign before declaring each variable in the data section
Program :
int r; use registers r and r
int r;
ifr r
r r;
r;
printAre you tired of the humdrum, ordinary life?"; use puts
printLooking for a life of high adventure??";
Program :
int num; create variables in numour data section, num num and num
int num;
int num;
ifnum num num
num;
num;
num;
printnum num and num have increased";
else
printnum and num are unchanged";
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
