Question: - Please write equivalent ARM assembly language instructions. - Use only conditional execution of branch instructions (i.e., do not use conditional execution of data processing

- Please write equivalent ARM assembly language instructions.

- Use only conditional execution of branch instructions (i.e., do not use conditional execution of data processing instruction or other non-branch instructions).

Q1)

  1. if (r1 == r2)

r1 = r1 + 10;

else if (r1 > r2)

r1 = r1 - 10;

else if (r1 <= r3)

r1 = r1 + 20;

else

r1 = 100 r1;

Q2)

  1. while (r4 <= r5) {

r1 = r1 - 2;

r2 = 40 - r2;

r4 = r4 + 1;

}

Q3)

  1. if (r1 < 0)

{

r2 = r2 + r1;

}

r2 = r2 + 4;

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!