You are the manager of a team of ARM programmers You are the manager of a team of ARM programmers. You have received for following code from your team. You need to address the problems. What will you say to these programmers?
Problem 1 @ r0 = 5, r1 = 10 and for r0 = 15, r1 = 10. cmp r0, r1 blt next next1: mov r1, r0 b done ble next2 next2: cmp r0, r
Problem 2 @ r0 = 5, r1 = 10 and for r0 = 15, r1 = 10. loop: cmp r0, r1 blt target add r0, r0, r1 b loop target:
Problem 3 @ r0 = 5 Explain the following and give the results: 1. add r1, r0 2. lsl r0, #3 lsl r0, #2 3. lsl r1, r0, #3