Guest User

Untitled

a guest
Oct 26th, 2019
127
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .global add_a
  2. .func add_a
  3.  
  4.  
  5. add_a:
  6.     ldr r12, [r0]
  7.     mov r2, #0
  8.  
  9. again:
  10.     cmp r1, #0
  11.     beq done
  12.     sub r1, #1
  13.     ldr r3, [r0, r2]
  14.     cmp r3, r12
  15.     add r2, r2, #4
  16.     blt again
  17.     mov r12, r3
  18.     b again
  19.  
  20. done:
  21.     mov r0, r12
  22.     bx lr
  23.     .endfunc
RAW Paste Data