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)
- 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)
- while (r4 <= r5) {
r1 = r1 - 2;
r2 = 40 - r2;
r4 = r4 + 1;
}
Q3)
- if (r1 < 0)
{
r2 = r2 + r1;
}
r2 = r2 + 4;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
