Final answer:
The given pseudo code can be implemented in ARM instructions as cmp r2, 15, skipsub r5, r2, r5, skipadd r5, r4, r5.
Step-by-step explanation:
The given pseudo code If (r2!=15) then r5:=r5−r2+r4 can be implemented in ARM instructions as follows:
- cmp r2, 15 - This instruction compares the value in register r2 with the value 15.
- skipsub r5, r2, r5 - This instruction subtracts the value in register r2 from the value in register r5 and stores the result in register r5.
- skipadd r5, r4, r5 - This instruction adds the value in register r4 to the value in register r5 and stores the result in register r5.