Advertisement
juliancardz

Untitled

Feb 15th, 2019
2,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.32 KB | None | 0 0
  1.     .text
  2.     .global _start
  3.  
  4. _start:
  5.     // put some values into registers r0-r2
  6.     mov r0, #10
  7.     mov r1, #11
  8.     mov r2, #12
  9.     str r0, [sp, #4]! //push r0-r2 onto the stack
  10.     str r1, [sp, #4]!
  11.     str r2, [sp, #4]!
  12.     ldr r2, [sp], #4 //pop r2-r0 onto the stack
  13.     ldr r1, [sp], #4
  14.     ldr r0, [sp], #4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement