Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.37 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.     mov r0, #0
  13.     mov r1, #0
  14.     mov r2, #0
  15.     ldr r2, [sp], #4 //pop r2-r0 onto the stack
  16.     ldr r1, [sp], #4
  17.     ldr r0, [sp], #4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement