Advertisement
juaniisuar

Ej2 arqui ARM

Nov 14th, 2017
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. .globl camp_squat
  2.  
  3. camp_squat:
  4.  
  5. mov r3, #0
  6.  
  7. loop:
  8. cmp r1, #1
  9. bls end
  10.  
  11. and r2, r1, #1
  12. cmp r2, #1
  13.  
  14. addeq r3, r0
  15. subeq r1, #1
  16.  
  17. lslne r0, #1
  18. lsrne r1, #1
  19.  
  20. b loop
  21.  
  22. end:
  23. add r0, r3
  24.  
  25. bx lr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement