For all the questions in this assignment, you should use conditional execution of branch instructions only (i.e., do not use conditional execution of data processing instruction or other non-branch...


For all the questions in this assignment, you should use conditional execution of branch instructions only (i.e., do not use conditional execution of data processing instruction or other non-branch instructions).





Question #1   .


For each of the following C++-like pseudo code segments, write equivalent ARM assembly language instructions.





  1. if (r1 >= 10)



{



r2 = r2 - r1;



     }



r2 = r2 + 60;








  1. if (r4 <>



r4 = r4 + 100;



else



r4 = 100 - r4;










  1. if (r5 == r6)



r5 = r5 + 80;



else if (r5 <>



r5 = r5 - 40;



else if (r5 != r8)



r5 = -r5;



     else



          r5 = 9*r5;



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here